Skip to content

Commit

Permalink
Rename exclude_minimum_test
Browse files Browse the repository at this point in the history
  • Loading branch information
seconroy committed Aug 23, 2024
1 parent d080a0a commit c034e2d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gen/definitions/profile_parcels/service_tracker_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion gen/schema/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions gen/templates/profile_parcels/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
{
Expand All @@ -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"
Expand Down

0 comments on commit c034e2d

Please sign in to comment.