Skip to content

Commit f318613

Browse files
authored
Add handwritten tests to more tgc resources (GoogleCloudPlatform#15780)
1 parent 72edcaf commit f318613

17 files changed

Lines changed: 51 additions & 2 deletions

File tree

mmv1/api/resource.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,6 +2538,7 @@ func (r Resource) TGCTestIgnorePropertiesToStrings() []string {
25382538
"for_each",
25392539
"provider",
25402540
"lifecycle",
2541+
"timeouts",
25412542
}
25422543
for _, tp := range r.VirtualFields {
25432544
props = append(props, tp.MetadataLineage())

mmv1/products/clouddeploy/Automation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ async:
4242
resource_inside_response: false
4343
custom_code:
4444
include_in_tgc_next: true
45+
tgc_include_handwritten_tests: true
4546
examples:
4647
- name: 'clouddeploy_automation_basic'
4748
primary_resource_id: 'b-automation'

mmv1/products/clouddeploy/DeployPolicy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ async:
4242
resource_inside_response: false
4343
custom_code:
4444
include_in_tgc_next: true
45+
tgc_include_handwritten_tests: true
4546
examples:
4647
- name: "clouddeploy_deploy_policy_basic"
4748
primary_resource_id: "b-deploy-policy"

mmv1/products/compute/Image.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ iam_policy:
5656
parent_resource_attribute: 'image'
5757
iam_conditions_request_type: 'QUERY_PARAM'
5858
include_in_tgc_next: true
59+
tgc_include_handwritten_tests: true
5960
custom_code:
61+
tgc_decoder: 'templates/tgc_next/decoders/compute_image.go.tmpl'
6062
examples:
6163
- name: 'image_basic'
6264
primary_resource_id: 'example'
@@ -248,6 +250,7 @@ properties:
248250
You must provide either this property or the sourceDisk property
249251
but not both.
250252
required: true
253+
is_missing_in_cai: true
251254
- name: 'sourceDisk'
252255
type: ResourceRef
253256
description: |

mmv1/products/compute/Network.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ async:
3737
resource_inside_response: false
3838
collection_url_key: 'items'
3939
include_in_tgc_next: true
40+
tgc_include_handwritten_tests: true
4041
sweeper:
4142
dependencies:
4243
# - "google_network_security_intercept_endpoint_group" (beta only)

mmv1/products/compute/RegionHealthCheck.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ custom_code:
5353
custom_diff:
5454
- 'healthCheckCustomizeDiff'
5555
include_in_tgc_next: true
56+
tgc_include_handwritten_tests: true
57+
tgc_tests:
58+
- name: 'TestAccComputeRegionHealthCheck_typeTransition'
59+
skip: 'Test data has mismatched steps'
60+
- name: 'TestAccComputeRegionHealthCheck_grpcWithTls_create'
61+
skip: 'Test data has mismatched steps'
62+
- name: 'TestAccComputeRegionHealthCheck_grpcWithTls_update'
63+
skip: 'Test data has mismatched steps'
5664
sweeper:
5765
url_substitutions:
5866
- region: "us-central1"

mmv1/products/compute/Subnetwork.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ docs:
4646
base_url: 'projects/{{project}}/regions/{{region}}/subnetworks'
4747
has_self_link: true
4848
include_in_tgc_next: true
49+
tgc_include_handwritten_tests: true
50+
tgc_tests:
51+
- name: 'TestAccComputeSubnetwork_secondaryIpRanges'
52+
skip: 'Test data has mismatched steps'
4953
immutable: true
5054
timeouts:
5155
insert_minutes: 20

mmv1/products/compute/UrlMap.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ async:
3737
resource_inside_response: false
3838
collection_url_key: 'items'
3939
include_in_tgc_next: true
40+
tgc_include_handwritten_tests: true
41+
tgc_tests:
42+
- name: 'TestAccComputeUrlMap_trafficDirectorRemoveRouteRule'
43+
skip: 'Test data has mismatched steps'
4044
custom_code:
4145
examples:
4246
- name: 'url_map_bucket_and_service'

mmv1/products/dataproc/Batch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ async:
4545
resource_inside_response: false
4646
collection_url_key: 'batches'
4747
include_in_tgc_next: true
48+
tgc_include_handwritten_tests: true
4849
tgc_ignore_terraform_decoder: true
4950
custom_code:
5051
constants: 'templates/terraform/constants/cloud_dataproc_batch.go.tmpl'

mmv1/products/datastream/ConnectionProfile.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ async:
4040
result:
4141
resource_inside_response: true
4242
include_in_tgc_next: true
43+
tgc_include_handwritten_tests: true
4344
custom_code:
4445
constants: 'templates/terraform/constants/datastream_connection_profile.go.tmpl'
4546
pre_create: 'templates/terraform/pre_create/datastream_connection_profile.go.tmpl'
@@ -256,6 +257,7 @@ properties:
256257
Password for the MySQL connection.
257258
sensitive: true
258259
custom_flatten: 'templates/terraform/custom_flatten/datastream_connection_profile_mysql_profile_password.go.tmpl'
260+
is_missing_in_cai: true
259261
- name: 'secretManagerStoredPassword'
260262
type: String
261263
description: |
@@ -526,6 +528,7 @@ properties:
526528
Password for the MongoDB connection. Mutually exclusive with
527529
secretManagerStoredPassword.
528530
sensitive: true
531+
is_missing_in_cai: true
529532
- name: 'secretManagerStoredPassword'
530533
type: String
531534
description: |
@@ -662,6 +665,7 @@ properties:
662665
conflicts:
663666
- forward_ssh_connectivity.0.password
664667
custom_flatten: 'templates/terraform/custom_flatten/datastream_connection_profile_forward_ssh_connectivity_private_key.go.tmpl'
668+
is_missing_in_cai: true
665669
- name: 'privateConnectivity'
666670
type: NestedObject
667671
description: |

0 commit comments

Comments
 (0)