Skip to content

Commit 0b4839b

Browse files
authored
tgc-revival: Add more handwritten tests (#15937)
1 parent 837b46b commit 0b4839b

34 files changed

+56
-2
lines changed

mmv1/products/compute/BackendService.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async:
4444
resource_inside_response: false
4545
collection_url_key: 'items'
4646
include_in_tgc_next: true
47+
tgc_include_handwritten_tests: true
4748
iam_policy:
4849
allowed_iam_role: 'roles/compute.admin'
4950
parent_resource_attribute: 'name'
@@ -362,6 +363,7 @@ properties:
362363
field can only be used for a global or regional backend service with the
363364
loadBalancingScheme set to <code>EXTERNAL_MANAGED</code>,
364365
<code>INTERNAL_MANAGED</code> <code>INTERNAL_SELF_MANAGED</code>.
366+
is_missing_in_cai: true
365367
- name: 'dryRun'
366368
type: Boolean
367369
required: true
@@ -568,6 +570,7 @@ properties:
568570
type: NestedObject
569571
description: 'Cloud CDN configuration for this BackendService.'
570572
default_from_api: true
573+
is_missing_in_cai: true
571574
properties:
572575
- name: 'requestCoalescing'
573576
type: Boolean

mmv1/products/compute/Disk.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ async:
5151
resource_inside_response: false
5252
collection_url_key: 'items'
5353
include_in_tgc_next: true
54+
tgc_include_handwritten_tests: true
5455
iam_policy:
5556
parent_resource_attribute: 'name'
5657
base_url: 'projects/{{project}}/zones/{{zone}}/disks/{{name}}'
@@ -198,13 +199,15 @@ properties:
198199
Specifies a 256-bit customer-supplied encryption key, encoded in
199200
RFC 4648 base64 to either encrypt or decrypt this resource.
200201
sensitive: true
202+
is_missing_in_cai: true
201203
- name: 'rsaEncryptedKey'
202204
type: String
203205
description: |
204206
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
205207
customer-supplied encryption key to either encrypt or decrypt
206208
this resource. You can provide either the rawKey or the rsaEncryptedKey.
207209
sensitive: true
210+
is_missing_in_cai: true
208211
- name: 'sha256'
209212
type: String
210213
description: |

mmv1/products/compute/ExternalVpnGateway.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ async:
3636
resource_inside_response: false
3737
collection_url_key: 'items'
3838
include_in_tgc_next: true
39+
tgc_include_handwritten_tests: true
3940
custom_code:
4041
examples:
4142
- name: 'external_vpn_gateway'

mmv1/products/compute/Firewall.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ async:
5151
resource_inside_response: false
5252
collection_url_key: 'items'
5353
include_in_tgc_next: true
54+
tgc_include_handwritten_tests: true
5455
custom_code:
5556
extra_schema_entry: 'templates/terraform/extra_schema_entry/firewall.tmpl'
5657
constants: 'templates/terraform/constants/firewall.tmpl'

mmv1/products/compute/FirewallPolicy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ custom_code:
4242
custom_diff:
4343
- 'tpgresource.DefaultProviderProject'
4444
include_in_tgc_next: true
45+
tgc_include_handwritten_tests: true
4546
examples:
4647
- name: 'firewall_policy'
4748
primary_resource_id: 'default'

mmv1/products/compute/GlobalAddress.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ async:
4040
resource_inside_response: false
4141
collection_url_key: 'items'
4242
include_in_tgc_next: true
43+
tgc_include_handwritten_tests: true
4344
custom_code:
4445
pre_create: 'templates/terraform/pre_create/compute_global_address.go.tmpl'
4546
post_create: 'templates/terraform/post_create/labels.tmpl'
@@ -103,6 +104,7 @@ properties:
103104
description: |
104105
The IP Version that will be used by this address. The default value is `IPV4`.
105106
diff_suppress_func: 'tpgresource.EmptyOrDefaultStringSuppress("IPV4")'
107+
is_missing_in_cai: true
106108
enum_values:
107109
- 'IPV4'
108110
- 'IPV6'

mmv1/products/compute/HealthCheck.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ async:
5252
resource_inside_response: false
5353
collection_url_key: 'items'
5454
include_in_tgc_next: true
55+
tgc_include_handwritten_tests: true
5556
custom_code:
5657
constants: 'templates/terraform/constants/health_check.tmpl'
5758
encoder: 'templates/terraform/encoders/health_check_type.tmpl'
@@ -60,6 +61,11 @@ custom_diff:
6061
sweeper:
6162
dependencies:
6263
- "google_compute_subnetwork"
64+
tgc_tests:
65+
- name: 'TestAccComputeHealthCheck_grpcWithTls_create'
66+
skip: 'grpcTlsHealthCheck is not in CAI asset, but is required in this test.'
67+
- name: 'TestAccComputeHealthCheck_grpcWithTls_update'
68+
skip: 'grpcTlsHealthCheck is not in CAI asset, but is required in this test.'
6369
examples:
6470
- name: 'health_check_tcp'
6571
primary_resource_id: 'tcp-health-check'

mmv1/products/compute/RegionAutoscaler.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async:
4444
resource_inside_response: false
4545
collection_url_key: 'items'
4646
include_in_tgc_next: true
47+
tgc_include_handwritten_tests: true
4748
custom_code:
4849
examples:
4950
- name: 'region_autoscaler_basic'

mmv1/products/compute/Subnetwork.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ properties:
478478
update_url: 'projects/{{project}}/regions/{{region}}/subnetworks/{{name}}'
479479
update_verb: 'PATCH'
480480
fingerprint_name: 'fingerprint'
481+
is_missing_in_cai: true
481482
enum_values:
482483
- 'EXTERNAL'
483484
- 'INTERNAL'

mmv1/products/filestore/Snapshot.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ async:
4040
resource_inside_response: true
4141
custom_code:
4242
include_in_tgc_next: true
43+
tgc_include_handwritten_tests: true
4344
error_abort_predicates:
4445

4546
- 'transport_tpg.Is429QuotaError'

0 commit comments

Comments
 (0)