Skip to content

Commit 12a164f

Browse files
Skip TestAccWorkstationsWorkstationConfig_workstationConfigEncryptionKeyExample (#7415) (#5299)
Signed-off-by: Modular Magician <[email protected]>
1 parent 90a0888 commit 12a164f

File tree

3 files changed

+3
-107
lines changed

3 files changed

+3
-107
lines changed

.changelog/7415.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/resource_workstations_workstation_config_generated_test.go

Lines changed: 0 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -343,108 +343,6 @@ resource "google_workstations_workstation_config" "default" {
343343
`, context)
344344
}
345345

346-
func TestAccWorkstationsWorkstationConfig_workstationConfigEncryptionKeyExample(t *testing.T) {
347-
t.Parallel()
348-
349-
context := map[string]interface{}{
350-
"random_suffix": RandString(t, 10),
351-
}
352-
353-
VcrTest(t, resource.TestCase{
354-
PreCheck: func() { testAccPreCheck(t) },
355-
Providers: TestAccProvidersOiCS,
356-
CheckDestroy: testAccCheckWorkstationsWorkstationConfigDestroyProducer(t),
357-
Steps: []resource.TestStep{
358-
{
359-
Config: testAccWorkstationsWorkstationConfig_workstationConfigEncryptionKeyExample(context),
360-
},
361-
{
362-
ResourceName: "google_workstations_workstation_config.default",
363-
ImportState: true,
364-
ImportStateVerify: true,
365-
ImportStateVerifyIgnore: []string{"workstation_config_id", "workstation_cluster_id", "location"},
366-
},
367-
},
368-
})
369-
}
370-
371-
func testAccWorkstationsWorkstationConfig_workstationConfigEncryptionKeyExample(context map[string]interface{}) string {
372-
return Nprintf(`
373-
resource "google_compute_network" "default" {
374-
provider = google-beta
375-
name = "tf-test-workstation-cluster%{random_suffix}"
376-
auto_create_subnetworks = false
377-
}
378-
379-
resource "google_compute_subnetwork" "default" {
380-
provider = google-beta
381-
name = "tf-test-workstation-cluster%{random_suffix}"
382-
ip_cidr_range = "10.0.0.0/24"
383-
region = "us-central1"
384-
network = google_compute_network.default.name
385-
}
386-
387-
resource "google_workstations_workstation_cluster" "default" {
388-
provider = google-beta
389-
workstation_cluster_id = "tf-test-workstation-cluster%{random_suffix}"
390-
network = google_compute_network.default.id
391-
subnetwork = google_compute_subnetwork.default.id
392-
location = "us-central1"
393-
394-
labels = {
395-
"label" = "key"
396-
}
397-
398-
annotations = {
399-
label-one = "value-one"
400-
}
401-
}
402-
403-
resource "google_kms_key_ring" "default" {
404-
name = "tf-test-workstation-cluster%{random_suffix}"
405-
location = "global"
406-
provider = google-beta
407-
}
408-
409-
resource "google_kms_crypto_key" "default" {
410-
name = "tf-test-workstation-cluster%{random_suffix}"
411-
key_ring = google_kms_key_ring.default.id
412-
rotation_period = "100000s"
413-
provider = google-beta
414-
}
415-
416-
resource "google_service_account" "default" {
417-
account_id = "tf-test-my-account%{random_suffix}"
418-
display_name = "Service Account"
419-
provider = google-beta
420-
}
421-
422-
resource "google_workstations_workstation_config" "default" {
423-
provider = google-beta
424-
workstation_config_id = "tf-test-workstation-config%{random_suffix}"
425-
workstation_cluster_id = google_workstations_workstation_cluster.default.workstation_cluster_id
426-
location = "us-central1"
427-
428-
host {
429-
gce_instance {
430-
machine_type = "e2-standard-4"
431-
boot_disk_size_gb = 35
432-
disable_public_ip_addresses = true
433-
shielded_instance_config {
434-
enable_secure_boot = true
435-
enable_vtpm = true
436-
}
437-
}
438-
}
439-
440-
encryption_key {
441-
kms_key = google_kms_crypto_key.default.id
442-
kms_key_service_account = google_service_account.default.email
443-
}
444-
}
445-
`, context)
446-
}
447-
448346
func testAccCheckWorkstationsWorkstationConfigDestroyProducer(t *testing.T) func(s *terraform.State) error {
449347
return func(s *terraform.State) error {
450348
for name, rs := range s.RootModule().Resources {

website/docs/r/workstations_workstation_config.html.markdown

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@ resource "google_workstations_workstation_config" "default" {
270270
}
271271
}
272272
```
273-
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
274-
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=workstation_config_encryption_key&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md" target="_blank">
275-
<img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">
276-
</a>
277-
</div>
278273
## Example Usage - Workstation Config Encryption Key
279274

280275

0 commit comments

Comments
 (0)