From e2dcd784a0436203ff2b24ee15c79c4756091f0b Mon Sep 17 00:00:00 2001 From: Gemma Hou Date: Tue, 12 Mar 2024 20:28:34 +0000 Subject: [PATCH] add hook --- config/tests/samples/create/harness.go | 7 + ...InSeries_fixtures_computenodetemplate.yaml | 289 +++++++++++++++++- 2 files changed, 286 insertions(+), 10 deletions(-) diff --git a/config/tests/samples/create/harness.go b/config/tests/samples/create/harness.go index 4944bde8f7..16e43daab1 100644 --- a/config/tests/samples/create/harness.go +++ b/config/tests/samples/create/harness.go @@ -327,10 +327,17 @@ func NewHarness(ctx context.Context, t *testing.T) *Harness { } r, err := recorder.NewWithOptions(opts) if err != nil { +<<<<<<< HEAD t.Fatalf("[VCR] Failed create vcr recorder: %v", err) } h.VCRRecorder = r ret = &http.Client{Transport: h.VCRRecorder} +======= + t.Fatalf("creat vcr recorder failed: %v", err) + } + h.Rec = r + ret = &http.Client{Transport: h.Rec} +>>>>>>> e848f5336 (add hook) return ret } } else { diff --git a/pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml b/pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml index 3204f0bc8c..7addd2e4ad 100644 --- a/pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +++ b/pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml @@ -31,6 +31,7 @@ interactions: headers: Content-Type: - application/json +<<<<<<< HEAD <<<<<<< HEAD url: https://compute.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111?alt=json ======= @@ -38,6 +39,15 @@ interactions: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q?alt=json >>>>>>> 0bd8e264f (use go-vcr package) +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml + User-Agent: + - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev + url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q?alt=json +======= + url: https://compute.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}?alt=json +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) method: GET response: proto: HTTP/2.0 @@ -51,6 +61,7 @@ interactions: { "error": { "code": 404, +<<<<<<< HEAD <<<<<<< HEAD "message": "The resource 'projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111' was not found", "errors": [ @@ -60,10 +71,19 @@ interactions: "reason": "notFound", "debugInfo": "fake debug info" ======= +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) "message": "The resource 'projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q' was not found", "errors": [ { "message": "The resource 'projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q' was not found", +======= + "message": "The resource 'projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}' was not found", + "errors": [ + { + "message": "The resource 'projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}' was not found", +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "domain": "global", "reason": "notFound", "debugInfo": "java.lang.Exception\n\tat com.google.cloud.control.common.publicerrors.PublicErrorProtoUtils.newErrorBuilder(PublicErrorProtoUtils.java:2158)\n\tat com.google.cloud.control.common.publicerrors.PublicErrorProtoUtils.newErrorBuilder(PublicErrorProtoUtils.java:2150)\n\tat com.google.cloud.control.common.publicerrors.PublicErrorProtoUtils.createResourceNotFoundError(PublicErrorProtoUtils.java:194)\n\tat com.google.cloud.control.entities.clhbridge.ClhBridgeEntityLoader.lambda$getEntityByReference$0(ClhBridgeEntityLoader.java:164)\n\tat java.base/java.util.Optional.orElseThrow(Unknown Source)\n\tat com.google.cloud.control.entities.clhbridge.ClhBridgeEntityLoader.getEntityByReference(ClhBridgeEntityLoader.java:161)\n\tat com.google.cloud.control.services.clhbridge.ClhBridgeGetResourceAction$Handler.runAttempt(ClhBridgeGetResourceAction.java:390)\n\tat com.google.cloud.control.services.clhbridge.ClhBridgeGetResourceAction$Handler.runAttempt(ClhBridgeGetResourceAction.java:267)\n\tat com.google.cloud.cluster.metastore.RetryingMetastoreTransactionExecutor$1.runAttempt(RetryingMetastoreTransactionExecutor.java:94)\n\tat com.google.cloud.cluster.metastore.MetastoreRetryLoop.runHandler(MetastoreRetryLoop.java:523)\n\t...Stack trace is shortened.\n" @@ -73,6 +93,7 @@ interactions: } } headers: +<<<<<<< HEAD <<<<<<< HEAD Content-Type: - application/json; charset=UTF-8 @@ -82,8 +103,11 @@ interactions: ======= Cache-Control: - private +======= +>>>>>>> 6dabbac2d (add hook) Content-Type: - application/json; charset=UTF-8 +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml Date: - Thu, 14 Mar 2024 17:40:31 GMT Server: @@ -101,7 +125,15 @@ interactions: status: 404 Not Found code: 404 duration: 400.888332ms +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + status: 404 Not Found + code: 404 + duration: 193.994653ms +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) - id: 1 request: proto: HTTP/1.1 @@ -114,15 +146,24 @@ interactions: remote_addr: "" request_uri: "" body: | +<<<<<<< HEAD <<<<<<< HEAD {"cpuOvercommitType":"NONE","description":"Node template for sole tenant nodes running in us-central1, with 96vCPUs and any amount of memory on any machine type.","name":"computenodetemplate-uniqueid111111","nodeAffinityLabels":{"cnrm-test":"true","managed-by-cnrm":"true","memory_guarantee":"false"},"nodeTypeFlexibility":{"cpus":"96","memory":"any"},"region":"projects/cnrm-user/global/regions/us-central1"} ======= {"cpuOvercommitType":"NONE","description":"Node template for sole tenant nodes running in us-central1, with 96vCPUs and any amount of memory on any machine type.","name":"computenodetemplate-ecutmuuaqyhab6sxwf7q","nodeAffinityLabels":{"cnrm-test":"true","managed-by-cnrm":"true","memory_guarantee":"false"},"nodeTypeFlexibility":{"cpus":"96","memory":"any"},"region":"projects/cnrm-yuhou/global/regions/us-central1"} >>>>>>> 0bd8e264f (use go-vcr package) +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml + {"cpuOvercommitType":"NONE","description":"Node template for sole tenant nodes running in us-central1, with 96vCPUs and any amount of memory on any machine type.","name":"computenodetemplate-ecutmuuaqyhab6sxwf7q","nodeAffinityLabels":{"cnrm-test":"true","managed-by-cnrm":"true","memory_guarantee":"false"},"nodeTypeFlexibility":{"cpus":"96","memory":"any"},"region":"projects/cnrm-yuhou/global/regions/us-central1"} +======= + {"cpuOvercommitType":"NONE","description":"Node template for sole tenant nodes running in us-central1, with 96vCPUs and any amount of memory on any machine type.","name":"computenodetemplate-{uniqueID}","nodeAffinityLabels":{"cnrm-test":"true","managed-by-cnrm":"true","memory_guarantee":"false"},"nodeTypeFlexibility":{"cpus":"96","memory":"any"},"region":"projects/{projectID}/global/regions/us-central1"} +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) form: {} headers: Content-Type: - application/json +<<<<<<< HEAD <<<<<<< HEAD url: https://compute.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates?alt=json ======= @@ -130,6 +171,9 @@ interactions: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates?alt=json >>>>>>> 0bd8e264f (use go-vcr package) +======= + url: https://compute.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates?alt=json +>>>>>>> 6dabbac2d (add hook) method: POST response: proto: HTTP/2.0 @@ -142,6 +186,7 @@ interactions: body: | { "kind": "compute#operation", +<<<<<<< HEAD <<<<<<< HEAD "id": "6628313260286154337", "name": "operation-1710467214059-613a92eb1a9a2-e761c6e4-c35dd456", @@ -163,24 +208,40 @@ interactions: code: 200 duration: 765.124261ms ======= +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) "id": "5139217832128448639", "name": "operation-1710438031884-613a2634d0282-3478b363-e0af1d97", "operationType": "compute.nodeTemplates.insert", "targetLink": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q", "targetId": "6493056936179566719", +======= + "id": "6426718546362724406", + "name": "operation-1710280409165-6137db041301e-c8b805d3-fe2f3939", + "operationType": "compute.nodeTemplates.insert", + "targetLink": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}", + "targetId": "3271522381153005622", +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "status": "RUNNING", - "user": "yuhou@google.com", + "user": "{user}", "progress": 0, +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "insertTime": "2024-03-14T10:40:32.186-07:00", "startTime": "2024-03-14T10:40:32.237-07:00", "selfLink": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/operations/operation-1710438031884-613a2634d0282-3478b363-e0af1d97", "region": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1" +======= + "insertTime": "2024-03-12T14:53:29.437-07:00", + "startTime": "2024-03-12T14:53:29.473-07:00", + "selfLink": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/operations/operation-1710280409165-6137db041301e-c8b805d3-fe2f3939", + "region": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1" +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml } headers: - Cache-Control: - - private Content-Type: - application/json; charset=UTF-8 +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml Date: - Thu, 14 Mar 2024 17:40:32 GMT Server: @@ -198,7 +259,15 @@ interactions: status: 200 OK code: 200 duration: 462.916981ms +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + status: 200 OK + code: 200 + duration: 451.513773ms +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) - id: 2 request: proto: HTTP/1.1 @@ -213,6 +282,7 @@ interactions: body: "" form: {} headers: +<<<<<<< HEAD <<<<<<< HEAD X-Goog-Api-Client: - gl-go/1.21.5 gdcl/0.160.0 @@ -220,10 +290,19 @@ interactions: ======= User-Agent: - google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev +======= +>>>>>>> 6dabbac2d (add hook) X-Goog-Api-Client: - gl-go/1.21.5 gdcl/0.160.0 +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/operations/operation-1710438031884-613a2634d0282-3478b363-e0af1d97?alt=json&prettyPrint=false +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + url: https://compute.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/operations/operation-1710280409165-6137db041301e-c8b805d3-fe2f3939?alt=json&prettyPrint=false +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) method: GET response: proto: HTTP/2.0 @@ -233,6 +312,7 @@ interactions: trailer: {} content_length: -1 uncompressed: true +<<<<<<< HEAD <<<<<<< HEAD body: '{"kind":"compute#operation","id":"6628313260286154337","name":"operation-1710467214059-613a92eb1a9a2-e761c6e4-c35dd456","operationType":"compute.nodeTemplates.insert","targetLink":"https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111","targetId":"1840433634538821217","status":"DONE","user":"user@google.com","progress":100,"insertTime":"2024-03-14T18:46:54.656-07:00","startTime":"2024-03-14T18:46:54.697-07:00","endTime":"2024-03-14T18:46:54.994-07:00","selfLink":"https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/operations/operation-1710467214059-613a92eb1a9a2-e761c6e4-c35dd456","region":"https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1"}' headers: @@ -242,12 +322,17 @@ interactions: code: 200 duration: 346.050124ms ======= +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) body: '{"kind":"compute#operation","id":"5139217832128448639","name":"operation-1710438031884-613a2634d0282-3478b363-e0af1d97","operationType":"compute.nodeTemplates.insert","targetLink":"https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q","targetId":"6493056936179566719","status":"DONE","user":"yuhou@google.com","progress":100,"insertTime":"2024-03-14T10:40:32.186-07:00","startTime":"2024-03-14T10:40:32.237-07:00","endTime":"2024-03-14T10:40:32.557-07:00","selfLink":"https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/operations/operation-1710438031884-613a2634d0282-3478b363-e0af1d97","region":"https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1"}' +======= + body: '{"kind":"compute#operation","id":"6426718546362724406","name":"operation-1710280409165-6137db041301e-c8b805d3-fe2f3939","operationType":"compute.nodeTemplates.insert","targetLink":"https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}","targetId":"3271522381153005622","status":"DONE","user":"{user}","progress":100,"insertTime":"2024-03-12T14:53:29.437-07:00","startTime":"2024-03-12T14:53:29.473-07:00","endTime":"2024-03-12T14:53:29.755-07:00","selfLink":"https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/operations/operation-1710280409165-6137db041301e-c8b805d3-fe2f3939","region":"https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1"}' +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml headers: - Cache-Control: - - private Content-Type: - application/json; charset=UTF-8 +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml Date: - Thu, 14 Mar 2024 17:40:32 GMT Etag: @@ -267,7 +352,15 @@ interactions: status: 200 OK code: 200 duration: 169.399533ms +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + status: 200 OK + code: 200 + duration: 134.839655ms +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) - id: 3 request: proto: HTTP/1.1 @@ -284,6 +377,7 @@ interactions: headers: Content-Type: - application/json +<<<<<<< HEAD <<<<<<< HEAD url: https://compute.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111?alt=json ======= @@ -291,6 +385,15 @@ interactions: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q?alt=json >>>>>>> 0bd8e264f (use go-vcr package) +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml + User-Agent: + - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev + url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q?alt=json +======= + url: https://compute.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}?alt=json +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) method: GET response: proto: HTTP/2.0 @@ -303,6 +406,7 @@ interactions: body: | { "kind": "compute#nodeTemplate", +<<<<<<< HEAD <<<<<<< HEAD "id": "1840433634538821217", "creationTimestamp": "2024-03-14T18:46:54.668-07:00", @@ -317,9 +421,17 @@ interactions: "region": "https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1", "selfLink": "https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111", ======= +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) "id": "6493056936179566719", "creationTimestamp": "2024-03-14T10:40:32.200-07:00", "name": "computenodetemplate-ecutmuuaqyhab6sxwf7q", +======= + "id": "3271522381153005622", + "creationTimestamp": "2024-03-12T14:53:29.448-07:00", + "name": "computenodetemplate-{uniqueID}", +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "description": "Node template for sole tenant nodes running in us-central1, with 96vCPUs and any amount of memory on any machine type.", "nodeAffinityLabels": { "managed-by-cnrm": "true", @@ -327,9 +439,17 @@ interactions: "memory_guarantee": "false" }, "status": "READY", +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "region": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1", "selfLink": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q", +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + "region": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1", + "selfLink": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}", +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) "nodeTypeFlexibility": { "cpus": "96", "memory": "any" @@ -340,6 +460,7 @@ interactions: "cpuOvercommitType": "NONE" } headers: +<<<<<<< HEAD <<<<<<< HEAD Content-Type: - application/json; charset=UTF-8 @@ -349,8 +470,11 @@ interactions: ======= Cache-Control: - private +======= +>>>>>>> 6dabbac2d (add hook) Content-Type: - application/json; charset=UTF-8 +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml Date: - Thu, 14 Mar 2024 17:40:33 GMT Server: @@ -368,7 +492,15 @@ interactions: status: 200 OK code: 200 duration: 187.773865ms +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + status: 200 OK + code: 200 + duration: 106.807053ms +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) - id: 4 request: proto: HTTP/1.1 @@ -385,6 +517,7 @@ interactions: headers: Content-Type: - application/json +<<<<<<< HEAD <<<<<<< HEAD url: https://compute.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111?alt=json ======= @@ -392,6 +525,15 @@ interactions: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q?alt=json >>>>>>> 0bd8e264f (use go-vcr package) +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml + User-Agent: + - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev + url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q?alt=json +======= + url: https://compute.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}?alt=json +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) method: GET response: proto: HTTP/2.0 @@ -404,6 +546,7 @@ interactions: body: | { "kind": "compute#nodeTemplate", +<<<<<<< HEAD <<<<<<< HEAD "id": "1840433634538821217", "creationTimestamp": "2024-03-14T18:46:54.668-07:00", @@ -418,9 +561,17 @@ interactions: "region": "https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1", "selfLink": "https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111", ======= +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) "id": "6493056936179566719", "creationTimestamp": "2024-03-14T10:40:32.200-07:00", "name": "computenodetemplate-ecutmuuaqyhab6sxwf7q", +======= + "id": "3271522381153005622", + "creationTimestamp": "2024-03-12T14:53:29.448-07:00", + "name": "computenodetemplate-{uniqueID}", +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "description": "Node template for sole tenant nodes running in us-central1, with 96vCPUs and any amount of memory on any machine type.", "nodeAffinityLabels": { "managed-by-cnrm": "true", @@ -428,9 +579,17 @@ interactions: "memory_guarantee": "false" }, "status": "READY", +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "region": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1", "selfLink": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q", +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + "region": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1", + "selfLink": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}", +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) "nodeTypeFlexibility": { "cpus": "96", "memory": "any" @@ -441,6 +600,7 @@ interactions: "cpuOvercommitType": "NONE" } headers: +<<<<<<< HEAD <<<<<<< HEAD Content-Type: - application/json; charset=UTF-8 @@ -450,8 +610,11 @@ interactions: ======= Cache-Control: - private +======= +>>>>>>> 6dabbac2d (add hook) Content-Type: - application/json; charset=UTF-8 +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml Date: - Thu, 14 Mar 2024 17:40:33 GMT Server: @@ -469,7 +632,15 @@ interactions: status: 200 OK code: 200 duration: 175.398443ms +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + status: 200 OK + code: 200 + duration: 140.531606ms +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) - id: 5 request: proto: HTTP/1.1 @@ -486,6 +657,7 @@ interactions: headers: Content-Type: - application/json +<<<<<<< HEAD <<<<<<< HEAD url: https://compute.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111?alt=json ======= @@ -493,6 +665,15 @@ interactions: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q?alt=json >>>>>>> 0bd8e264f (use go-vcr package) +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml + User-Agent: + - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev + url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q?alt=json +======= + url: https://compute.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}?alt=json +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) method: GET response: proto: HTTP/2.0 @@ -505,6 +686,7 @@ interactions: body: | { "kind": "compute#nodeTemplate", +<<<<<<< HEAD <<<<<<< HEAD "id": "1840433634538821217", "creationTimestamp": "2024-03-14T18:46:54.668-07:00", @@ -519,9 +701,17 @@ interactions: "region": "https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1", "selfLink": "https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111", ======= +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) "id": "6493056936179566719", "creationTimestamp": "2024-03-14T10:40:32.200-07:00", "name": "computenodetemplate-ecutmuuaqyhab6sxwf7q", +======= + "id": "3271522381153005622", + "creationTimestamp": "2024-03-12T14:53:29.448-07:00", + "name": "computenodetemplate-{uniqueID}", +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "description": "Node template for sole tenant nodes running in us-central1, with 96vCPUs and any amount of memory on any machine type.", "nodeAffinityLabels": { "memory_guarantee": "false", @@ -529,9 +719,17 @@ interactions: "cnrm-test": "true" }, "status": "READY", +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "region": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1", "selfLink": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q", +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + "region": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1", + "selfLink": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}", +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) "nodeTypeFlexibility": { "cpus": "96", "memory": "any" @@ -542,6 +740,7 @@ interactions: "cpuOvercommitType": "NONE" } headers: +<<<<<<< HEAD <<<<<<< HEAD Content-Type: - application/json; charset=UTF-8 @@ -551,8 +750,11 @@ interactions: ======= Cache-Control: - private +======= +>>>>>>> 6dabbac2d (add hook) Content-Type: - application/json; charset=UTF-8 +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml Date: - Thu, 14 Mar 2024 17:40:34 GMT Server: @@ -570,7 +772,15 @@ interactions: status: 200 OK code: 200 duration: 120.547305ms +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + status: 200 OK + code: 200 + duration: 153.058018ms +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) - id: 6 request: proto: HTTP/1.1 @@ -587,6 +797,7 @@ interactions: headers: Content-Type: - application/json +<<<<<<< HEAD <<<<<<< HEAD url: https://compute.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111?alt=json ======= @@ -594,6 +805,15 @@ interactions: - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q?alt=json >>>>>>> 0bd8e264f (use go-vcr package) +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml + User-Agent: + - Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev + url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q?alt=json +======= + url: https://compute.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}?alt=json +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) method: DELETE response: proto: HTTP/2.0 @@ -606,6 +826,7 @@ interactions: body: | { "kind": "compute#operation", +<<<<<<< HEAD <<<<<<< HEAD "id": "7418327646336849534", "name": "operation-1710467217500-613a92ee627a5-f1e1baa3-4ae62678", @@ -627,24 +848,40 @@ interactions: code: 200 duration: 405.508656ms ======= +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) "id": "7466036151650781308", "name": "operation-1710438034990-613a2637c6612-777550f0-3427cc56", "operationType": "compute.nodeTemplates.delete", "targetLink": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q", "targetId": "6493056936179566719", +======= + "id": "4268830769584894004", + "name": "operation-1710280411551-6137db0659526-4edea800-8a439711", + "operationType": "compute.nodeTemplates.delete", + "targetLink": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}", + "targetId": "3271522381153005622", +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "status": "RUNNING", - "user": "yuhou@google.com", + "user": "{user}", "progress": 0, +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml "insertTime": "2024-03-14T10:40:35.246-07:00", "startTime": "2024-03-14T10:40:35.264-07:00", "selfLink": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/operations/operation-1710438034990-613a2637c6612-777550f0-3427cc56", "region": "https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1" +======= + "insertTime": "2024-03-12T14:53:31.759-07:00", + "startTime": "2024-03-12T14:53:31.773-07:00", + "selfLink": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/operations/operation-1710280411551-6137db0659526-4edea800-8a439711", + "region": "https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1" +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml } headers: - Cache-Control: - - private Content-Type: - application/json; charset=UTF-8 +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml Date: - Thu, 14 Mar 2024 17:40:35 GMT Server: @@ -662,7 +899,15 @@ interactions: status: 200 OK code: 200 duration: 427.334726ms +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + status: 200 OK + code: 200 + duration: 331.512368ms +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) - id: 7 request: proto: HTTP/1.1 @@ -677,6 +922,7 @@ interactions: body: "" form: {} headers: +<<<<<<< HEAD <<<<<<< HEAD X-Goog-Api-Client: - gl-go/1.21.5 gdcl/0.160.0 @@ -684,10 +930,19 @@ interactions: ======= User-Agent: - google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/dev +======= +>>>>>>> 6dabbac2d (add hook) X-Goog-Api-Client: - gl-go/1.21.5 gdcl/0.160.0 +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml url: https://compute.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/operations/operation-1710438034990-613a2637c6612-777550f0-3427cc56?alt=json&prettyPrint=false +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + url: https://compute.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/operations/operation-1710280411551-6137db0659526-4edea800-8a439711?alt=json&prettyPrint=false +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) method: GET response: proto: HTTP/2.0 @@ -697,6 +952,7 @@ interactions: trailer: {} content_length: -1 uncompressed: true +<<<<<<< HEAD <<<<<<< HEAD body: '{"kind":"compute#operation","id":"7418327646336849534","name":"operation-1710467217500-613a92ee627a5-f1e1baa3-4ae62678","operationType":"compute.nodeTemplates.delete","targetLink":"https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/nodeTemplates/computenodetemplate-uniqueid111111","targetId":"1840433634538821217","status":"DONE","user":"user@google.com","progress":100,"insertTime":"2024-03-14T18:46:57.768-07:00","startTime":"2024-03-14T18:46:57.795-07:00","endTime":"2024-03-14T18:46:58.153-07:00","selfLink":"https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1/operations/operation-1710467217500-613a92ee627a5-f1e1baa3-4ae62678","region":"https://www.googleapis.com/compute/beta/projects/cnrm-user/regions/us-central1"}' headers: @@ -706,12 +962,17 @@ interactions: code: 200 duration: 152.277906ms ======= +======= +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook) body: '{"kind":"compute#operation","id":"7466036151650781308","name":"operation-1710438034990-613a2637c6612-777550f0-3427cc56","operationType":"compute.nodeTemplates.delete","targetLink":"https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/nodeTemplates/computenodetemplate-ecutmuuaqyhab6sxwf7q","targetId":"6493056936179566719","status":"DONE","user":"yuhou@google.com","progress":100,"insertTime":"2024-03-14T10:40:35.246-07:00","startTime":"2024-03-14T10:40:35.264-07:00","endTime":"2024-03-14T10:40:35.573-07:00","selfLink":"https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1/operations/operation-1710438034990-613a2637c6612-777550f0-3427cc56","region":"https://www.googleapis.com/compute/beta/projects/cnrm-yuhou/regions/us-central1"}' +======= + body: '{"kind":"compute#operation","id":"4268830769584894004","name":"operation-1710280411551-6137db0659526-4edea800-8a439711","operationType":"compute.nodeTemplates.delete","targetLink":"https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/nodeTemplates/computenodetemplate-{uniqueID}","targetId":"3271522381153005622","status":"DONE","user":"{user}","progress":100,"insertTime":"2024-03-12T14:53:31.759-07:00","startTime":"2024-03-12T14:53:31.773-07:00","endTime":"2024-03-12T14:53:32.027-07:00","selfLink":"https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1/operations/operation-1710280411551-6137db0659526-4edea800-8a439711","region":"https://www.googleapis.com/compute/beta/projects/{projectID}/regions/us-central1"}' +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml headers: - Cache-Control: - - private Content-Type: - application/json; charset=UTF-8 +<<<<<<< HEAD:pkg/test/resourcefixture/testdata/vcr/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml Date: - Thu, 14 Mar 2024 17:40:35 GMT Etag: @@ -731,4 +992,12 @@ interactions: status: 200 OK code: 200 duration: 162.588352ms +<<<<<<< HEAD >>>>>>> 0bd8e264f (use go-vcr package) +======= +======= + status: 200 OK + code: 200 + duration: 147.118897ms +>>>>>>> e848f5336 (add hook):vcr/fixtures/cassette/TestAllInSeries_fixtures_computenodetemplate.yaml +>>>>>>> 6dabbac2d (add hook)