From 7d56b7721414ac04aea38908ea701b9e837085e6 Mon Sep 17 00:00:00 2001 From: camilabustos Date: Mon, 2 Dec 2024 22:14:02 +0000 Subject: [PATCH] log: mock gcp --- .../apigeeenvgroup/apigeeenvgroup-basic/_http.log | 12 +++++++++--- .../apigeeenvgroup/apigeeenvgroup-full/_http.log | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/pkg/test/resourcefixture/testdata/basic/apigee/v1alpha1/apigeeenvgroup/apigeeenvgroup-basic/_http.log b/pkg/test/resourcefixture/testdata/basic/apigee/v1alpha1/apigeeenvgroup/apigeeenvgroup-basic/_http.log index 612921c53b..28d5e3c19d 100644 --- a/pkg/test/resourcefixture/testdata/basic/apigee/v1alpha1/apigeeenvgroup/apigeeenvgroup-basic/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/apigee/v1alpha1/apigeeenvgroup/apigeeenvgroup-basic/_http.log @@ -3,6 +3,7 @@ Content-Type: application/json User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager 404 Not Found +Cache-Control: private Content-Type: application/json; charset=UTF-8 Server: ESF Vary: Origin @@ -34,6 +35,7 @@ User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 t } 200 OK +Cache-Control: private Content-Type: application/json; charset=UTF-8 Server: ESF Vary: Origin @@ -46,17 +48,19 @@ X-Xss-Protection: 0 { "done": true, "metadata": { - "@type": "type.googleapis.com/google.cloud.apigee.v1.OperationMetadata", + "@type": "type.googleapis.com/google.cloud.apigee.v1.GoogleCloudApigeeV1OperationMetadata", "operationType": "INSERT", "state": "FINISHED", "targetResourceName": "organizations/${projectId}/envgroups/apigeeenvgroup-${uniqueId}" }, "name": "organizations/${projectId}/operations/${operationID}", "response": { - "@type": "type.googleapis.com/google.cloud.apigee.v1.EnvironmentGroup", + "@type": "type.googleapis.com/google.cloud.apigee.v1.GoogleCloudApigeeV1EnvironmentGroup", + "createdAt": "2024-04-01T12:34:56.123456Z", "hostnames": [ "${uniqueId}.mytesthost.net" ], + "lastModifiedAt": "2024-04-01T12:34:56.123456Z", "name": "apigeeenvgroup-${uniqueId}", "state": "ACTIVE" } @@ -69,6 +73,7 @@ Content-Type: application/json User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager 200 OK +Cache-Control: private Content-Type: application/json; charset=UTF-8 Server: ESF Vary: Origin @@ -95,6 +100,7 @@ Content-Type: application/json User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager 200 OK +Cache-Control: private Content-Type: application/json; charset=UTF-8 Server: ESF Vary: Origin @@ -107,7 +113,7 @@ X-Xss-Protection: 0 { "done": true, "metadata": { - "@type": "type.googleapis.com/google.cloud.apigee.v1.OperationMetadata", + "@type": "type.googleapis.com/google.cloud.apigee.v1.GoogleCloudApigeeV1OperationMetadata", "operationType": "DELETE", "state": "FINISHED", "targetResourceName": "organizations/${projectId}/envgroups/apigeeenvgroup-${uniqueId}" diff --git a/pkg/test/resourcefixture/testdata/basic/apigee/v1alpha1/apigeeenvgroup/apigeeenvgroup-full/_http.log b/pkg/test/resourcefixture/testdata/basic/apigee/v1alpha1/apigeeenvgroup/apigeeenvgroup-full/_http.log index 67bb60c2e0..a0ca986647 100644 --- a/pkg/test/resourcefixture/testdata/basic/apigee/v1alpha1/apigeeenvgroup/apigeeenvgroup-full/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/apigee/v1alpha1/apigeeenvgroup/apigeeenvgroup-full/_http.log @@ -3,6 +3,7 @@ Content-Type: application/json User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager 404 Not Found +Cache-Control: private Content-Type: application/json; charset=UTF-8 Server: ESF Vary: Origin @@ -34,6 +35,7 @@ User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 t } 200 OK +Cache-Control: private Content-Type: application/json; charset=UTF-8 Server: ESF Vary: Origin @@ -46,17 +48,19 @@ X-Xss-Protection: 0 { "done": true, "metadata": { - "@type": "type.googleapis.com/google.cloud.apigee.v1.OperationMetadata", + "@type": "type.googleapis.com/google.cloud.apigee.v1.GoogleCloudApigeeV1OperationMetadata", "operationType": "INSERT", "state": "FINISHED", "targetResourceName": "organizations/${projectId}/envgroups/apigeeenvgroup-full-${uniqueId}" }, "name": "organizations/${projectId}/operations/${operationID}", "response": { - "@type": "type.googleapis.com/google.cloud.apigee.v1.EnvironmentGroup", + "@type": "type.googleapis.com/google.cloud.apigee.v1.GoogleCloudApigeeV1EnvironmentGroup", + "createdAt": "2024-04-01T12:34:56.123456Z", "hostnames": [ "${uniqueId}.mytesthost.net" ], + "lastModifiedAt": "2024-04-01T12:34:56.123456Z", "name": "apigeeenvgroup-full-${uniqueId}", "state": "ACTIVE" } @@ -69,6 +73,7 @@ Content-Type: application/json User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager 200 OK +Cache-Control: private Content-Type: application/json; charset=UTF-8 Server: ESF Vary: Origin @@ -95,6 +100,7 @@ Content-Type: application/json User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager 200 OK +Cache-Control: private Content-Type: application/json; charset=UTF-8 Server: ESF Vary: Origin @@ -107,7 +113,7 @@ X-Xss-Protection: 0 { "done": true, "metadata": { - "@type": "type.googleapis.com/google.cloud.apigee.v1.OperationMetadata", + "@type": "type.googleapis.com/google.cloud.apigee.v1.GoogleCloudApigeeV1OperationMetadata", "operationType": "DELETE", "state": "FINISHED", "targetResourceName": "organizations/${projectId}/envgroups/apigeeenvgroup-full-${uniqueId}"