Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#3039 from justinsb/tests_norma…
Browse files Browse the repository at this point in the history
…lize_folder_replacement

tests: switch placeholder from testFolderId -> folderID
  • Loading branch information
google-oss-prow[bot] authored Oct 31, 2024
2 parents 2f8dd4f + 102f16f commit b090f61
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ User-Agent: google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terr
"lifecycleState": "ACTIVE",
"name": "projects/${projectId}",
"parent": {
"id": "${testFolderId}",
"id": "${folderID}",
"type": "folder"
},
"projectId": "${projectId}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ User-Agent: google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terr
"lifecycleState": "ACTIVE",
"name": "projects/${projectId}",
"parent": {
"id": "${testFolderId}",
"id": "${folderID}",
"type": "folder"
},
"projectId": "${projectId}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GET https://cloudkms.googleapis.com/v1/folders/${testFolderId}/autokeyConfig?%24alt=json%3Benum-encoding%3Dint
GET https://cloudkms.googleapis.com/v1/folders/${folderID}/autokeyConfig?%24alt=json%3Benum-encoding%3Dint
Content-Type: application/json
User-Agent: kcc/controller-manager
x-goog-request-params: name=folders%2F${testFolderId}%2FautokeyConfig
x-goog-request-params: name=folders%2F${folderID}%2FautokeyConfig

200 OK
Cache-Control: private
Expand All @@ -20,14 +20,14 @@ X-Xss-Protection: 0

---

PATCH https://cloudkms.googleapis.com/v1/folders/${testFolderId}/autokeyConfig?%24alt=json%3Benum-encoding%3Dint&updateMask=keyProject
PATCH https://cloudkms.googleapis.com/v1/folders/${folderID}/autokeyConfig?%24alt=json%3Benum-encoding%3Dint&updateMask=keyProject
Content-Type: application/json
User-Agent: kcc/controller-manager
x-goog-request-params: autokey_config.name=folders%2F${testFolderId}%2FautokeyConfig
x-goog-request-params: autokey_config.name=folders%2F${folderID}%2FautokeyConfig

{
"keyProject": "projects/${uniqueId}",
"name": "folders/${testFolderId}/autokeyConfig"
"name": "folders/${folderID}/autokeyConfig"
}

200 OK
Expand All @@ -43,16 +43,16 @@ X-Xss-Protection: 0

{
"keyProject": "projects/${uniqueId}",
"name": "folders/${testFolderId}/autokeyConfig",
"name": "folders/${folderID}/autokeyConfig",
"state": 1
}

---

GET https://cloudkms.googleapis.com/v1/folders/${testFolderId}/autokeyConfig?%24alt=json%3Benum-encoding%3Dint
GET https://cloudkms.googleapis.com/v1/folders/${folderID}/autokeyConfig?%24alt=json%3Benum-encoding%3Dint
Content-Type: application/json
User-Agent: kcc/controller-manager
x-goog-request-params: name=folders%2F${testFolderId}%2FautokeyConfig
x-goog-request-params: name=folders%2F${folderID}%2FautokeyConfig

200 OK
Cache-Control: private
Expand All @@ -67,20 +67,20 @@ X-Xss-Protection: 0

{
"keyProject": "projects/${uniqueId}",
"name": "folders/${testFolderId}/autokeyConfig",
"name": "folders/${folderID}/autokeyConfig",
"state": 1
}

---

PATCH https://cloudkms.googleapis.com/v1/folders/${testFolderId}/autokeyConfig?%24alt=json%3Benum-encoding%3Dint&updateMask=keyProject
PATCH https://cloudkms.googleapis.com/v1/folders/${folderID}/autokeyConfig?%24alt=json%3Benum-encoding%3Dint&updateMask=keyProject
Content-Type: application/json
User-Agent: kcc/controller-manager
x-goog-request-params: autokey_config.name=folders%2F${testFolderId}%2FautokeyConfig
x-goog-request-params: autokey_config.name=folders%2F${folderID}%2FautokeyConfig

{
"keyProject": "projects/diff-{uniqueId}",
"name": "folders/${testFolderId}/autokeyConfig"
"name": "folders/${folderID}/autokeyConfig"
}

200 OK
Expand All @@ -96,16 +96,16 @@ X-Xss-Protection: 0

{
"keyProject": "projects/diff-{uniqueId}",
"name": "folders/${testFolderId}/autokeyConfig",
"name": "folders/${folderID}/autokeyConfig",
"state": 1
}

---

GET https://cloudkms.googleapis.com/v1/folders/${testFolderId}/autokeyConfig?%24alt=json%3Benum-encoding%3Dint
GET https://cloudkms.googleapis.com/v1/folders/${folderID}/autokeyConfig?%24alt=json%3Benum-encoding%3Dint
Content-Type: application/json
User-Agent: kcc/controller-manager
x-goog-request-params: name=folders%2F${testFolderId}%2FautokeyConfig
x-goog-request-params: name=folders%2F${folderID}%2FautokeyConfig

200 OK
Cache-Control: private
Expand All @@ -120,6 +120,6 @@ X-Xss-Protection: 0

{
"keyProject": "projects/diff-{uniqueId}",
"name": "folders/${testFolderId}/autokeyConfig",
"name": "folders/${folderID}/autokeyConfig",
"state": 1
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GET https://cloudresourcemanager.googleapis.com/v3/folders:search?alt=json&pageToken=&prettyPrint=false&query=state%3DACTIVE+AND+parent%3Dfolders%2F${testFolderId}+AND+displayName%3D%22Bucket+${uniqueId}%22
GET https://cloudresourcemanager.googleapis.com/v3/folders:search?alt=json&pageToken=&prettyPrint=false&query=state%3DACTIVE+AND+parent%3Dfolders%2F${folderID}+AND+displayName%3D%22Bucket+${uniqueId}%22
User-Agent: google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager

200 OK
Expand All @@ -22,7 +22,7 @@ User-Agent: google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terr

{
"displayName": "Bucket ${uniqueId}",
"parent": "folders/${testFolderId}"
"parent": "folders/${folderID}"
}

200 OK
Expand Down Expand Up @@ -66,7 +66,7 @@ X-Xss-Protection: 0
"displayName": "Bucket ${uniqueId}",
"etag": "abcdef0123A=",
"name": "folders/${folderID}",
"parent": "folders/${testFolderId}",
"parent": "folders/${folderID}",
"state": "ACTIVE",
"updateTime": "2024-04-01T12:34:56.123456Z"
}
Expand Down Expand Up @@ -97,7 +97,7 @@ X-Xss-Protection: 0
"displayName": "Bucket ${uniqueId}",
"etag": "abcdef0123A=",
"name": "folders/${folderID}",
"parent": "folders/${testFolderId}",
"parent": "folders/${folderID}",
"state": "ACTIVE",
"updateTime": "2024-04-01T12:34:56.123456Z"
}
Expand All @@ -124,7 +124,7 @@ X-Xss-Protection: 0
"displayName": "Bucket ${uniqueId}",
"etag": "abcdef0123A=",
"name": "folders/${folderID}",
"parent": "folders/${testFolderId}",
"parent": "folders/${folderID}",
"state": "ACTIVE",
"updateTime": "2024-04-01T12:34:56.123456Z"
}
Expand Down Expand Up @@ -282,7 +282,7 @@ X-Xss-Protection: 0
"displayName": "Bucket ${uniqueId}",
"etag": "abcdef0123A=",
"name": "folders/${folderID}",
"parent": "folders/${testFolderId}",
"parent": "folders/${folderID}",
"state": "ACTIVE",
"updateTime": "2024-04-01T12:34:56.123456Z"
}
Expand Down Expand Up @@ -311,7 +311,7 @@ X-Xss-Protection: 0
"displayName": "Bucket ${uniqueId}",
"etag": "abcdef0123A=",
"name": "folders/${folderID}",
"parent": "folders/${testFolderId}",
"parent": "folders/${folderID}",
"state": "DELETE_REQUESTED",
"updateTime": "2024-04-01T12:34:56.123456Z"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ User-Agent: google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terr
},
"name": "A monitored project",
"parent": {
"id": "${testFolderId}",
"id": "${folderID}",
"type": "folder"
},
"projectId": "other${uniqueId}"
Expand Down Expand Up @@ -87,7 +87,7 @@ X-Xss-Protection: 0
"managed-by-cnrm": "true"
},
"name": "projects/${projectNumber}",
"parent": "folders/${testFolderId}",
"parent": "folders/${folderID}",
"projectId": "other${uniqueId}",
"state": "ACTIVE"
}
Expand Down Expand Up @@ -118,7 +118,7 @@ X-Xss-Protection: 0
"lifecycleState": "ACTIVE",
"name": "A monitored project",
"parent": {
"id": "${testFolderId}",
"id": "${folderID}",
"type": "folder"
},
"projectId": "other${uniqueId}",
Expand Down Expand Up @@ -1028,7 +1028,7 @@ X-Xss-Protection: 0
"lifecycleState": "ACTIVE",
"name": "A monitored project",
"parent": {
"id": "${testFolderId}",
"id": "${folderID}",
"type": "folder"
},
"projectId": "other${uniqueId}",
Expand Down
Loading

0 comments on commit b090f61

Please sign in to comment.