Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#3163 from ziyue-101/add-scenar…
Browse files Browse the repository at this point in the history
…io-gkehub

Generate set-unset golden output for gkehubfeaturemembership
  • Loading branch information
google-oss-prow[bot] authored Nov 15, 2024
2 parents 3ddbfd3 + a929d2f commit b113a9a
Show file tree
Hide file tree
Showing 13 changed files with 2,576 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
GET https://gkehub.googleapis.com/v1beta/projects/${projectId}/locations/global/features/configmanagement?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

404 Not Found
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"error": {
"code": 404,
"message": "feature \"projects/${projectId}/locations/global/features/configmanagement\" not found",
"status": "NOT_FOUND"
}
}

---

GET https://gkehub.googleapis.com/v1beta/projects/${projectId}/locations/global/features/configmanagement?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

404 Not Found
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"error": {
"code": 404,
"message": "feature \"projects/${projectId}/locations/global/features/configmanagement\" not found",
"status": "NOT_FOUND"
}
}

---

GET https://gkehub.googleapis.com/v1beta/projects/${projectId}/locations/global/features/configmanagement?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

404 Not Found
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"error": {
"code": 404,
"message": "feature \"projects/${projectId}/locations/global/features/configmanagement\" not found",
"status": "NOT_FOUND"
}
}

---

POST https://gkehub.googleapis.com/v1beta/projects/${projectId}/locations/global/features?alt=json&featureId=configmanagement
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

{
"labels": {
"managed-by-cnrm": "true"
},
"name": "projects/${projectId}/locations/global/features/configmanagement"
}

200 OK
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"metadata": {
"@type": "type.googleapis.com/google.cloud.gkehub.v1beta.OperationMetadata",
"createTime": "2024-04-01T12:34:56.123456Z",
"endTime": "2024-04-01T12:34:56.123456Z",
"target": "projects/${projectId}/locations/global/features/configmanagement"
},
"name": "projects/${projectId}/locations/global/features/configmanagement/operations/${operationID}"
}

---

GET https://gkehub.googleapis.com/v1beta1/projects/${projectId}/locations/global/features/configmanagement/operations/${operationID}?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

200 OK
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"done": true,
"metadata": {
"@type": "type.googleapis.com/google.cloud.gkehub.v1beta.OperationMetadata",
"createTime": "2024-04-01T12:34:56.123456Z",
"endTime": "2024-04-01T12:34:56.123456Z",
"target": "projects/${projectId}/locations/global/features/configmanagement"
},
"name": "projects/${projectId}/locations/global/features/configmanagement/operations/${operationID}",
"response": {
"@type": "type.googleapis.com/google.cloud.gkehub.v1beta.Feature",
"createTime": "2024-04-01T12:34:56.123456Z",
"labels": {
"managed-by-cnrm": "true"
},
"name": "projects/${projectId}/locations/global/features/configmanagement",
"resourceState": {
"state": "ACTIVE"
},
"updateTime": "2024-04-01T12:34:56.123456Z"
}
}

---

GET https://gkehub.googleapis.com/v1beta/projects/${projectId}/locations/global/features/configmanagement?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

200 OK
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"labels": {
"managed-by-cnrm": "true"
},
"name": "projects/${projectId}/locations/global/features/configmanagement"
}

---

GET https://gkehub.googleapis.com/v1beta/projects/${projectId}/locations/global/features/configmanagement?alt=json
Content-Type: application/json
User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1

200 OK
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"labels": {
"managed-by-cnrm": "true"
},
"name": "projects/${projectId}/locations/global/features/configmanagement"
}
Loading

0 comments on commit b113a9a

Please sign in to comment.