Skip to content

Commit

Permalink
fix pipeline with settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-mazurkiewicz committed Feb 27, 2025
1 parent 23449f1 commit fd020c3
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 32 deletions.
1 change: 1 addition & 0 deletions gen/definitions/banner_settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ delete_no_id: true
get_extra_query_params: "?_inherited=true"
put_create: true
put_delete: true
skip_minimum_test: true
doc_category: Network Settings
attributes:
- model_name: siteId
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/dhcp_settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ delete_no_id: true
get_extra_query_params: "?_inherited=true"
put_create: true
put_delete: true
skip_minimum_test: true
doc_category: Network Settings
attributes:
- model_name: siteId
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/dns_settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ delete_no_id: true
get_extra_query_params: "?_inherited=true"
put_create: true
put_delete: true
skip_minimum_test: true
doc_category: Network Settings
attributes:
- model_name: siteId
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/ntp_settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ delete_no_id: true
get_extra_query_params: "?_inherited=true"
put_create: true
put_delete: true
skip_minimum_test: true
doc_category: Network Settings
attributes:
- model_name: siteId
Expand Down
4 changes: 2 additions & 2 deletions gen/definitions/timezone_settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ put_no_id: true
get_no_id: true
data_source_no_id: true
import_no_id: true
no_delete: true #Internal error 500 on delete
delete_no_id: true
get_extra_query_params: "?_inherited=true"
put_create: true
put_delete: true
no_delete: true
skip_minimum_test: true
doc_category: Network Settings
attributes:
- model_name: siteId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package provider

// Section below is generated&owned by "gen/generator.go". //template:begin imports
import (
"os"
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
Expand All @@ -34,11 +33,6 @@ func TestAccCcBannerSettings(t *testing.T) {
checks = append(checks, resource.TestCheckResourceAttr("catalystcenter_banner_settings.test", "message", "Banner message"))

var steps []resource.TestStep
if os.Getenv("SKIP_MINIMUM_TEST") == "" {
steps = append(steps, resource.TestStep{
Config: testAccCcBannerSettingsPrerequisitesConfig + testAccCcBannerSettingsConfig_minimum(),
})
}
steps = append(steps, resource.TestStep{
Config: testAccCcBannerSettingsPrerequisitesConfig + testAccCcBannerSettingsConfig_all(),
Check: resource.ComposeTestCheckFunc(checks...),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package provider

// Section below is generated&owned by "gen/generator.go". //template:begin imports
import (
"os"
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
Expand All @@ -32,11 +31,6 @@ func TestAccCcDHCPSettings(t *testing.T) {
var checks []resource.TestCheckFunc

var steps []resource.TestStep
if os.Getenv("SKIP_MINIMUM_TEST") == "" {
steps = append(steps, resource.TestStep{
Config: testAccCcDHCPSettingsPrerequisitesConfig + testAccCcDHCPSettingsConfig_minimum(),
})
}
steps = append(steps, resource.TestStep{
Config: testAccCcDHCPSettingsPrerequisitesConfig + testAccCcDHCPSettingsConfig_all(),
Check: resource.ComposeTestCheckFunc(checks...),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package provider

// Section below is generated&owned by "gen/generator.go". //template:begin imports
import (
"os"
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
Expand All @@ -33,11 +32,6 @@ func TestAccCcDNSSettings(t *testing.T) {
checks = append(checks, resource.TestCheckResourceAttr("catalystcenter_dns_settings.test", "domain_name", "myCompany.com"))

var steps []resource.TestStep
if os.Getenv("SKIP_MINIMUM_TEST") == "" {
steps = append(steps, resource.TestStep{
Config: testAccCcDNSSettingsPrerequisitesConfig + testAccCcDNSSettingsConfig_minimum(),
})
}
steps = append(steps, resource.TestStep{
Config: testAccCcDNSSettingsPrerequisitesConfig + testAccCcDNSSettingsConfig_all(),
Check: resource.ComposeTestCheckFunc(checks...),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package provider

// Section below is generated&owned by "gen/generator.go". //template:begin imports
import (
"os"
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
Expand All @@ -32,11 +31,6 @@ func TestAccCcNTPSettings(t *testing.T) {
var checks []resource.TestCheckFunc

var steps []resource.TestStep
if os.Getenv("SKIP_MINIMUM_TEST") == "" {
steps = append(steps, resource.TestStep{
Config: testAccCcNTPSettingsPrerequisitesConfig + testAccCcNTPSettingsConfig_minimum(),
})
}
steps = append(steps, resource.TestStep{
Config: testAccCcNTPSettingsPrerequisitesConfig + testAccCcNTPSettingsConfig_all(),
Check: resource.ComposeTestCheckFunc(checks...),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package provider

// Section below is generated&owned by "gen/generator.go". //template:begin imports
import (
"os"
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
Expand All @@ -33,11 +32,6 @@ func TestAccCcTimeZoneSettings(t *testing.T) {
checks = append(checks, resource.TestCheckResourceAttr("catalystcenter_timezone_settings.test", "identifier", "GMT"))

var steps []resource.TestStep
if os.Getenv("SKIP_MINIMUM_TEST") == "" {
steps = append(steps, resource.TestStep{
Config: testAccCcTimeZoneSettingsPrerequisitesConfig + testAccCcTimeZoneSettingsConfig_minimum(),
})
}
steps = append(steps, resource.TestStep{
Config: testAccCcTimeZoneSettingsPrerequisitesConfig + testAccCcTimeZoneSettingsConfig_all(),
Check: resource.ComposeTestCheckFunc(checks...),
Expand Down

0 comments on commit fd020c3

Please sign in to comment.