diff --git a/gen/definitions/profile_parcels/service_object_tracker_group.yaml b/gen/definitions/profile_parcels/service_object_tracker_group.yaml index 33db5fb4..70a5f04a 100644 --- a/gen/definitions/profile_parcels/service_object_tracker_group.yaml +++ b/gen/definitions/profile_parcels/service_object_tracker_group.yaml @@ -2,7 +2,7 @@ name: Service Object Tracker Group rest_endpoint: /v1/feature-profile/sdwan/service/%v/objecttrackergroup minimum_version: 20.12.0 test_tags: [SDWAN_2012] -exclude_minimum_test: true +skip_minimum_test: true attributes: - tf_name: feature_profile_id reference: true diff --git a/gen/definitions/profile_parcels/service_tracker_group.yaml b/gen/definitions/profile_parcels/service_tracker_group.yaml index 8f523571..4fd3d9ef 100644 --- a/gen/definitions/profile_parcels/service_tracker_group.yaml +++ b/gen/definitions/profile_parcels/service_tracker_group.yaml @@ -3,7 +3,7 @@ name: Service Tracker Group rest_endpoint: /v1/feature-profile/sdwan/service/%v/trackergroup minimum_version: 20.12.0 test_tags: [SDWAN_2012] -exclude_minimum_test: true +skip_minimum_test: true attributes: - tf_name: feature_profile_id reference: true diff --git a/gen/definitions/profile_parcels/transport_ipv6_tracker_group.yaml b/gen/definitions/profile_parcels/transport_ipv6_tracker_group.yaml index ea4f11c2..06d8d8eb 100644 --- a/gen/definitions/profile_parcels/transport_ipv6_tracker_group.yaml +++ b/gen/definitions/profile_parcels/transport_ipv6_tracker_group.yaml @@ -3,7 +3,7 @@ name: Transport IPv6 Tracker Group rest_endpoint: /v1/feature-profile/sdwan/transport/%v/ipv6-trackergroup minimum_version: 20.12.0 test_tags: [SDWAN_2012] -exclude_minimum_test: true +skip_minimum_test: true attributes: - tf_name: feature_profile_id reference: true diff --git a/gen/definitions/profile_parcels/transport_tracker_group.yaml b/gen/definitions/profile_parcels/transport_tracker_group.yaml index cfca332d..a61478a5 100644 --- a/gen/definitions/profile_parcels/transport_tracker_group.yaml +++ b/gen/definitions/profile_parcels/transport_tracker_group.yaml @@ -3,7 +3,7 @@ name: Transport Tracker Group rest_endpoint: /v1/feature-profile/sdwan/transport/%v/trackergroup minimum_version: 20.12.0 test_tags: [SDWAN_2012] -exclude_minimum_test: true +skip_minimum_test: true attributes: - tf_name: feature_profile_id reference: true diff --git a/gen/generator.go b/gen/generator.go index 8d132bf0..9a84df1f 100644 --- a/gen/generator.go +++ b/gen/generator.go @@ -203,7 +203,7 @@ type YamlConfig struct { SkipTemplates []string `yaml:"skip_templates"` Attributes []YamlConfigAttribute `yaml:"attributes"` TestTags []string `yaml:"test_tags"` - ExcludeMinimumTest bool `yaml:"exclude_minimum_test"` + SkipMinimumTest bool `yaml:"skip_minimum_test"` TestPrerequisites string `yaml:"test_prerequisites"` RemoveId bool `yaml:"remove_id"` TypeValue string `yaml:"type_value"` diff --git a/gen/schema/schema.yaml b/gen/schema/schema.yaml index 13a8b48a..2a256d76 100644 --- a/gen/schema/schema.yaml +++ b/gen/schema/schema.yaml @@ -25,7 +25,7 @@ no_data_source: bool(required=False) # Set to true if no data source should be c no_resource: bool(required=False) # Set to true if no resource should be created get_before_delete: bool(required=False) # This does a GET "all" before doing a DELETE, which is a workaround for an API issue with some endpoints where the reference count is not updated otherwise delete_mutex: bool(required=False) # Set to true if DELETE operation is mutually exclusive with other DELETE operations -exclude_minimum_test: bool(required=False) # Set to true to prevent "minimum" resource acceptance testing +skip_minimum_test: bool(required=False) # Set to true to prevent "minimum" resource acceptance testing --- attribute: model_name: str(required=False) # Name of the attribute in the model (payload) diff --git a/gen/templates/profile_parcels/resource_test.go b/gen/templates/profile_parcels/resource_test.go index 35827851..8a271475 100644 --- a/gen/templates/profile_parcels/resource_test.go +++ b/gen/templates/profile_parcels/resource_test.go @@ -113,7 +113,7 @@ func TestAccSdwan{{camelCase .Name}}ProfileParcel(t *testing.T) { PreCheck: func() { testAccPreCheck(t) }, ProtoV6ProviderFactories: testAccProtoV6ProviderFactories, Steps: []resource.TestStep{ - {{if not .ExcludeMinimumTest}}{ + {{if not .SkipMinimumTest}}{ Config: {{if .TestPrerequisites}}testAccSdwan{{camelCase .Name}}PrerequisitesProfileParcelConfig+{{end}}testAccSdwan{{camelCase .Name}}ProfileParcelConfig_minimum(), },{{end}} { @@ -134,7 +134,7 @@ const testAccSdwan{{camelCase .Name}}PrerequisitesProfileParcelConfig = ` // End of section. //template:end testPrerequisites // Section below is generated&owned by "gen/generator.go". //template:begin testAccConfigMinimum -{{if not .ExcludeMinimumTest}}func testAccSdwan{{camelCase .Name}}ProfileParcelConfig_minimum() string { +{{if not .SkipMinimumTest}}func testAccSdwan{{camelCase .Name}}ProfileParcelConfig_minimum() string { config := `resource "sdwan_{{snakeCase $name}}_profile_parcel" "test" {` + "\n" config += ` name = "TF_TEST_MIN"` + "\n" config += ` description = "Terraform integration test"` + "\n"