Skip to content

Commit

Permalink
Fix wireless radio settings test data
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Sep 23, 2024
1 parent 46905a0 commit ee4c8e4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/resources/wireless_radio_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This resource can manage the `Wireless Radio Settings` configuration.
```terraform
resource "meraki_wireless_radio_settings" "example" {
serial = "1234-1234-1234"
five_ghz_settings_channel = 64
five_ghz_settings_channel = 40
five_ghz_settings_channel_width = 20
two_four_ghz_settings_channel = 11
two_four_ghz_settings_target_power = 14
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "meraki_wireless_radio_settings" "example" {
serial = "1234-1234-1234"
five_ghz_settings_channel = 64
five_ghz_settings_channel = 40
five_ghz_settings_channel_width = 20
two_four_ghz_settings_channel = 11
two_four_ghz_settings_target_power = 14
Expand Down
2 changes: 1 addition & 1 deletion gen/definitions/wireless_radio_settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ attributes:
type: Int64
data_path: [fiveGhzSettings]
description: Sets a manual channel for 5 GHz. Can be `36`, `40`, `44`, `48`, `52`, `56`, `60`, `64`, `100`, `104`, `108`, `112`, `116`, `120`, `124`, `128`, `132`, `136`, `140`, `144`, `149`, `153`, `157`, `161`, `165`, `169`, `173` or `177` or null for using auto channel.
example: "64"
example: "40"
minimum_test_value: "40"
- model_name: channelWidth
type: Int64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestAccDataSourceMerakiWirelessRadioSettings(t *testing.T) {
t.Skip("skipping test, set environment variable TF_VAR_test_org and TF_VAR_test_network and TF_VAR_test_ap_1_serial")
}
var checks []resource.TestCheckFunc
checks = append(checks, resource.TestCheckResourceAttr("data.meraki_wireless_radio_settings.test", "five_ghz_settings_channel", "64"))
checks = append(checks, resource.TestCheckResourceAttr("data.meraki_wireless_radio_settings.test", "five_ghz_settings_channel", "40"))
checks = append(checks, resource.TestCheckResourceAttr("data.meraki_wireless_radio_settings.test", "five_ghz_settings_channel_width", "20"))
checks = append(checks, resource.TestCheckResourceAttr("data.meraki_wireless_radio_settings.test", "two_four_ghz_settings_channel", "11"))
checks = append(checks, resource.TestCheckResourceAttr("data.meraki_wireless_radio_settings.test", "two_four_ghz_settings_target_power", "14"))
Expand Down Expand Up @@ -80,7 +80,7 @@ resource "meraki_network_device_claim" "test" {
func testAccDataSourceMerakiWirelessRadioSettingsConfig() string {
config := `resource "meraki_wireless_radio_settings" "test" {` + "\n"
config += ` serial = tolist(meraki_network_device_claim.test.serials)[0]` + "\n"
config += ` five_ghz_settings_channel = 64` + "\n"
config += ` five_ghz_settings_channel = 40` + "\n"
config += ` five_ghz_settings_channel_width = 20` + "\n"
config += ` two_four_ghz_settings_channel = 11` + "\n"
config += ` two_four_ghz_settings_target_power = 14` + "\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestAccMerakiWirelessRadioSettings(t *testing.T) {
t.Skip("skipping test, set environment variable TF_VAR_test_org and TF_VAR_test_network and TF_VAR_test_ap_1_serial")
}
var checks []resource.TestCheckFunc
checks = append(checks, resource.TestCheckResourceAttr("meraki_wireless_radio_settings.test", "five_ghz_settings_channel", "64"))
checks = append(checks, resource.TestCheckResourceAttr("meraki_wireless_radio_settings.test", "five_ghz_settings_channel", "40"))
checks = append(checks, resource.TestCheckResourceAttr("meraki_wireless_radio_settings.test", "five_ghz_settings_channel_width", "20"))
checks = append(checks, resource.TestCheckResourceAttr("meraki_wireless_radio_settings.test", "two_four_ghz_settings_channel", "11"))
checks = append(checks, resource.TestCheckResourceAttr("meraki_wireless_radio_settings.test", "two_four_ghz_settings_target_power", "14"))
Expand Down Expand Up @@ -99,7 +99,7 @@ func testAccMerakiWirelessRadioSettingsConfig_minimum() string {
func testAccMerakiWirelessRadioSettingsConfig_all() string {
config := `resource "meraki_wireless_radio_settings" "test" {` + "\n"
config += ` serial = tolist(meraki_network_device_claim.test.serials)[0]` + "\n"
config += ` five_ghz_settings_channel = 64` + "\n"
config += ` five_ghz_settings_channel = 40` + "\n"
config += ` five_ghz_settings_channel_width = 20` + "\n"
config += ` two_four_ghz_settings_channel = 11` + "\n"
config += ` two_four_ghz_settings_target_power = 14` + "\n"
Expand Down

0 comments on commit ee4c8e4

Please sign in to comment.