From df4a9fec840cb3a972872346aa5f4798a70dc80d Mon Sep 17 00:00:00 2001 From: danischm Date: Thu, 4 Jan 2024 10:17:53 +0100 Subject: [PATCH] Fix aaa accounting tests --- docs/resources/aaa_accounting.md | 6 +++--- examples/resources/iosxe_aaa_accounting/resource.tf | 6 +++--- gen/definitions/aaa_accounting.yaml | 6 +++--- .../data_source_iosxe_aaa_accounting_test.go | 12 ++++++------ .../provider/resource_iosxe_aaa_accounting_test.go | 12 ++++++------ 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/resources/aaa_accounting.md b/docs/resources/aaa_accounting.md index 7bc735c4..35a18151 100644 --- a/docs/resources/aaa_accounting.md +++ b/docs/resources/aaa_accounting.md @@ -18,9 +18,9 @@ resource "iosxe_aaa_accounting" "example" { identities = [ { name = "test" - start_stop_broadcast = true - start_stop_group_broadcast = true - start_stop_group_logger = true + start_stop_broadcast = false + start_stop_group_broadcast = false + start_stop_group_logger = false start_stop_group1 = "GROUP1" start_stop_group2 = "GROUP2" start_stop_group3 = "GROUP3" diff --git a/examples/resources/iosxe_aaa_accounting/resource.tf b/examples/resources/iosxe_aaa_accounting/resource.tf index 198f63e3..3584d7fc 100644 --- a/examples/resources/iosxe_aaa_accounting/resource.tf +++ b/examples/resources/iosxe_aaa_accounting/resource.tf @@ -3,9 +3,9 @@ resource "iosxe_aaa_accounting" "example" { identities = [ { name = "test" - start_stop_broadcast = true - start_stop_group_broadcast = true - start_stop_group_logger = true + start_stop_broadcast = false + start_stop_group_broadcast = false + start_stop_group_logger = false start_stop_group1 = "GROUP1" start_stop_group2 = "GROUP2" start_stop_group3 = "GROUP3" diff --git a/gen/definitions/aaa_accounting.yaml b/gen/definitions/aaa_accounting.yaml index 21e9bd61..2e309bd1 100644 --- a/gen/definitions/aaa_accounting.yaml +++ b/gen/definitions/aaa_accounting.yaml @@ -15,13 +15,13 @@ attributes: id: true example: test - yang_name: start-stop/broadcast - example: true + example: false - yang_name: start-stop/group-config/broadcast tf_name: start_stop_group_broadcast - example: true + example: false - yang_name: start-stop/group-config/logger tf_name: start_stop_group_logger - example: true + example: false - yang_name: start-stop/group-config/group1/group tf_name: start_stop_group1 example: GROUP1 diff --git a/internal/provider/data_source_iosxe_aaa_accounting_test.go b/internal/provider/data_source_iosxe_aaa_accounting_test.go index 50e2c175..fb7d29b1 100644 --- a/internal/provider/data_source_iosxe_aaa_accounting_test.go +++ b/internal/provider/data_source_iosxe_aaa_accounting_test.go @@ -29,9 +29,9 @@ func TestAccDataSourceIosxeAAAAccounting(t *testing.T) { var checks []resource.TestCheckFunc checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "update_newinfo_periodic", "2880")) checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "identities.0.name", "test")) - checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "identities.0.start_stop_broadcast", "true")) - checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "identities.0.start_stop_group_broadcast", "true")) - checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "identities.0.start_stop_group_logger", "true")) + checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "identities.0.start_stop_broadcast", "false")) + checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "identities.0.start_stop_group_broadcast", "false")) + checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "identities.0.start_stop_group_logger", "false")) checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "identities.0.start_stop_group1", "GROUP1")) checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "identities.0.start_stop_group2", "GROUP2")) checks = append(checks, resource.TestCheckResourceAttr("data.iosxe_aaa_accounting.test", "identities.0.start_stop_group3", "GROUP3")) @@ -64,9 +64,9 @@ func testAccDataSourceIosxeAAAAccountingConfig() string { config += ` update_newinfo_periodic = 2880` + "\n" config += ` identities = [{` + "\n" config += ` name = "test"` + "\n" - config += ` start_stop_broadcast = true` + "\n" - config += ` start_stop_group_broadcast = true` + "\n" - config += ` start_stop_group_logger = true` + "\n" + config += ` start_stop_broadcast = false` + "\n" + config += ` start_stop_group_broadcast = false` + "\n" + config += ` start_stop_group_logger = false` + "\n" config += ` start_stop_group1 = "GROUP1"` + "\n" config += ` start_stop_group2 = "GROUP2"` + "\n" config += ` start_stop_group3 = "GROUP3"` + "\n" diff --git a/internal/provider/resource_iosxe_aaa_accounting_test.go b/internal/provider/resource_iosxe_aaa_accounting_test.go index d43777e1..20cfdbc2 100644 --- a/internal/provider/resource_iosxe_aaa_accounting_test.go +++ b/internal/provider/resource_iosxe_aaa_accounting_test.go @@ -29,9 +29,9 @@ func TestAccIosxeAAAAccounting(t *testing.T) { var checks []resource.TestCheckFunc checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "update_newinfo_periodic", "2880")) checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "identities.0.name", "test")) - checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "identities.0.start_stop_broadcast", "true")) - checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "identities.0.start_stop_group_broadcast", "true")) - checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "identities.0.start_stop_group_logger", "true")) + checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "identities.0.start_stop_broadcast", "false")) + checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "identities.0.start_stop_group_broadcast", "false")) + checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "identities.0.start_stop_group_logger", "false")) checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "identities.0.start_stop_group1", "GROUP1")) checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "identities.0.start_stop_group2", "GROUP2")) checks = append(checks, resource.TestCheckResourceAttr("iosxe_aaa_accounting.test", "identities.0.start_stop_group3", "GROUP3")) @@ -77,9 +77,9 @@ func testAccIosxeAAAAccountingConfig_all() string { config += ` update_newinfo_periodic = 2880` + "\n" config += ` identities = [{` + "\n" config += ` name = "test"` + "\n" - config += ` start_stop_broadcast = true` + "\n" - config += ` start_stop_group_broadcast = true` + "\n" - config += ` start_stop_group_logger = true` + "\n" + config += ` start_stop_broadcast = false` + "\n" + config += ` start_stop_group_broadcast = false` + "\n" + config += ` start_stop_group_logger = false` + "\n" config += ` start_stop_group1 = "GROUP1"` + "\n" config += ` start_stop_group2 = "GROUP2"` + "\n" config += ` start_stop_group3 = "GROUP3"` + "\n"