From b090b19ef07b074e0caefd97a90a7fbf551253f7 Mon Sep 17 00:00:00 2001 From: Fuming Zhang Date: Tue, 26 Jul 2022 15:46:28 +0800 Subject: [PATCH] add recording for test_list_trustedaccess_roles --- .../test_list_trustedaccess_roles.yaml | 117 ++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 src/aks-preview/azext_aks_preview/tests/latest/recordings/test_list_trustedaccess_roles.yaml diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_list_trustedaccess_roles.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_list_trustedaccess_roles.yaml new file mode 100644 index 00000000000..709470fd682 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_list_trustedaccess_roles.yaml @@ -0,0 +1,117 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks trustedaccess role list + Connection: + - keep-alive + ParameterSetName: + - -l + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-containerservice/20.0.0b Python/3.8.10 + (Linux-5.15.0-1014-azure-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus2euap/trustedAccessRoles?api-version=2022-06-02-preview + response: + body: + string: "{\n \"value\": [\n {\n \"sourceResourceType\": \"Microsoft.Compute/virtualMachineScaleSets\",\n + \ \"name\": \"test-node-reader\",\n \"rules\": [\n {\n \"verbs\": + [\n \"list\"\n ],\n \"apiGroups\": [\n \"\"\n ],\n + \ \"resources\": [\n \"nodes\"\n ]\n }\n ]\n },\n + \ {\n \"sourceResourceType\": \"Microsoft.Compute/virtualMachineScaleSets\",\n + \ \"name\": \"test-pod-reader\",\n \"rules\": [\n {\n \"verbs\": + [\n \"list\"\n ],\n \"apiGroups\": [\n \"\"\n ],\n + \ \"resources\": [\n \"pods\"\n ]\n }\n ]\n },\n {\n + \ \"sourceResourceType\": \"Microsoft.Compute/virtualMachineScaleSets\",\n + \ \"name\": \"test-admin\",\n \"rules\": [\n {\n \"verbs\": + [\n \"*\"\n ],\n \"apiGroups\": [\n \"\"\n ],\n + \ \"resources\": [\n \"*\"\n ]\n }\n ]\n },\n {\n + \ \"sourceResourceType\": \"Microsoft.DataProtection/BackupVaults\",\n \"name\": + \"pvbackup\",\n \"rules\": [\n {\n \"verbs\": [\n \"list\"\n + \ ],\n \"apiGroups\": [\n \"\"\n ],\n \"resources\": + [\n \"events\"\n ]\n },\n {\n \"verbs\": [\n \"get\",\n + \ \"list\"\n ],\n \"apiGroups\": [\n \"\"\n ],\n + \ \"resources\": [\n \"namespaces\",\n \"deployments\",\n + \ \"statefulsets\",\n \"replicasets\",\n \"daemonsets\"\n + \ ]\n },\n {\n \"verbs\": [\n \"create\",\n \"get\",\n + \ \"list\",\n \"patch\",\n \"update\",\n \"delete\"\n + \ ],\n \"apiGroups\": [\n \"\"\n ],\n \"resources\": + [\n \"persistentvolumes\",\n \"persistentvolumeclaims\"\n ]\n + \ },\n {\n \"verbs\": [\n \"get\",\n \"list\"\n ],\n + \ \"apiGroups\": [\n \"storage.k8s.io\"\n ],\n \"resources\": + [\n \"csidrivers\"\n ]\n },\n {\n \"verbs\": [\n \"create\",\n + \ \"get\",\n \"list\",\n \"patch\",\n \"update\"\n + \ ],\n \"apiGroups\": [\n \"storage.k8s.io\"\n ],\n \"resources\": + [\n \"storageclasses\",\n \"volumeattachments\"\n ]\n },\n + \ {\n \"verbs\": [\n \"create\",\n \"get\",\n \"list\",\n + \ \"patch\",\n \"update\",\n \"delete\"\n ],\n \"apiGroups\": + [\n \"snapshot.storage.k8s.io\"\n ],\n \"resources\": [\n + \ \"volumesnapshots\",\n \"volumesnapshotcontents\",\n \"volumesnapshotclasses\"\n + \ ]\n }\n ]\n },\n {\n \"sourceResourceType\": \"Microsoft.MachineLearningServices/workspaces\",\n + \ \"name\": \"training\",\n \"rules\": [\n {\n \"verbs\": [\n + \ \"create\",\n \"get\",\n \"list\",\n \"patch\",\n + \ \"update\",\n \"delete\"\n ],\n \"apiGroups\": [\n + \ \"\"\n ],\n \"resources\": [\n \"services\",\n \"services/proxy\"\n + \ ]\n }\n ]\n },\n {\n \"sourceResourceType\": \"Microsoft.MachineLearningServices/workspaces\",\n + \ \"name\": \"inferenceV2\",\n \"rules\": [\n {\n \"verbs\": + [\n \"create\",\n \"get\",\n \"list\",\n \"patch\",\n + \ \"update\",\n \"delete\"\n ],\n \"apiGroups\": [\n + \ \"\"\n ],\n \"resources\": [\n \"services\",\n \"services/proxy\"\n + \ ]\n }\n ]\n },\n {\n \"sourceResourceType\": \"Microsoft.MachineLearningServices/workspaces\",\n + \ \"name\": \"inferenceV1\",\n \"rules\": [\n {\n \"verbs\": + [\n \"list\"\n ],\n \"apiGroups\": [\n \"\"\n ],\n + \ \"resources\": [\n \"events\",\n \"nodes\"\n ]\n },\n + \ {\n \"verbs\": [\n \"create\",\n \"get\",\n \"list\",\n + \ \"patch\",\n \"update\",\n \"delete\"\n ],\n \"apiGroups\": + [\n \"\"\n ],\n \"resources\": [\n \"persistentvolumes\",\n + \ \"persistentvolumeclaims\"\n ]\n },\n {\n \"verbs\": + [\n \"create\",\n \"get\",\n \"list\",\n \"patch\",\n + \ \"update\",\n \"delete\"\n ],\n \"apiGroups\": [\n + \ \"\"\n ],\n \"resources\": [\n \"namespaces\",\n \"pods\",\n + \ \"configmaps\",\n \"secrets\",\n \"services\",\n \"services/proxy\",\n + \ \"serviceaccounts\"\n ]\n },\n {\n \"verbs\": [\n + \ \"create\",\n \"get\",\n \"list\",\n \"patch\",\n + \ \"update\",\n \"delete\"\n ],\n \"apiGroups\": [\n + \ \"\"\n ],\n \"resources\": [\n \"deployments\",\n \"replicasets\",\n + \ \"daemonsets\"\n ]\n },\n {\n \"verbs\": [\n \"create\",\n + \ \"get\",\n \"list\"\n ],\n \"apiGroups\": [\n \"\"\n + \ ],\n \"resources\": [\n \"jobs\"\n ]\n },\n {\n + \ \"verbs\": [\n \"create\",\n \"get\",\n \"list\",\n + \ \"patch\",\n \"update\",\n \"delete\"\n ],\n \"apiGroups\": + [\n \"storage.k8s.io\"\n ],\n \"resources\": [\n \"csidrivers\"\n + \ ]\n },\n {\n \"verbs\": [\n \"create\",\n \"get\",\n + \ \"list\",\n \"update\"\n ],\n \"apiGroups\": [\n \"rbac.authorization.k8s.io\"\n + \ ],\n \"resources\": [\n \"clusterroles\",\n \"clusterrolebindings\"\n + \ ]\n }\n ]\n }\n ]\n }" + headers: + cache-control: + - no-cache + content-length: + - '4926' + content-type: + - application/json + date: + - Tue, 26 Jul 2022 07:07:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1