Skip to content

Commit 1cee8f6

Browse files
authored
Renaming all remaining skip_* attributes (#11696)
1 parent c37f6c9 commit 1cee8f6

File tree

226 files changed

+615
-560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+615
-560
lines changed

mmv1/api/resource.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ type Resource struct {
252252
StateUpgraders bool `yaml:"state_upgraders"`
253253

254254
// Do not apply the default attribution label
255-
SkipAttributionLabel bool `yaml:"skip_attribution_label"`
255+
ExcludeAttributionLabel bool `yaml:"exclude_attribution_label"`
256256

257257
// This block inserts the named function and its attribute into the
258258
// resource schema -- the code for the migrate_state function must
@@ -267,12 +267,12 @@ type Resource struct {
267267

268268
// Set to true for resources that are unable to be read from the API, such as
269269
// public ca external account keys
270-
SkipRead bool `yaml:"skip_read"`
270+
ExcludeRead bool `yaml:"exclude_read"`
271271

272272
// Set to true for resources that wish to disable automatic generation of default provider
273273
// value customdiff functions
274274
// TODO rewrite: 1 instance used
275-
SkipDefaultCdiff bool `yaml:"skip_default_cdiff"`
275+
ExcludeDefaultCdiff bool `yaml:"exclude_default_cdiff"`
276276

277277
// This enables resources that get their project via a reference to a different resource
278278
// instead of a project field to use User Project Overrides
@@ -604,7 +604,7 @@ func (r *Resource) AddLabelsRelatedFields(props []*Type, parent *Type) []*Type {
604604

605605
func (r *Resource) addLabelsFields(props []*Type, parent *Type, labels *Type) []*Type {
606606
if parent == nil || parent.FlattenObject {
607-
if r.SkipAttributionLabel {
607+
if r.ExcludeAttributionLabel {
608608
r.CustomDiff = append(r.CustomDiff, "tpgresource.SetLabelsDiffWithoutAttributionLabel")
609609
} else {
610610
r.CustomDiff = append(r.CustomDiff, "tpgresource.SetLabelsDiff")
@@ -1291,7 +1291,7 @@ func (r Resource) IamAttributes() []string {
12911291
// we can reuse that config to create a resource to test IAM resources with.
12921292
func (r Resource) FirstTestExample() resource.Examples {
12931293
examples := google.Reject(r.Examples, func(e resource.Examples) bool {
1294-
return e.SkipTest
1294+
return e.ExcludeTest
12951295
})
12961296
examples = google.Reject(examples, func(e resource.Examples) bool {
12971297
return (r.ProductMetadata.VersionObjOrClosest(r.TargetVersionName).CompareTo(r.ProductMetadata.VersionObjOrClosest(e.MinVersion)) < 0)
@@ -1302,7 +1302,7 @@ func (r Resource) FirstTestExample() resource.Examples {
13021302

13031303
func (r Resource) ExamplePrimaryResourceId() string {
13041304
examples := google.Reject(r.Examples, func(e resource.Examples) bool {
1305-
return e.SkipTest
1305+
return e.ExcludeTest
13061306
})
13071307
examples = google.Reject(examples, func(e resource.Examples) bool {
13081308
return (r.ProductMetadata.VersionObjOrClosest(r.TargetVersionName).CompareTo(r.ProductMetadata.VersionObjOrClosest(e.MinVersion)) < 0)
@@ -1580,7 +1580,7 @@ func (r Resource) IsExcluded() bool {
15801580

15811581
func (r Resource) TestExamples() []resource.Examples {
15821582
return google.Reject(google.Reject(r.Examples, func(e resource.Examples) bool {
1583-
return e.SkipTest
1583+
return e.ExcludeTest
15841584
}), func(e resource.Examples) bool {
15851585
return e.MinVersion != "" && slices.Index(product.ORDER, r.TargetVersionName) < slices.Index(product.ORDER, e.MinVersion)
15861586
})

mmv1/api/resource/examples.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ type Examples struct {
122122
IgnoreReadExtra []string `yaml:"ignore_read_extra"`
123123

124124
// Whether to skip generating tests for this resource
125-
SkipTest bool `yaml:"skip_test"`
125+
ExcludeTest bool `yaml:"exclude_test"`
126126

127127
// Whether to skip generating docs for this example
128-
SkipDocs bool `yaml:"skip_docs"`
128+
ExcludeDocs bool `yaml:"exclude_docs"`
129129

130130
// Whether to skip import tests for this example
131-
SkipImportTest bool `yaml:"skip_import_test"`
131+
ExcludeImportTest bool `yaml:"exclude_import_test"`
132132

133133
// The name of the primary resource for use in IAM tests. IAM tests need
134134
// a reference to the primary resource to create IAM policies for

mmv1/api/resource/iam_policy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type IamPolicy struct {
3232
// Boolean of if tests for IAM resources should exclude import test steps
3333
// Used to handle situations where typical generated IAM tests cannot import
3434
// due to the parent resource having an API-generated id
35-
SkipImportTest bool `yaml:"skip_import_test"`
35+
ExcludeImportTest bool `yaml:"exclude_import_test"`
3636

3737
// Character that separates resource identifier from method call in URL
3838
// For example, PubSub subscription uses {resource}:getIamPolicy

mmv1/api/type.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ type Type struct {
135135

136136
EnumValues []string `yaml:"enum_values"`
137137

138-
SkipDocsValues bool `yaml:"skip_docs_values"`
138+
ExcludeDocsValues bool `yaml:"exclude_docs_values"`
139139

140140
// ====================
141141
// Array Fields

mmv1/products/accessapproval/go_FolderSettings.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ examples:
4343
folder_name: 'my-folder'
4444
test_env_vars:
4545
org_id: 'ORG_ID'
46-
skip_test: true
46+
exclude_test: true
4747
- name: 'folder_access_approval_active_key_version'
4848
primary_resource_id: 'folder_access_approval'
4949
vars:
5050
folder_name: 'my-folder'
5151
test_env_vars:
5252
org_id: 'ORG_ID'
53-
skip_test: true
53+
exclude_test: true
5454
parameters:
5555
- name: 'folder_id'
5656
type: String

mmv1/products/accessapproval/go_OrganizationSettings.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ examples:
4040
primary_resource_id: 'organization_access_approval'
4141
test_env_vars:
4242
org_id: 'ORG_ID'
43-
skip_test: true
43+
exclude_test: true
4444
- name: 'organization_access_approval_active_key_version'
4545
primary_resource_id: 'organization_access_approval'
4646
test_env_vars:
4747
org_id: 'ORG_ID'
48-
skip_test: true
48+
exclude_test: true
4949
parameters:
5050
- name: 'organization_id'
5151
type: String

mmv1/products/accessapproval/go_ProjectSettings.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ examples:
4141
test_env_vars:
4242
project: 'PROJECT_NAME'
4343
org_id: 'ORG_ID'
44-
skip_test: true
44+
exclude_test: true
4545
- name: 'project_access_approval_active_key_version'
4646
primary_resource_id: 'project_access_approval'
4747
test_env_vars:
4848
project: 'PROJECT_NAME'
4949
org_id: 'ORG_ID'
50-
skip_test: true
50+
exclude_test: true
5151
parameters:
5252
- name: 'project_id'
5353
type: String

mmv1/products/accesscontextmanager/go_AccessLevel.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ examples:
6363
primary_resource_id: 'access-level'
6464
vars:
6565
access_level_name: 'chromeos_no_lock'
66-
skip_test: true
66+
exclude_test: true
6767
parameters:
6868
- name: 'parent'
6969
type: String

mmv1/products/accesscontextmanager/go_AccessLevelCondition.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ examples:
8080
vars:
8181
access_level_name: 'chromeos_no_lock'
8282
account_id: 'my-account-id'
83-
skip_test: true
83+
exclude_test: true
8484
parameters:
8585
- name: 'accessLevel'
8686
type: ResourceRef

mmv1/products/accesscontextmanager/go_AccessLevels.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ examples:
6464
vars:
6565
access_level_name1: 'chromeos_no_lock'
6666
access_level_name2: 'mac_no_lock'
67-
skip_test: true
67+
exclude_test: true
6868
parameters:
6969
- name: 'parent'
7070
type: String

mmv1/products/accesscontextmanager/go_AccessPolicy.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ exclude_sweeper: true
7171
examples:
7272
- name: 'access_context_manager_access_policy_basic'
7373
primary_resource_id: 'access-policy'
74-
skip_test: true
74+
exclude_test: true
7575
- name: 'access_context_manager_access_policy_scoped'
7676
primary_resource_id: 'access-policy'
7777
test_env_vars:
7878
org_id: 'ORG_ID'
7979
project: 'PROJECT_NAME'
80-
skip_test: true
81-
skip_import_test: true
80+
exclude_test: true
81+
exclude_import_test: true
8282
parameters:
8383
- name: 'parent'
8484
type: String

mmv1/products/accesscontextmanager/go_AuthorizedOrgsDesc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ exclude_sweeper: true
6565
examples:
6666
- name: 'access_context_manager_authorized_orgs_desc_basic'
6767
primary_resource_id: 'authorized-orgs-desc'
68-
skip_test: true
68+
exclude_test: true
6969
parameters:
7070
- name: 'parent'
7171
type: String

mmv1/products/accesscontextmanager/go_GcpUserAccessBinding.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ examples:
5959
org_id: 'ORG_ID'
6060
org_domain: 'ORG_DOMAIN'
6161
cust_id: 'CUST_ID'
62-
skip_test: true
62+
exclude_test: true
6363
parameters:
6464
- name: 'organizationId'
6565
type: String

mmv1/products/accesscontextmanager/go_ServicePerimeter.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@ examples:
7272
vars:
7373
access_level_name: 'chromeos_no_lock'
7474
service_perimeter_name: 'restrict_storage'
75-
skip_test: true
75+
exclude_test: true
7676
- name: 'access_context_manager_service_perimeter_secure_data_exchange'
7777
primary_resource_id: 'secure-data-exchange'
7878
vars:
7979
access_level_name: 'secure_data_exchange'
80-
skip_test: true
80+
exclude_test: true
8181
- name: 'access_context_manager_service_perimeter_dry-run'
8282
primary_resource_id: 'service-perimeter'
8383
vars:
8484
service_perimeter_name: 'restrict_bigquery_dryrun_storage'
85-
skip_test: true
85+
exclude_test: true
8686
parameters:
8787
- name: 'parent'
8888
type: String

mmv1/products/accesscontextmanager/go_ServicePerimeterDryRunEgressPolicy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ exclude_tgc: true
7979
exclude_sweeper: true
8080
examples:
8181
- name: 'access_context_manager_service_perimeter_dry_run_egress_policy'
82-
skip_test: true
82+
exclude_test: true
8383
parameters:
8484
- name: 'perimeter'
8585
type: ResourceRef

mmv1/products/accesscontextmanager/go_ServicePerimeterDryRunIngressPolicy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ exclude_tgc: true
8080
exclude_sweeper: true
8181
examples:
8282
- name: 'access_context_manager_service_perimeter_dry_run_ingress_policy'
83-
skip_test: true
83+
exclude_test: true
8484
parameters:
8585
- name: 'perimeter'
8686
type: ResourceRef

mmv1/products/accesscontextmanager/go_ServicePerimeterDryRunResource.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ examples:
8484
primary_resource_id: 'service-perimeter-dry-run-resource'
8585
vars:
8686
service_perimeter_name: 'restrict_all'
87-
skip_test: true
87+
exclude_test: true
8888
parameters:
8989
- name: 'perimeterName'
9090
type: ResourceRef

mmv1/products/accesscontextmanager/go_ServicePerimeterEgressPolicy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ exclude_tgc: true
7676
exclude_sweeper: true
7777
examples:
7878
- name: 'access_context_manager_service_perimeter_egress_policy'
79-
skip_test: true
79+
exclude_test: true
8080
parameters:
8181
- name: 'perimeter'
8282
type: ResourceRef

mmv1/products/accesscontextmanager/go_ServicePerimeterIngressPolicy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ exclude_tgc: true
7777
exclude_sweeper: true
7878
examples:
7979
- name: 'access_context_manager_service_perimeter_ingress_policy'
80-
skip_test: true
80+
exclude_test: true
8181
parameters:
8282
- name: 'perimeter'
8383
type: ResourceRef

mmv1/products/accesscontextmanager/go_ServicePerimeterResource.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ examples:
8181
primary_resource_id: 'service-perimeter-resource'
8282
vars:
8383
service_perimeter_name: 'restrict_all'
84-
skip_test: true
84+
exclude_test: true
8585
parameters:
8686
- name: 'perimeterName'
8787
type: ResourceRef

mmv1/products/accesscontextmanager/go_ServicePerimeters.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ examples:
5858
vars:
5959
access_level_name: 'chromeos_no_lock'
6060
service_perimeter_name: 'restrict_storage'
61-
skip_test: true
61+
exclude_test: true
6262
parameters:
6363
- name: 'parent'
6464
type: String

mmv1/products/activedirectory/go_Domain.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ examples:
6666
domain_name: 'tfgen'
6767
ignore_read_extra:
6868
- 'deletion_protection'
69-
skip_test: true
69+
exclude_test: true
7070
virtual_fields:
7171
- name: 'deletion_protection'
7272
description: |

mmv1/products/activedirectory/go_DomainTrust.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ custom_code:
6464
examples:
6565
- name: 'active_directory_domain_trust_basic'
6666
primary_resource_id: 'ad-domain-trust'
67-
skip_test: true
67+
exclude_test: true
6868
parameters:
6969
- name: 'domain'
7070
type: String

mmv1/products/activedirectory/go_Peering.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ examples:
5858
test_env_vars:
5959
org_id: 'ORG_ID'
6060
billing_account: 'BILLING_ACCT'
61-
skip_test: true
62-
skip_import_test: true
61+
exclude_test: true
62+
exclude_import_test: true
6363
parameters:
6464
- name: 'peeringId'
6565
type: String

mmv1/products/alloydb/go_Backup.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ examples:
5252
ignore_read_extra:
5353
- 'reconciling'
5454
- 'update_time'
55-
skip_test: true
55+
exclude_test: true
5656
- name: 'alloydb_backup_basic_test'
5757
primary_resource_id: 'default'
5858
vars:
@@ -65,7 +65,7 @@ examples:
6565
ignore_read_extra:
6666
- 'reconciling'
6767
- 'update_time'
68-
skip_docs: true
68+
exclude_docs: true
6969
- name: 'alloydb_backup_full'
7070
primary_resource_id: 'default'
7171
vars:
@@ -76,7 +76,7 @@ examples:
7676
ignore_read_extra:
7777
- 'reconciling'
7878
- 'update_time'
79-
skip_test: true
79+
exclude_test: true
8080
- name: 'alloydb_backup_full_test'
8181
primary_resource_id: 'default'
8282
vars:
@@ -89,7 +89,7 @@ examples:
8989
ignore_read_extra:
9090
- 'reconciling'
9191
- 'update_time'
92-
skip_docs: true
92+
exclude_docs: true
9393
skip_vcr: true
9494
parameters:
9595
- name: 'backupId'

mmv1/products/alloydb/go_Cluster.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ examples:
8989
ignore_read_extra:
9090
- 'reconciling'
9191
- 'update_time'
92-
skip_test: true
92+
exclude_test: true
9393
- name: 'alloydb_secondary_cluster_basic'
9494
primary_resource_id: 'secondary'
9595
vars:
9696
alloydb_primary_cluster_name: 'alloydb-primary-cluster'
9797
alloydb_primary_instance_name: 'alloydb-primary-instance'
9898
alloydb_secondary_cluster_name: 'alloydb-secondary-cluster'
99-
skip_test: true
99+
exclude_test: true
100100
- name: 'alloydb_secondary_cluster_basic_test'
101101
primary_resource_id: 'secondary'
102102
vars:
@@ -106,7 +106,7 @@ examples:
106106
network_name: 'alloydb-network'
107107
test_vars_overrides:
108108
'network_name': 'acctest.BootstrapSharedServiceNetworkingConnection(t, "alloydbinstance-network-config-1")'
109-
skip_docs: true
109+
exclude_docs: true
110110
virtual_fields:
111111
- name: 'deletion_policy'
112112
description: |

0 commit comments

Comments
 (0)