diff --git a/sdk/keyvault/keyvault-admin/recordings/node/aborting_keyvaultbackupclients_requests/recording_can_abort_beginrestore.js b/sdk/keyvault/keyvault-admin/recordings/node/aborting_keyvaultbackupclients_requests/recording_can_abort_beginrestore.js index f7a0ffb4e056..75ad472375d4 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/aborting_keyvaultbackupclients_requests/recording_can_abort_beginrestore.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/aborting_keyvaultbackupclients_requests/recording_can_abort_beginrestore.js @@ -1,5 +1,5 @@ let nock = require('nock'); -module.exports.hash = "894d1c782b1fb9decc1e6b536f33672d"; +module.exports.hash = "6c89dcf14625d9e2635bc3f9eae4e411"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/keyvault/keyvault-admin/recordings/node/aborting_keyvaultbackupclients_requests/recording_can_abort_beginselectivekeyrestore.js b/sdk/keyvault/keyvault-admin/recordings/node/aborting_keyvaultbackupclients_requests/recording_can_abort_beginselectivekeyrestore.js index 62e40f380429..e9c62d030cfd 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/aborting_keyvaultbackupclients_requests/recording_can_abort_beginselectivekeyrestore.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/aborting_keyvaultbackupclients_requests/recording_can_abort_beginselectivekeyrestore.js @@ -1,5 +1,5 @@ let nock = require('nock'); -module.exports.hash = "4dcedc7acb9abdc551077e92ce835f99"; +module.exports.hash = "0d0b5ba531fe19a578b0f3392a3963cf"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/keyvault/keyvault-admin/recordings/node/challenge_based_authentication_tests/recording_authentication_should_be_idempotent.js b/sdk/keyvault/keyvault-admin/recordings/node/challenge_based_authentication_tests/recording_authentication_should_be_idempotent.js index 8d73d99a83b2..5035443fee7e 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/challenge_based_authentication_tests/recording_authentication_should_be_idempotent.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/challenge_based_authentication_tests/recording_authentication_should_be_idempotent.js @@ -19,17 +19,17 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '2', 'x-ms-request-id', - 'ab569a58-a866-11eb-8c6b-000d3a21d54b', + 'afff1bbc-c7af-11eb-9e24-000d3ae39d43', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-ms-server-latency', - '0' + '1' ]); nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) @@ -47,13 +47,13 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '2', 'x-ms-request-id', - 'ab5c4cbe-a866-11eb-abf2-000d3aab33d0', + 'b000bf80-c7af-11eb-874c-000d3a7bc18d', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-ms-server-latency', @@ -79,19 +79,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '88a5e6d8-a14d-4309-ae22-f3c9054f6c01', + '4da500c8-4d5a-41f1-9a0e-fc6418ee4a00', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11722.26 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl4; expires=Fri, 28-May-2021 21:14:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AqNYXjTpINZGlm5edcl-OSo; expires=Wed, 07-Jul-2021 16:44:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrW-4TPubwVHXIMY1xd71L0fn6tgTU6ZcqSavzwe4wdM7Qa3PjlAkSmAgjla_cMN76NcTlao7iiFHq9UbachpAmNV57S0RuylKfS-70IMVjuNsaV_9QH--aDHclEvbIfR0SAlqIu0OOq8Voy_gc1s75IHvnukOKq1TAH6-R1czjNwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrSf12zhbQ5xYRtg4e7_V-lgD_hP0Vgmk_NSlitQDML4Pfu90gYi665TBuXErheKr3e_EAy5iFvegBJUOmzzKKKsv_djzOEq0SNJQYxOvbVNSmUtgfGUyweF2BHna4T8xkjDagOUcFeCoxKUqCM0CTAvy7Q8bZ66mLFrP-n4vQz5IgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:07 GMT', + 'Mon, 07 Jun 2021 16:44:54 GMT', 'Content-Length', '980' ]); @@ -115,19 +115,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8486b8ef-cb74-4560-accd-0dc9f716fc00', + '3071aba7-4b38-48e9-8658-d7dce09c9800', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11722.26 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=AneQ_mDlDSpInOKnuDgz--k; expires=Fri, 28-May-2021 21:14:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlQ; expires=Wed, 07-Jul-2021 16:44:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNTcOw0Ka-rv6SRfJb6gRFifmEdXo_r4rarHqI-decUFbxNLLG1WFZCQIicFttJnYVrY--V63BAplcTlRHw5DPW0X3938v53RUMgQnr1B83nqyOAuZq18mXe1H6YcOBEeBQ0S8e2s_2s78fbmxgOOxsoBYKMnqfBIzP8ZfdjkSNEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrNb5oqLsd4M_5M-yajxhiQt7xX1PjnE3qCktNDtAhbIn_UTYF_SuATC5werMQIkJjRI8pcNZsS7nRe4IGFObVX3MHW4HSzL5yv93lyAB4Jylb44QEUY90wP4IJNmxI-kMBckopMsDrGsKrgG8VwrOhDCaANJbb9gu_xIonQDBdggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:07 GMT', + 'Mon, 07 Jun 2021 16:44:54 GMT', 'Content-Length', '980' ]); @@ -150,19 +150,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'b52c767d-2caa-4e71-bf97-facfcedf4901', + '114c9ed3-41a8-4c26-95c0-ca898cdecf00', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11787.14 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=AneQ_mDlDSpInOKnuDgz--k; expires=Fri, 28-May-2021 21:14:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AqNYXjTpINZGlm5edcl-OSo; expires=Wed, 07-Jul-2021 16:44:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtC9rnzldfsQoTfGk54p9q-I4LQzia4BF-FFWinOREUxwF-Rs1Nc-oq720SxMGIRmE0oJdZPVs5Tnw6ZPAj7pS1zlL9Zf-KMnmKKQ3fGQSQ_-iiQt7PgQceTTRd9ULMpcezR9SY4M7mXKjYu0PTtWiTmxngfXvzM6ecdKydHyVCUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLbahE-dnbJLiMyyXC5WA4dS55AMXTEmXrYkC0EzNm3GSmZaHPKeRiBZdYzaroq-McEntYT4NwUNUABkq79bTzwjzAi3S0YDZ6Em4fcWcI5n8W-tzY1tbz2enLnXZWLVX9WZ6WrrXu-7fo0pminRZErjLXLkjSHubRWpT8StYzzIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:07 GMT', + 'Mon, 07 Jun 2021 16:44:54 GMT', 'Content-Length', '1651' ]); @@ -172,8 +172,6 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ 'Cache-Control', 'max-age=86400, private', - 'Content-Length', - '1651', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', @@ -187,26 +185,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '7722a962-f44e-4092-b196-316434623601', + '51b8bdca-efe5-4a14-8997-7dc65262b600', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11787.14 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl4; expires=Fri, 28-May-2021 21:14:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlQ; expires=Wed, 07-Jul-2021 16:44:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBP7lgzp8BG7DAalzw-3UZxjq8HMYf61Fq5z8-B0prM9UkCCA7aVyBKcPQXnPypkudFvdQRbvqhUqSC27PvQxew6Ze5hHkiok3UEfYziQKTyNFheHExdR55tzSyijJONZmwbkQtAQC1zYpI_NNIBQtK1sBWb3Hgefpc1Yx0eUMnYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrK6RPqsVLZpcRlXv12MYDPTTYqzD_Q-Da6W6NVIE3oQ67aLZpUWqJs7Lspsph70QCGN15-hNvz_hrFYBiWr0B1ifOyHYaXmL0tqZBe2TvkSEj85np9JB3rah2Yxurhyr3UxHBr_KPFzqfF9O2qhZxSyhPHm-UZFhmUVJ7s2rfaDkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:07 GMT' + 'Mon, 07 Jun 2021 16:44:54 GMT', + 'Content-Length', + '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=5f1ab644-6611-4b79-8727-13ffa187a449&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -223,28 +220,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'b52c767d-2caa-4e71-bf97-facfd2df4901', + 'c9e3e4df-63b6-4004-baa2-28334d8dcf00', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=AneQ_mDlDSpInOKnuDgz--mnSoKIAQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AqNYXjTpINZGlm5edcl-OSq1p1ZhAQAAAAdEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:07 GMT', + 'Mon, 07 Jun 2021 16:44:54 GMT', 'Content-Length', '1322' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=2c885e2c-7c0e-4003-b1d0-e34f0812d3f1&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -261,19 +255,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '91ace131-1ae8-40a9-be8a-7aa7a96a4701', + 'fd0fe431-f6e4-4f3b-960d-5756b578e800', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIAQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhAQAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:07 GMT', + 'Mon, 07 Jun 2021 16:44:55 GMT', 'Content-Length', '1322' ]); @@ -281,15 +275,15 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleAssignments') .query(true) - .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/77aa69c0-b2ee-4fef-9469-b399e370b84e","name":"77aa69c0-b2ee-4fef-9469-b399e370b84e","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/f8a779d3-853c-4ed3-9a13-219acd89b438","name":"f8a779d3-853c-4ed3-9a13-219acd89b438","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/07f6dd2b-0410-0caa-9af7-6b47d238fb27","name":"07f6dd2b-0410-0caa-9af7-6b47d238fb27","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ + .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/f5db1e0f-8b1e-45d8-b93a-fcd26df24e0a","name":"f5db1e0f-8b1e-45d8-b93a-fcd26df24e0a","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/1ef64554-e99a-4f0e-b12d-8758ca5b3c65","name":"1ef64554-e99a-4f0e-b12d-8758ca5b3c65","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/0f6f2f54-6c69-4c84-335d-e67b34e5e5dc","name":"0f6f2f54-6c69-4c84-335d-e67b34e5e5dc","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'aba77798-a866-11eb-8c6b-000d3a21d54b', + 'b03cc6ba-c7af-11eb-9e24-000d3ae39d43', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', '1208', 'strict-transport-security', @@ -301,25 +295,25 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', - '0' + '1' ]); nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleAssignments') .query(true) - .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/77aa69c0-b2ee-4fef-9469-b399e370b84e","name":"77aa69c0-b2ee-4fef-9469-b399e370b84e","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/f8a779d3-853c-4ed3-9a13-219acd89b438","name":"f8a779d3-853c-4ed3-9a13-219acd89b438","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/07f6dd2b-0410-0caa-9af7-6b47d238fb27","name":"07f6dd2b-0410-0caa-9af7-6b47d238fb27","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ + .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/f5db1e0f-8b1e-45d8-b93a-fcd26df24e0a","name":"f5db1e0f-8b1e-45d8-b93a-fcd26df24e0a","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/1ef64554-e99a-4f0e-b12d-8758ca5b3c65","name":"1ef64554-e99a-4f0e-b12d-8758ca5b3c65","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/0f6f2f54-6c69-4c84-335d-e67b34e5e5dc","name":"0f6f2f54-6c69-4c84-335d-e67b34e5e5dc","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'ababfdfe-a866-11eb-abf2-000d3aab33d0', + 'b041ae6e-c7af-11eb-874c-000d3a7bc18d', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', '1208', 'strict-transport-security', @@ -331,9 +325,9 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', - '1' + '0' ]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/challenge_based_authentication_tests/recording_once_authenticated_new_requests_should_not_authenticate_again.js b/sdk/keyvault/keyvault-admin/recordings/node/challenge_based_authentication_tests/recording_once_authenticated_new_requests_should_not_authenticate_again.js index b9e737ce0f92..892ff4d83c3e 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/challenge_based_authentication_tests/recording_once_authenticated_new_requests_should_not_authenticate_again.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/challenge_based_authentication_tests/recording_once_authenticated_new_requests_should_not_authenticate_again.js @@ -19,13 +19,13 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '2', 'x-ms-request-id', - 'ac0d7ea8-a866-11eb-9d98-000d3a21d54b', + 'b0871652-c7af-11eb-8b30-000d3ae39d43', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-ms-server-latency', @@ -38,8 +38,6 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ 'Cache-Control', 'max-age=86400, private', - 'Content-Length', - '980', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', @@ -53,19 +51,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '547cc473-0247-4b66-a568-04046a225c01', + 'd6c75b47-36c1-4db5-97b6-1067d0fc6700', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11722.26 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIAQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhAQAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:56 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrfbPWg_EfGzBhCKKxytgGZUaaRbhs08MTRweNb4jb0ux23KOYAd6nK5f6QzBu38kGfKGdzlnURwZL3NovIgjE2zskvkHNSgG0cob7oMwCN9Y-7tm39iJqeQ19xU-wJNsZZeGL3VXQXnOxUL6YMIDs62kkVAq4CysGIkV3b8oFubUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJYa02LdS02OUwxkTGEmINR_kWsjEHRppuRZZ_QED84Tx680sFABVWKr14skV9F7UH1wZpIx6jaiF5poBnTgOoXarJfPtyg7du5FAWwXShwWKIeeM2JVk0yFuRdqktPeBGPmu-720kvegI4BQN7rGKLw5sT_IW9FEv7mhYwiumMkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:08 GMT' + 'Mon, 07 Jun 2021 16:44:55 GMT', + 'Content-Length', + '980' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) @@ -86,28 +86,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'f18d5d94-1dc9-4be9-be83-0d470abe2c01', + 'fd0fe431-f6e4-4f3b-960d-5756da78e800', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIAQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhAQAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:56 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTwQ33GeK4BfyAnHsqlvDLUCI7EE1df4wrrs8VqxNRafrnf48xOPL6ZwmHs0ZWanAMxeTFF3Q0MdK6EZOYuK-WeAZlTg6JA5lrdOKBLMBhzCNFB5-pPy7zCX9mj3cu3wlM5LFvpWGQtIU4irtspFOzuYJFiKFgx6XBDZ4YFGwu9EgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrww_1FCnMpwQxUhqGth9LfedoKq3DNjqYe13BVjVrwJ-5DjGRqP2gBJSeefmimDvOQ8Nw5cgKBKtKf3qDYyt3bEwsSN3e0URd--F_F4vr6bxQUAkdXYad_sNDO7YRnBOvGynvhHr-G8vYX1xu_vxMhZh3IOFxBp63-y27On6AtaIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:08 GMT', + 'Mon, 07 Jun 2021 16:44:55 GMT', 'Content-Length', '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=016870fc-b58c-45d7-b6ba-b72bd8764ac9&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -124,19 +121,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a5c52bde-94ea-4558-8fb4-e0b747e94101', + '114c9ed3-41a8-4c26-95c0-ca89b4decf00', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11787.14 - SCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIAgAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhAgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:56 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:08 GMT', + 'Mon, 07 Jun 2021 16:44:55 GMT', 'Content-Length', '1322' ]); @@ -144,15 +141,15 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleAssignments') .query(true) - .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/77aa69c0-b2ee-4fef-9469-b399e370b84e","name":"77aa69c0-b2ee-4fef-9469-b399e370b84e","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/f8a779d3-853c-4ed3-9a13-219acd89b438","name":"f8a779d3-853c-4ed3-9a13-219acd89b438","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/07f6dd2b-0410-0caa-9af7-6b47d238fb27","name":"07f6dd2b-0410-0caa-9af7-6b47d238fb27","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ + .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/f5db1e0f-8b1e-45d8-b93a-fcd26df24e0a","name":"f5db1e0f-8b1e-45d8-b93a-fcd26df24e0a","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/1ef64554-e99a-4f0e-b12d-8758ca5b3c65","name":"1ef64554-e99a-4f0e-b12d-8758ca5b3c65","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/0f6f2f54-6c69-4c84-335d-e67b34e5e5dc","name":"0f6f2f54-6c69-4c84-335d-e67b34e5e5dc","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'ac4806a4-a866-11eb-9d98-000d3a21d54b', + 'b0bf876c-c7af-11eb-8b30-000d3ae39d43', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', '1208', 'strict-transport-security', @@ -164,25 +161,25 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', - '0' + '1' ]); nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleAssignments') .query(true) - .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/77aa69c0-b2ee-4fef-9469-b399e370b84e","name":"77aa69c0-b2ee-4fef-9469-b399e370b84e","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/f8a779d3-853c-4ed3-9a13-219acd89b438","name":"f8a779d3-853c-4ed3-9a13-219acd89b438","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/07f6dd2b-0410-0caa-9af7-6b47d238fb27","name":"07f6dd2b-0410-0caa-9af7-6b47d238fb27","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ + .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/f5db1e0f-8b1e-45d8-b93a-fcd26df24e0a","name":"f5db1e0f-8b1e-45d8-b93a-fcd26df24e0a","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/1ef64554-e99a-4f0e-b12d-8758ca5b3c65","name":"1ef64554-e99a-4f0e-b12d-8758ca5b3c65","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/0f6f2f54-6c69-4c84-335d-e67b34e5e5dc","name":"0f6f2f54-6c69-4c84-335d-e67b34e5e5dc","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'ac5609de-a866-11eb-9d98-000d3a21d54b', + 'b0cb3206-c7af-11eb-8b30-000d3ae39d43', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', '1208', 'strict-transport-security', @@ -194,9 +191,9 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', '0' ]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_listroledefinitions.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_listroledefinitions.js deleted file mode 100644 index 56c65fa001d7..000000000000 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_listroledefinitions.js +++ /dev/null @@ -1,96 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "2b71da0768a562fe2e037f0b22ed74b9"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) - .get('///providers/Microsoft.Authorization/roleDefinitions') - .query(true) - .reply(401, "OK", [ - 'content-type', - 'application/json; charset=utf-8', - 'x-content-type-options', - 'nosniff', - 'www-authenticate', - 'Bearer authorization="https://login.microsoftonline.com/azure_tenant_id", resource="https://managedhsm.azure.net"', - 'x-frame-options', - 'SAMEORIGIN', - 'content-length', - '2', - 'x-ms-request-id', - 'f33c3e26-5ace-11eb-88fb-0242ac120006', - 'strict-transport-security', - 'max-age=31536000; includeSubDomains', - 'content-security-policy', - "default-src 'self'", - 'x-ms-build-version', - '1.0.20210112-1-4fbf61ac-develop', - 'cache-control', - 'no-cache', - 'x-ms-server-latency', - '1' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '31c7d331-206d-4f11-865f-dca2bd0bfe00', - 'x-ms-ests-server', - '2.1.11397.13 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AruM6-s0o4dGuoROwfwoa4NdWxHLAwAAAFGZmdcOAAAA; expires=Fri, 19-Feb-2021 03:24:05 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 20 Jan 2021 03:24:05 GMT', - 'Content-Length', - '1322' -]); - -nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) - .get('///providers/Microsoft.Authorization/roleDefinitions') - .query(true) - .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/export/action","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/export/action","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ - 'x-frame-options', - 'SAMEORIGIN', - 'x-ms-request-id', - 'f36ca304-5ace-11eb-88fb-0242ac120006', - 'content-type', - 'application/json; charset=utf-8', - 'x-ms-keyvault-region', - 'westeurope', - 'content-length', - '6772', - 'strict-transport-security', - 'max-age=31536000; includeSubDomains', - 'content-security-policy', - "default-src 'self'", - 'cache-control', - 'no-cache', - 'x-content-type-options', - 'nosniff', - 'x-ms-build-version', - '1.0.20210112-1-4fbf61ac-develop', - 'x-ms-keyvault-network-info', - 'addr=50.35.231.105', - 'x-ms-server-latency', - '1' -]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_createroleassignment_getroleassignment_and_deleteroleassignment.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_can_create_read_and_delete_role_assignments.js similarity index 56% rename from sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_createroleassignment_getroleassignment_and_deleteroleassignment.js rename to sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_can_create_read_and_delete_role_assignments.js index b195767ef05c..e5a99681c39d 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_createroleassignment_getroleassignment_and_deleteroleassignment.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_can_create_read_and_delete_role_assignments.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "50bfab7ee5e9ce2ecbd5fd4c521c7427"; +module.exports.hash = "7ffa476a801144342d7d1108d7c4e8ee"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -19,13 +19,13 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '2', 'x-ms-request-id', - 'add7441c-a866-11eb-9341-000d3a21d54b', + 'b5cc3a84-c7af-11eb-96b8-000d3ae55bfc', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-ms-server-latency', @@ -51,19 +51,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8a1de0f0-98fb-4233-8644-1afb8b83ad01', + '71694d61-68f7-46b8-85b5-9072f70b0200', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11722.26 - EUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBAAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:12 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:04 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrketlwMF6tdAihWRMLHjntqP6VTluCEKUFBJb-f4_hsYJRWybgbRqIeeiPb0r7vdWmUoPOEDAQo-WQgaHmkdqHO-gl2y0yuKpWeyDcHqoPY0ATK3aNVLvsB2O_VBBY9DrrHFK29XrcrtcUFBGrRPv1a407a_VaAD8j2bozQ8A9QgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXvOhmGCseglISKawHbSDZZFFiAqlmXE9CTgAZ_hkTM-1xL0fkWpoo9e36_IldPczikeblp4Zg2VJx1B7I2Gn5Us7QXteRSduxht-UzOclYnPmkJoyVXovDWJT3VPQ-gMfMe_X-PNRD8wNSgm5FJ0bQDOqH0PqUA01xvuMgmnV4AgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:11 GMT', + 'Mon, 07 Jun 2021 16:45:04 GMT', 'Content-Length', '980' ]); @@ -86,28 +86,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '67aad10e-ff61-4cfe-801e-1045965db000', + '42c780cd-fb4e-4a28-a4f7-5936425fdf00', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBAAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:12 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:04 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrV7f-uYdIPzwgm71uwQATamdu4ipbYTQNUER4PiVMmhg1yGlNIIC8O3DFo5TAKx7heTdPtnACvbmvGOiw15QhObPLBjH0Sbs6rpVZ6VuTUkvKaZIOgkkR3ZhmfSvmCdGw7RMFY-7Eyv27l_s9SDWE0oiYLoKEejGs9ySBTlUCS1UgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8YrHptX8UUQUT9Z2_49C04XtgT91AqZSHE597V0j5RNCcVF1FWad8WidLeQiT4YgCN8uRN41w8TrVv4HsnzH21rg8eSCAulkRKVq54Al6C2Sn49dB_r9Wud48cQlg_q0wKGlAP9x9xmEip-JhgvMUIuAZyfbbNtGhUd5Jq_ZflQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:11 GMT', + 'Mon, 07 Jun 2021 16:45:04 GMT', 'Content-Length', '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=64929480-b860-4b6c-ac06-861f3f9ac439&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -124,19 +121,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '4804f345-4d9a-4ad9-8a2d-ef35d544e901', + 'd54c3d5f-8e43-4ae1-ac47-bd9dd4f1d000', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:12 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:05 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:11 GMT', + 'Mon, 07 Jun 2021 16:45:04 GMT', 'Content-Length', '1322' ]); @@ -144,17 +141,17 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleDefinitions') .query(true) - .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ + .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action","Microsoft.KeyVault/managedHsm/rng/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'ae135236-a866-11eb-9341-000d3a21d54b', + 'b5fe6306-c7af-11eb-96b8-000d3ae55bfc', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', - '6590', + '6648', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', @@ -164,9 +161,9 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', '0' ]); @@ -182,17 +179,17 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '398', 'x-ms-request-id', - 'ae227f40-a866-11eb-9341-000d3a21d54b', + 'b60a8d70-c7af-11eb-96b8-000d3ae55bfc', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', - '44', + '43', 'cache-control', 'no-cache', 'x-frame-options', @@ -206,11 +203,11 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'ae376b1c-a866-11eb-9341-000d3a21d54b', + 'b61cc5c6-c7af-11eb-96b8-000d3ae55bfc', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', '398', 'strict-transport-security', @@ -222,9 +219,9 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', '0' ]); @@ -240,17 +237,17 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '398', 'x-ms-request-id', - 'ae455984-a866-11eb-9341-000d3a21d54b', + 'b62889f6-c7af-11eb-96b8-000d3ae55bfc', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', - '50', + '39', 'cache-control', 'no-cache', 'x-frame-options', @@ -260,23 +257,23 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleAssignments/b36b00af-89c6-435f-a43d-9a3087015c27') .query(true) - .reply(404, {"error":{"code":"RoleAssignmentNotFound","message":"Requested role assignment not found (Activity ID: ae5bff7c-a866-11eb-9341-000d3a21d54b)"}}, [ + .reply(404, {"error":{"code":"RoleAssignmentNotFound","message":"Requested role assignment not found (Activity ID: b63a3e3a-c7af-11eb-96b8-000d3ae55bfc)"}}, [ 'content-type', 'application/json; charset=utf-8', 'x-ms-server-latency', - '1', + '0', 'x-content-type-options', 'nosniff', 'content-length', '143', 'x-ms-request-id', - 'ae5bff7c-a866-11eb-9341-000d3a21d54b', + 'b63a3e3a-c7af-11eb-96b8-000d3ae55bfc', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-frame-options', diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_listroleassignments.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_can_list_role_assignments.js similarity index 75% rename from sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_listroleassignments.js rename to sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_can_list_role_assignments.js index 9a138da6d5f5..53dc7a24a09a 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_listroleassignments.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_can_list_role_assignments.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "56d7e691eb86750cc7e1ee277eec4bdc"; +module.exports.hash = "766074f352410f764435fdf7610666da"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -19,13 +19,13 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '2', 'x-ms-request-id', - 'ad47f046-a866-11eb-96ec-000d3aab33d0', + 'b548908a-c7af-11eb-9e24-000d3ae39d43', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-ms-server-latency', @@ -51,19 +51,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'ae9f2f0f-6d60-4daf-90c0-4b9162150302', + '0d364a13-373e-449c-9edd-7eb3c8727d00', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11722.26 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIAwAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCQAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:04 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwaVvBf4AWHMwbFFuGQVaggF5-o_gA1pInBtGhRY5gf0afLXc1eWqvLGNwzODueyAaov7Z9Uslt68bRA83jNXIcYXtW_PCKJFZo83rusf4_h_c1QFoU66onnlj6Zcx2fY3VwGvra-rdR-CJfEmfxadMjCSyTJV7BIL62-mdmKLVogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFm_UkFH27omJ0YSfEX8OfJUMXsHX9dbEhckzVN1ViwztVY-NfkG2k2i38faz09rPVzcJvoHIRX2PWn8fykspX-1sValUXXlvMwVQn3hHfjSQiNnuXS3vTku_Xq1eeEK5RM2c1KLE4DFCno6JK0-fbfE_1PMm586rPbT4qtHgcTwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:10 GMT', + 'Mon, 07 Jun 2021 16:45:03 GMT', 'Content-Length', '980' ]); @@ -86,33 +86,32 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'f18d5d94-1dc9-4be9-be83-0d4754be2c01', + 'b6b9c0f3-668f-4845-adbd-771dba60d600', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIAwAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCQAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:04 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2fySb_g1OGm4rnvRtIEP6IiMBGZUMJlGchMssBLlmFwBJBg-OMUs2A0niPkYHzicADHGJVzdle7v_b-hcvMx8D43xfR7TJlPMAL6ooAl2YbyA1zHoOgfP8XiIYDSfdpNTxZDvriOYIeudJaz-fpIg9cNzjpisym_m77Mf0b9oEcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevresnvCEcRhz68O0vQWDbBmdtov1wpJCaO1etN_ZVo1InS1KJzwRmryJpGHnEdB_gu8zokUBdtlquDJy_mOliDfugR2RiRo4TH-rTF6PkGT0n8p7rtY-rN1gVCtGGY-NqjiIY9zVOJr5MOgPzk7MJeD3KKoR5t77bVh-tO5jUysi0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:10 GMT', + 'Mon, 07 Jun 2021 16:45:03 GMT', 'Content-Length', '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=8df28847-5af8-4527-81d5-b1929ea3210c&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', + 'Content-Length', + '1322', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -124,35 +123,33 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'd64031fa-5e8c-484b-9409-7d492aeb4701', + '0334137f-717d-4b6b-8256-2ca482029a00', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11787.14 - WUS2 ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBAAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:04 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:10 GMT', - 'Content-Length', - '1322' + 'Mon, 07 Jun 2021 16:45:03 GMT' ]); nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleAssignments') .query(true) - .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/77aa69c0-b2ee-4fef-9469-b399e370b84e","name":"77aa69c0-b2ee-4fef-9469-b399e370b84e","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/f8a779d3-853c-4ed3-9a13-219acd89b438","name":"f8a779d3-853c-4ed3-9a13-219acd89b438","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/07f6dd2b-0410-0caa-9af7-6b47d238fb27","name":"07f6dd2b-0410-0caa-9af7-6b47d238fb27","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ + .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/f5db1e0f-8b1e-45d8-b93a-fcd26df24e0a","name":"f5db1e0f-8b1e-45d8-b93a-fcd26df24e0a","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/1ef64554-e99a-4f0e-b12d-8758ca5b3c65","name":"1ef64554-e99a-4f0e-b12d-8758ca5b3c65","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/0f6f2f54-6c69-4c84-335d-e67b34e5e5dc","name":"0f6f2f54-6c69-4c84-335d-e67b34e5e5dc","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'ad829372-a866-11eb-96ec-000d3aab33d0', + 'b57c4e66-c7af-11eb-9e24-000d3ae39d43', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', '1208', 'strict-transport-security', @@ -164,9 +161,9 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', '1' ]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_succeeds_when_deleting_a_role_assignment_that_doesnt_exist.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_succeeds_when_deleting_a_role_assignment_that_doesnt_exist.js new file mode 100644 index 000000000000..0f07103453a3 --- /dev/null +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_succeeds_when_deleting_a_role_assignment_that_doesnt_exist.js @@ -0,0 +1,161 @@ +let nock = require('nock'); + +module.exports.hash = "a00a58cdb345d343d0d18b3ea1b6c00c"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) + .delete('///providers/Microsoft.Authorization/roleAssignments/b36b00af-89c6-435f-a43d-9a3087015c27') + .query(true) + .reply(401, "", [ + 'content-type', + 'application/json; charset=utf-8', + 'x-ms-server-latency', + '0', + 'x-content-type-options', + 'nosniff', + 'www-authenticate', + 'Bearer authorization="https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012", resource="https://managedhsm.azure.net"', + 'x-frame-options', + 'SAMEORIGIN', + 'content-length', + '0', + 'x-ms-request-id', + 'b67ff452-c7af-11eb-8c2a-000d3a7bc18d', + 'strict-transport-security', + 'max-age=31536000; includeSubDomains', + 'content-security-policy', + "default-src 'self'", + 'cache-control', + 'no-cache' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '0b010380-bb8a-492e-82b8-b30a1cc60a00', + 'x-ms-ests-server', + '2.1.11722.26 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-obU9Y6vbratLw9cO4VbZOmhK3vt7e6kDCKYJ7Kcm5z_y6kQeEb9W_KxFbDw2Ad7-ccv3y0npbSIPQp8NWPGnFJK8MSEYIJrKlQYuiAOTsehdnRhl1wqb_cQbARd9LTbMnVScbpkdOJOKllPO_XDu99U0MP4G8MwGmISiMkRGqogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 07 Jun 2021 16:45:05 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'bcc70fa9-fe77-49ec-9fd1-9278fdf7d900', + 'x-ms-ests-server', + '2.1.11787.14 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIHB7BV-9qCXHSrSfUQuBEdltdh0men4obkZDKiCTCcY4SqL4AOCJh6yCnu6KndUXEd0qGi2OoLE3g67Xe26yFOK1B2Cm_itckagqJN4vAKc_NykZBPFTvb_8MbD6wD3O3etW_eIe1-iGsqzzlIc-4c5DtGF_9I_p7YcgGo_sLZkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 07 Jun 2021 16:45:05 GMT', + 'Content-Length', + '1651' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=fcc52313-ab48-4774-929d-73e494f1e16b&client_secret=azure_client_secret") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '0334137f-717d-4b6b-8256-2ca4b3029a00', + 'x-ms-ests-server', + '2.1.11787.14 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 07 Jun 2021 16:45:05 GMT', + 'Content-Length', + '1322' +]); + +nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) + .delete('///providers/Microsoft.Authorization/roleAssignments/b36b00af-89c6-435f-a43d-9a3087015c27') + .query(true) + .reply(404, {"error":{"code":"RoleAssignmentNotFound","message":"Requested role assignment not found (Activity ID: b6a8adca-c7af-11eb-8c2a-000d3a7bc18d)"}}, [ + 'content-type', + 'application/json; charset=utf-8', + 'x-ms-server-latency', + '0', + 'cache-control', + 'no-cache', + 'x-content-type-options', + 'nosniff', + 'content-length', + '143', + 'x-ms-request-id', + 'b6a8adca-c7af-11eb-8c2a-000d3a7bc18d', + 'strict-transport-security', + 'max-age=31536000; includeSubDomains', + 'content-security-policy', + "default-src 'self'", + 'x-frame-options', + 'SAMEORIGIN' +]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_supports_tracing.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_supports_tracing.js similarity index 65% rename from sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_supports_tracing.js rename to sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_supports_tracing.js index 18bcf07f1886..23e89dbd1075 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient/recording_supports_tracing.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_assignments/recording_supports_tracing.js @@ -1,11 +1,11 @@ let nock = require('nock'); -module.exports.hash = "68546500d7e8a3764006ef02f784103e"; +module.exports.hash = "fe2252c2c32ef94d61c5d8cf625ba26c"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) - .get('///providers/Microsoft.Authorization/roleAssignments') + .get('///providers/Microsoft.Authorization/roleAssignments/b36b00af-89c6-435f-a43d-9a3087015c27') .query(true) .reply(401, "OK", [ 'content-type', @@ -19,17 +19,17 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '2', 'x-ms-request-id', - 'acb98234-a866-11eb-9bfe-000d3a230d40', + '4958fd0a-c7b0-11eb-ac21-000d3ae55bfc', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-ms-server-latency', - '1' + '0' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) @@ -51,19 +51,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8e81da9b-5e38-439b-bf17-3cbed7f15501', + '91c45214-be80-4c26-8492-49ff5877b700', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11722.26 - WUS2 ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIAgAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AmQlXR1csgVBmHSG9W09IxW1p1ZhAQAAAAdFUNgOAAAA; expires=Wed, 07-Jul-2021 16:49:12 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9zov8w_syUtjETPhEmKiEvYGvm0aNQ5neZBKL9MnjwsBfco8VGaY0xg7H1e_hFzJ0HPbGI4ykMjq4qgVZbIOjGlvLa1VKnuBM-krL3jqitEXvs3e9ivAGoWSjDGMX0ZaZF0JenJdcEAlSx5oeMWeDxzSLPu67HvxqyU3kQpB-wYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrVftVn3xHU3E0MPYc6-dgCiSPL63EKSz5D7BM9EFZ26R_T3W1ohg4pEH9YOycWjirad2XaryWX3qLGxUFFHrzgEtPBqhUNVdXYAu2mfO6N4TEd8_It0huNPtNMVGKNZ3w-13aoq3sbrJzycNWiqeZt_q-_ay91-RQEN3NDjjrzY4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:09 GMT', + 'Mon, 07 Jun 2021 16:49:12 GMT', 'Content-Length', '980' ]); @@ -86,28 +86,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '67aad10e-ff61-4cfe-801e-10452d5db000', + 'd65d9248-3f8c-4697-b731-0069f6a3c400', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11787.14 - WUS2 ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIAgAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AmQlXR1csgVBmHSG9W09IxW1p1ZhAQAAAAdFUNgOAAAA; expires=Wed, 07-Jul-2021 16:49:12 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrE4htze6f-FcP9SBGZj5QHM5Xf47xg6xVzDNXAvnXQeKDlKQgXRR9EuQigrfeUn1BFVLWy53KWihyhpkMz9bUAFS-faAOGbwkMxogS48eudhBKFDN_1u-XK66InwqOQANzN9HXfvRt_S5AndtKMNXKvhUu8dYeK7dvdmygnCHC2wgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRrSlhP8HPqnhkCrn9CcjjlTTbCo-huFAdy0KQQ9gIOI-gYHwRRUiJlU70Uen_cVfTQyGubYB6jrZTQenOZPdZn51pcZKD8eDAUaGyPdXl0Jjfiyg9nCsenZVuqpQjAdkmTCpB2b96XpmEgq4RqlsC3k8Yc3TmG4Zf0ToSYM2hCAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:09 GMT', + 'Mon, 07 Jun 2021 16:49:12 GMT', 'Content-Length', '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=6b3790be-0d4e-4e52-93b1-984894561f36&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -124,49 +121,45 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'f18d5d94-1dc9-4be9-be83-0d4735be2c01', + '52508406-802f-4865-b97a-e45b82a6b100', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11787.14 - NCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIAwAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AmQlXR1csgVBmHSG9W09IxW1p1ZhAgAAAAdFUNgOAAAA; expires=Wed, 07-Jul-2021 16:49:12 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:09 GMT', + 'Mon, 07 Jun 2021 16:49:12 GMT', 'Content-Length', '1322' ]); nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) - .get('///providers/Microsoft.Authorization/roleAssignments') + .get('///providers/Microsoft.Authorization/roleAssignments/b36b00af-89c6-435f-a43d-9a3087015c27') .query(true) - .reply(200, {"value":[{"id":"/providers/Microsoft.Authorization/roleAssignments/77aa69c0-b2ee-4fef-9469-b399e370b84e","name":"77aa69c0-b2ee-4fef-9469-b399e370b84e","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/f8a779d3-853c-4ed3-9a13-219acd89b438","name":"f8a779d3-853c-4ed3-9a13-219acd89b438","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"},{"id":"/providers/Microsoft.Authorization/roleAssignments/07f6dd2b-0410-0caa-9af7-6b47d238fb27","name":"07f6dd2b-0410-0caa-9af7-6b47d238fb27","properties":{"principalId":"01ea9a65-813e-4238-8204-bf7328d63fc6","roleDefinitionId":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","scope":"/"},"type":"Microsoft.Authorization/roleAssignments"}]}, [ - 'x-frame-options', - 'SAMEORIGIN', - 'x-ms-request-id', - 'acf41412-a866-11eb-9bfe-000d3a230d40', + .reply(404, {"error":{"code":"RoleAssignmentNotFound","message":"Requested role assignment not found (Activity ID: 497f83bc-c7b0-11eb-ac21-000d3ae55bfc)"}}, [ 'content-type', 'application/json; charset=utf-8', - 'x-ms-keyvault-region', - 'westeurope', + 'x-ms-server-latency', + '1', + 'x-content-type-options', + 'nosniff', 'content-length', - '1208', + '143', + 'x-ms-request-id', + '497f83bc-c7b0-11eb-ac21-000d3ae55bfc', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", + 'x-ms-build-version', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', - 'x-content-type-options', - 'nosniff', - 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', - 'x-ms-server-latency', - '1' + 'x-frame-options', + 'SAMEORIGIN' ]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_can_create_update_and_delete_a_role_definition_happy_path.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_can_create_update_and_delete_a_role_definition.js similarity index 57% rename from sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_can_create_update_and_delete_a_role_definition_happy_path.js rename to sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_can_create_update_and_delete_a_role_definition.js index 73c8e0abdd9d..57ec551f02c0 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_can_create_update_and_delete_a_role_definition_happy_path.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_can_create_update_and_delete_a_role_definition.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "1c491ac4038e6f302d3f0c8847514f15"; +module.exports.hash = "61909f913b9a75dd62727b9a40ea0055"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -21,7 +21,7 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '0', 'x-ms-request-id', - 'af435282-a866-11eb-b4be-000d3aab33d0', + 'b18b2106-c7af-11eb-8772-000d3ae39d43', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', @@ -49,19 +49,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'dc0e24fc-fb7e-42df-bcbc-12dc02952602', + 'e02e7903-65b3-4b5f-9503-f5d8acba0200', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11722.26 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:14 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhAwAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:57 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3qNGM6bWzeHQaUD3QPN2PopDjFjTF4UAvpMkqANqjQgcEndPmu9sZ3rggKBAu_EQ0LGrVtE_4j8m5CrV-o_1tFWynhZfu02sYidOrUgdK7Da0pmSF3DYeGxCv3zCFVOyb7RqEt7Kw9ShACBEZFed8lcwnVUovB-pklbBeHY5f-4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5bzfwwsK715v5VTlSPKWZB9-kF9obtuxuLKaJmRAg0P_4NofSBA5Mebi1jtxCZMiWNFPfj06KydX8xYN5G6WR-9sWTtLCQCN-VnXOHlPA31zEKVbZobUlVFQ3a0qF1V6d5uV2B7NmokaA2YIygr4eFmrRONta3F1eK685ArS75QgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:13 GMT', + 'Mon, 07 Jun 2021 16:44:57 GMT', 'Content-Length', '980' ]); @@ -84,28 +84,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '43a56a9e-d342-4db6-b75a-60f688dfb001', + '0334137f-717d-4b6b-8256-2ca4d2019a00', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11787.14 - WUS2 ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:15 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhAwAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:57 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRVjG8D4QOkFkDXroalNFrFLr7Xy59X4ZYVci5uWYwvT9vvpQCrDD3FPNVmeNapNdniGpMw7VQckFHl-uqe4unbTTo0qJ6RddOzqdQPyhNIDezPh0VitkVuBRyriJ7a4CAA_CwGGncxnRy6q4_Rj5yyf77D82jeNX_YzywYyKn5wgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrO9aZQ3CZzc9OhbQyxcD18cOkrqbncFy-Ue3AzD18_J4PFu-Jb03CDoGW30PCFmUVQRri-mjBTPxCmIqvUaU27frZcfe_8Ec0bmvk-OV8ns2Aw6-saOKC0zZe1mlGrwVysvm5N18q9WAwUNjbuWa4ZpRo99etCP4sYGQvPqzi3xMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:14 GMT', + 'Mon, 07 Jun 2021 16:44:57 GMT', 'Content-Length', '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=d033dd7d-1e53-4a31-8b18-d8d22e3e8472&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -122,19 +119,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8e30eed8-6132-4ee7-b258-30e22aeeec00', + '4ea22e7f-14a0-4ef6-93b6-aa4eaf6aca00', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11787.14 - SCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBgAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:15 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBAAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:57 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:14 GMT', + 'Mon, 07 Jun 2021 16:44:57 GMT', 'Content-Length', '1322' ]); @@ -148,19 +145,19 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'content-length', - '547', + '538', 'x-ms-request-id', - 'afcec592-a866-11eb-b4be-000d3aab33d0', + 'b1ba846e-c7af-11eb-8772-000d3ae39d43', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', - '47', + '52', 'cache-control', 'no-cache', 'x-frame-options', @@ -176,17 +173,17 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'content-length', - '666', + '657', 'x-ms-request-id', - 'afe51b58-a866-11eb-b4be-000d3aab33d0', + 'b1ce30ae-c7af-11eb-8772-000d3ae39d43', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', '44', 'cache-control', @@ -204,19 +201,19 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'content-length', - '666', + '657', 'x-ms-request-id', - 'affa2fca-a866-11eb-b4be-000d3aab33d0', + 'b1e020c0-c7af-11eb-8772-000d3ae39d43', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', - '44', + '42', 'cache-control', 'no-cache', 'x-frame-options', @@ -226,17 +223,17 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleDefinitions') .query(true) - .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ + .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action","Microsoft.KeyVault/managedHsm/rng/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'b00efa5e-a866-11eb-b4be-000d3aab33d0', + 'b1f30f0a-c7af-11eb-8772-000d3ae39d43', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', - '6590', + '6648', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', @@ -246,9 +243,9 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', '0' ]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_can_list_role_definitions.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_can_list_role_definitions.js new file mode 100644 index 000000000000..26514b92a54d --- /dev/null +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_can_list_role_definitions.js @@ -0,0 +1,169 @@ +let nock = require('nock'); + +module.exports.hash = "8dba027321e3fcff1315799257b3a5a0"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) + .get('///providers/Microsoft.Authorization/roleDefinitions') + .query(true) + .reply(401, "OK", [ + 'content-type', + 'application/json; charset=utf-8', + 'x-content-type-options', + 'nosniff', + 'www-authenticate', + 'Bearer authorization="https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012", resource="https://managedhsm.azure.net"', + 'x-frame-options', + 'SAMEORIGIN', + 'content-length', + '2', + 'x-ms-request-id', + 'b114b552-c7af-11eb-b80b-000d3ae55bfc', + 'strict-transport-security', + 'max-age=31536000; includeSubDomains', + 'content-security-policy', + "default-src 'self'", + 'x-ms-build-version', + '1.0.20210520-1-d6634624-develop', + 'cache-control', + 'no-cache', + 'x-ms-server-latency', + '0' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'd895f0d1-0bab-46b1-9512-4491a3bd6d00', + 'x-ms-ests-server', + '2.1.11722.26 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhAgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:56 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrud2IiLU-0tlwmdBKV9Ij7jMwCzwiFwWuztbWrXG7AnLskST77Yv3vVB3jVhncy40P33bzEzXK1rLLvJq0beZkhEbbihAXWKdwywYNtdUH93J1cDa-xh9JH6DLOkLVRLQC0rimqUiFs4VhJsH6u70H-ZKsvN_8tRbKn0rljNy3X0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 07 Jun 2021 16:44:56 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4ea22e7f-14a0-4ef6-93b6-aa4e8d6aca00', + 'x-ms-ests-server', + '2.1.11787.14 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhAgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:57 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrI3d1WPWxxJcGQ-adYK4LJISLPKY4kO5wewfU7ttEtYuIEWdUs2BudpKQVSBiCGwrK3v9ueISjxJkefDhau1GNq1pqXIpQCiVCW7mjd2EWvYzqthbQ9XVbkn-vL3_lEtgX0iOLxKKamsMwO42e4tNg_ijmoN_eUN8D-ZDfbS_BUUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 07 Jun 2021 16:44:56 GMT', + 'Content-Length', + '1651' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=b7146176-2e06-42e1-af5f-5ea9ded84f36&client_secret=azure_client_secret") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '65cdb7c5-94f9-478e-bbb2-379007f1b300', + 'x-ms-ests-server', + '2.1.11787.14 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhAwAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:57 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 07 Jun 2021 16:44:56 GMT', + 'Content-Length', + '1322' +]); + +nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) + .get('///providers/Microsoft.Authorization/roleDefinitions') + .query(true) + .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action","Microsoft.KeyVault/managedHsm/rng/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ + 'x-frame-options', + 'SAMEORIGIN', + 'x-ms-request-id', + 'b1448e76-c7af-11eb-b80b-000d3ae55bfc', + 'content-type', + 'application/json; charset=utf-8', + 'x-ms-keyvault-region', + 'eastus2', + 'content-length', + '6648', + 'strict-transport-security', + 'max-age=31536000; includeSubDomains', + 'content-security-policy', + "default-src 'self'", + 'cache-control', + 'no-cache', + 'x-content-type-options', + 'nosniff', + 'x-ms-build-version', + '1.0.20210520-1-d6634624-develop', + 'x-ms-keyvault-network-info', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', + 'x-ms-server-latency', + '1' +]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_listroledefinitions.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_listroledefinitions.js deleted file mode 100644 index cb3eddd6126d..000000000000 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_listroledefinitions.js +++ /dev/null @@ -1,172 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "8dba027321e3fcff1315799257b3a5a0"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) - .get('///providers/Microsoft.Authorization/roleDefinitions') - .query(true) - .reply(401, "OK", [ - 'content-type', - 'application/json; charset=utf-8', - 'x-content-type-options', - 'nosniff', - 'www-authenticate', - 'Bearer authorization="https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012", resource="https://managedhsm.azure.net"', - 'x-frame-options', - 'SAMEORIGIN', - 'content-length', - '2', - 'x-ms-request-id', - 'aeba7f20-a866-11eb-bf44-000d3a230d40', - 'strict-transport-security', - 'max-age=31536000; includeSubDomains', - 'content-security-policy', - "default-src 'self'", - 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', - 'cache-control', - 'no-cache', - 'x-ms-server-latency', - '0' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '48ce24ce-b174-49b4-a471-609920dbad01', - 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:13 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnpedFicquR61SYw3P5CE4nV5Tsgz3ASXYwLKFHxUQvUXaf5QQnWWQbezY2lNZYtKFA0GU3HesvUvnZ-GVYy4bdlhMf_X7ILeNgC5aWm7848VwQOoZaJNwznbZAeacCK-MQ0-s0CFJ75vdllKRtUvpCEwnuOtJtMzDQljxzZrD0QgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 28 Apr 2021 21:14:12 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Length', - '1651', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '8e30eed8-6132-4ee7-b258-30e2eaedec00', - 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:13 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxQxy0NKjh1UChl6Flnd9a5y9Jj1NLfdnU3Kn4qqODC8V76zI5VsQuB6Mvf5mwEHgnSn4OJIW8VqxVOGjpvHAzVe5DWmSRA91RCR6daNgcd7GAoPLhq9N-EEpAknKibNHPCPhItMM6WkLPK4OTDkZJJnxlKAJEC2kj2i86L54IgEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 28 Apr 2021 21:14:13 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'd64031fa-5e8c-484b-9409-7d49a1eb4701', - 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:13 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 28 Apr 2021 21:14:13 GMT', - 'Content-Length', - '1322' -]); - -nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) - .get('///providers/Microsoft.Authorization/roleDefinitions') - .query(true) - .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ - 'x-frame-options', - 'SAMEORIGIN', - 'x-ms-request-id', - 'aeeb4aa6-a866-11eb-bf44-000d3a230d40', - 'content-type', - 'application/json; charset=utf-8', - 'x-ms-keyvault-region', - 'westeurope', - 'content-length', - '6590', - 'strict-transport-security', - 'max-age=31536000; includeSubDomains', - 'content-security-policy', - "default-src 'self'", - 'cache-control', - 'no-cache', - 'x-content-type-options', - 'nosniff', - 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', - 'x-ms-server-latency', - '1' -]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_supports_tracing.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_supports_tracing.js new file mode 100644 index 000000000000..7772d0786691 --- /dev/null +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions/recording_supports_tracing.js @@ -0,0 +1,165 @@ +let nock = require('nock'); + +module.exports.hash = "f4bb096fe2d944e8843f5b8103d4cf82"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) + .get('///providers/Microsoft.Authorization/roleDefinitions/Managed%20HSM%20Crypto%20Auditor') + .query(true) + .reply(401, "OK", [ + 'content-type', + 'application/json; charset=utf-8', + 'x-content-type-options', + 'nosniff', + 'www-authenticate', + 'Bearer authorization="https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012", resource="https://managedhsm.azure.net"', + 'x-frame-options', + 'SAMEORIGIN', + 'content-length', + '2', + 'x-ms-request-id', + '48d830e4-c7b0-11eb-8e32-000d3a7bc18d', + 'strict-transport-security', + 'max-age=31536000; includeSubDomains', + 'content-security-policy', + "default-src 'self'", + 'x-ms-build-version', + '1.0.20210520-1-d6634624-develop', + 'cache-control', + 'no-cache', + 'x-ms-server-latency', + '0' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '23696084-a7e0-4bc3-837b-8be49fc17900', + 'x-ms-ests-server', + '2.1.11722.26 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AmQlXR1csgVBmHSG9W09IxU; expires=Wed, 07-Jul-2021 16:49:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1OgnX49qpUsM6CfNeeC4txYE_MTkVlnBFRxMi_V_-joza12c4gW4RTt5FuGznQE61JmZ90Db6f86aq_yOI52hJ2PqjZtf3pqHMQSFZYYHdRNacsf3h0iGN3GQMbYEkSzgMPRNb2Y8HFHR9ogxKRHS25bc3tY4ESmGPGl4ksmA6IgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 07 Jun 2021 16:49:11 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'a13223e9-dd0b-4596-9b09-d015226bbd00', + 'x-ms-ests-server', + '2.1.11787.14 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=AmQlXR1csgVBmHSG9W09IxU; expires=Wed, 07-Jul-2021 16:49:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEQmw0hl9sdIErxLKHoQTuqFHW0FTsojTCCXmt1K9jOS-8Ldb9B4vo7Z-NxSH0DG0mx0zlJPK8xIrRyXUtVu3Y4VJytMFEIvKfHao6HxVJ92PA4NmSKbhb8QHPChlYRUW9MR1k0ufI1xhCxY7NAXO3Nb02BIGlFhmDs161QvtPYwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 07 Jun 2021 16:49:11 GMT', + 'Content-Length', + '1651' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=96ea77ea-2fc4-4c15-ae03-d9e7066039a2&client_secret=azure_client_secret") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '7b4544af-02c2-4108-89bb-4bb49092da00', + 'x-ms-ests-server', + '2.1.11787.14 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AmQlXR1csgVBmHSG9W09IxW1p1ZhAQAAAAdFUNgOAAAA; expires=Wed, 07-Jul-2021 16:49:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 07 Jun 2021 16:49:11 GMT', + 'Content-Length', + '1322' +]); + +nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) + .get('///providers/Microsoft.Authorization/roleDefinitions/Managed%20HSM%20Crypto%20Auditor') + .query(true) + .reply(404, {"error":{"code":"RoleDefinitionNotFound","message":"Requested role definition not found (Activity ID: 49112304-c7b0-11eb-8e32-000d3a7bc18d)"}}, [ + 'content-type', + 'application/json; charset=utf-8', + 'x-ms-server-latency', + '0', + 'x-content-type-options', + 'nosniff', + 'content-length', + '143', + 'x-ms-request-id', + '49112304-c7b0-11eb-8e32-000d3a7bc18d', + 'strict-transport-security', + 'max-age=31536000; includeSubDomains', + 'content-security-policy', + "default-src 'self'", + 'x-ms-build-version', + '1.0.20210520-1-d6634624-develop', + 'cache-control', + 'no-cache', + 'x-frame-options', + 'SAMEORIGIN' +]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_deleteroledefinition/recording_errors_when_deleting_a_builtin_role_definition.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_deleteroledefinition/recording_errors_when_deleting_a_builtin_role_definition.js index a229c9345247..a0e605965f80 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_deleteroledefinition/recording_errors_when_deleting_a_builtin_role_definition.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_deleteroledefinition/recording_errors_when_deleting_a_builtin_role_definition.js @@ -19,17 +19,17 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '2', 'x-ms-request-id', - 'b2d7cd2e-a866-11eb-afe0-000d3a230d40', + 'b4348de8-c7af-11eb-b80b-000d3ae55bfc', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-ms-server-latency', - '0' + '1' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) @@ -51,19 +51,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '3e2f8e10-5a59-4e73-922a-0158f76e6101', + '2c60234e-e259-416b-b143-e524552d0300', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11722.26 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:20 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBwAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:02 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4Ccawc8jFjsw1haf2BozTSkPwdG3f-YiygJvv2QYzJ68xKlY_DkbLTk6UHlzBFsUfg1Im1d40A8Hi2LCpjozrXlmAHVt_1XXvJXUnGKUhOPScwC2mfdtjO4s5CNhZY_fgGBX0-_bBRjXEJ79JXY42ppgII3D30YSi8zsT_cTdCUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrHnRhqaupHDzhLSoeOOCHPCMg5n4uHgD-xXqtkhk-EUB-oPoAZDxI3nzz_Aib2BquxXINAxDXtyp3K4ozgkfk1sjHo617ypwg7MeMWj0bpdaIhLGunbLrmFOTs1dw6sUImSwexyMomWjCMQsMxGQpBG6GiUT9p44DvRk8QKTovOYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:19 GMT', + 'Mon, 07 Jun 2021 16:45:01 GMT', 'Content-Length', '980' ]); @@ -86,35 +86,30 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'f18d5d94-1dc9-4be9-be83-0d47a1bf2c01', + 'b6b9c0f3-668f-4845-adbd-771d6560d600', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:20 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBwAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:02 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevreAwVnLue4K8DtAOp9pTj_uRNRid6VFnCtnmWKx9YrtMshusDfxdlzLZH9_vyi6aPPNdRK8xWWGyUl2ig1eNSOuMAZ2XQ9MM0OApuX2vGJPnJCIWkN3LzFKdQFf8eLPM4t1va8pAfuf5Fshg1AUL7xeaFde9MuCyYiA0A0D1vP2wgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4LGD1hgPLDF5v7eaRief6HI2k5wUDHhiLRoBv-Kll8T_2BpTYcKsYYRag2e_RTPw3EdaJ8bwZEv2XJRDgaikDl_2oe8MFcvN3jLITiWVY2iQ9n5yrCi7koIk1inPNOK3gUK6cajh5E1NKl_3Xl_97_C8P9JV4XCCMyxTZlaBXaEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:20 GMT', + 'Mon, 07 Jun 2021 16:45:01 GMT', 'Content-Length', '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=7a55e516-aae4-4392-87ed-5673f674c5f9&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1322', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -126,35 +121,37 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a5c52bde-94ea-4558-8fb4-e0b712eb4101', + '42c780cd-fb4e-4a28-a4f7-5936be5edf00', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:20 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCAAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:02 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:19 GMT' + 'Mon, 07 Jun 2021 16:45:02 GMT', + 'Content-Length', + '1322' ]); nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleDefinitions') .query(true) - .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ + .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action","Microsoft.KeyVault/managedHsm/rng/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'b30b8722-a866-11eb-afe0-000d3a230d40', + 'b46e2846-c7af-11eb-b80b-000d3ae55bfc', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', - '6590', + '6648', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', @@ -164,9 +161,9 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', '1' ]); @@ -174,7 +171,7 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .delete('///providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4') .query(true) - .reply(400, {"error":{"code":"BadParameter","message":"Cannot re-use the name/GUID matching that of a built-in role. Please use a unique role ID. (Activity ID: b31c299c-a866-11eb-afe0-000d3a230d40)"}}, [ + .reply(400, {"error":{"code":"BadParameter","message":"Cannot re-use the name/GUID matching that of a built-in role. Please use a unique role ID. (Activity ID: b4796bca-c7af-11eb-b80b-000d3ae55bfc)"}}, [ 'content-type', 'application/json; charset=utf-8', 'x-ms-server-latency', @@ -186,7 +183,7 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '188', 'x-ms-request-id', - 'b31c299c-a866-11eb-afe0-000d3a230d40', + 'b4796bca-c7af-11eb-b80b-000d3ae55bfc', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_deleteroledefinition/recording_errors_when_deleting_a_nonexistent_role_definition.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_deleteroledefinition/recording_succeeds_when_deleting_a_nonexistent_role_definition.js similarity index 78% rename from sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_deleteroledefinition/recording_errors_when_deleting_a_nonexistent_role_definition.js rename to sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_deleteroledefinition/recording_succeeds_when_deleting_a_nonexistent_role_definition.js index d09fbdac9cb8..ef4b1cfb0728 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_deleteroledefinition/recording_errors_when_deleting_a_nonexistent_role_definition.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_deleteroledefinition/recording_succeeds_when_deleting_a_nonexistent_role_definition.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "d57a5699305a6c9646849d9f0ff6f903"; +module.exports.hash = "da63ad93c6d8f0e9484d9c32309f93e9"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -21,7 +21,7 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '0', 'x-ms-request-id', - 'b37ae3a6-a866-11eb-a5d5-000d3aab33d0', + 'b4c21db6-c7af-11eb-b559-000d3a7bc18d', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', @@ -49,19 +49,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a7f643fb-984a-42f5-9f86-1293b15b4602', + '1398b09d-67f5-4df4-822b-ce9396196900', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11722.26 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCAAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:03 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrULOLR_dUfTmAlqiVCLclRdEmD09WVW3wnZhllBhQKQLnm9YFId9jS6zjcSYmAyGjoQv9GBc6nz7Lc11OxA45WEhc4_6uy4cqQmt-AqOo0WvTTNf4B7MYb7L_XqBvUBdi4pc_eESCbNmbHU2I-Aa_zq8hT7WzK0QSDnvyEYCiikggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevru9UsJzU5EnLTGGU-12HgWj-cXSECkxJH1bH51bpY7IOHqBQcytKbyQo7ryJ1TBYJtlhUKCjfb9pctrwmuHRDL3kFG0gwpKlayb1InVzSMqgjDJP2VID8XLIisnt0EquMXqrwVOMW-TAuZUtfgWzSRUHTuZQRCO4oHwcvT8QgDpYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:21 GMT', + 'Mon, 07 Jun 2021 16:45:02 GMT', 'Content-Length', '980' ]); @@ -84,28 +84,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '3ffbe755-4f58-4fad-8890-bfbd02ce9800', + 'a94acc63-b733-4388-8221-d8606973df00', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCAAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:03 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrgy4jsez7-9XpQGenrwnu23fhROZX-oTBiwHTwRX_Q39J3LORobQB7jFP4KUeK4B6t_sNUY2s-J8cmvskWm2lZkFeVOUd0aD3IzppKmeX_RlQ_I6jIoSqeYLpz-XmEZ1RPWJN2pDjXrvN9DMQp8O6A_MHbCcOb8XK8KEIZ10OJbAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3C5jSgci6I3ex9S5b1n_LK-4-OLBa4E781PAX0F7A_NDJgFgXkg1W8UG4Qbr6gdkR_bCeClmNw3g2vNwxZBX2CWmkopILB_539OUeoKIUzkqfvnombD9CctNihUkf6vt3y-wTh0lsr6HdJAhn9HY7kbHwrAs6YiP5277VFGG9wsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:20 GMT', + 'Mon, 07 Jun 2021 16:45:02 GMT', 'Content-Length', '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=9549a94d-aacf-4e90-bf15-f61775082cbb&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -122,19 +119,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '4804f345-4d9a-4ad9-8a2d-ef359a46e901', + 'd54c3d5f-8e43-4ae1-ac47-bd9d7df1d000', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhCQAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:03 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:21 GMT', + 'Mon, 07 Jun 2021 16:45:02 GMT', 'Content-Length', '1322' ]); @@ -142,11 +139,11 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .delete('///providers/Microsoft.Authorization/roleDefinitions/foobar') .query(true) - .reply(404, {"error":{"code":"RoleDefinitionNotFound","message":"Requested role definition not found (Activity ID: b3ae84cc-a866-11eb-a5d5-000d3aab33d0)"}}, [ + .reply(404, {"error":{"code":"RoleDefinitionNotFound","message":"Requested role definition not found (Activity ID: b4fdd022-c7af-11eb-b559-000d3a7bc18d)"}}, [ 'content-type', 'application/json; charset=utf-8', 'x-ms-server-latency', - '0', + '1', 'cache-control', 'no-cache', 'x-content-type-options', @@ -154,7 +151,7 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '143', 'x-ms-request-id', - 'b3ae84cc-a866-11eb-a5d5-000d3aab33d0', + 'b4fdd022-c7af-11eb-b559-000d3a7bc18d', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_getroledefinition/recording_errors_when_the_role_definition_cannot_be_found.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_getroledefinition/recording_errors_when_the_role_definition_cannot_be_found.js index 2ec9d5b88db1..06c049045613 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_getroledefinition/recording_errors_when_the_role_definition_cannot_be_found.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_getroledefinition/recording_errors_when_the_role_definition_cannot_be_found.js @@ -19,17 +19,17 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '2', 'x-ms-request-id', - 'b1030fb8-a866-11eb-b524-000d3a230d40', + 'b2ca90f6-c7af-11eb-be7e-000d3a7bc18d', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-ms-server-latency', - '0' + '1' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) @@ -38,6 +38,8 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ 'Cache-Control', 'max-age=86400, private', + 'Content-Length', + '980', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', @@ -51,21 +53,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '2ff0dabd-8747-4f17-8f75-b5f875569500', + 'e8d9a49f-b06d-44b5-acef-0915afbf0500', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11722.26 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBwAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:17 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBQAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:59 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr82gsFc1kBlCMHB6TRyFmaSgUiYD_aqrL-DGdZ4hXk2kbq-smZdfpag1nhFQwJ0NXkAzlyQcfDYtDlH3vqpY770ejFsWUjJC_Sdcok2Mpl_hXV66U44aVW9K7Jo2ga0gY4hihZ9X1lVZdoflghVKs3VAC9hZIAkrrHMOdHBMdIPMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwlW0Fumzz7krFKK6YNWTGiKiRolkj6nP3ix11Bai_5574MFoRiHlDxa1sxWEjWBHajZRGCAl1HyjL--sqxpRGIBQNCJvDDSNgM7pp1nRg1d-7ABQcbrqIxHK1iDNpIycgHxLGKaEKup7ENW9gGRahuj1QavZbaHA_TJ272837SggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:16 GMT', - 'Content-Length', - '980' + 'Mon, 07 Jun 2021 16:44:59 GMT' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) @@ -73,6 +73,8 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ 'Cache-Control', 'max-age=86400, private', + 'Content-Length', + '1651', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', @@ -86,28 +88,23 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a40fc326-6347-4632-9f59-417df7832e01', + 'a94acc63-b733-4388-8221-d860b672df00', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBwAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:17 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBQAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:59 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrz0ggBagF4AWADgh2NVYXei8Zc-lXog0H7mnjl8NnPMEkUTNpqWxOufHcda85EkY0ikvqyigdynxmI6IwXDWsZAJxunooE7Kz8bicndL_BE6uTGd7JodeXqZxqpHz8kGj2aAyo1zj5q11W_CErKbC1UvKkTo1TalDDYml-x72-oEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1uwYLbDOf-DEivp-Dv2WiLITeU4ItK0NnL-s2wnlIBeY-6wWAW8cUusJJ77guOiiQDfrLHdPh-UCbR7GFXa_ody4z8XEJjAg7lEHCRlk5Jnt3yf6Fpj_vh_RrHy_9XSaYg7rja2ofpQCU35V2wzKIk8mWseW9cmQjSwN_q0UZqMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:16 GMT', - 'Content-Length', - '1651' + 'Mon, 07 Jun 2021 16:44:59 GMT' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=77548aea-70cc-4961-b6e9-67834dab28ac&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -124,19 +121,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '18f0384e-c69b-4192-88a0-fd3501472c01', + '87b49454-bf82-4829-8a65-fb173f36ae00', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11787.14 - WUS2 ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICAAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:17 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:00 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:17 GMT', + 'Mon, 07 Jun 2021 16:44:59 GMT', 'Content-Length', '1322' ]); @@ -144,7 +141,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleDefinitions/does_not_exist') .query(true) - .reply(404, {"error":{"code":"RoleDefinitionNotFound","message":"Requested role definition not found (Activity ID: b1460868-a866-11eb-b524-000d3a230d40)"}}, [ + .reply(404, {"error":{"code":"RoleDefinitionNotFound","message":"Requested role definition not found (Activity ID: b2f8d524-c7af-11eb-be7e-000d3a7bc18d)"}}, [ 'content-type', 'application/json; charset=utf-8', 'x-ms-server-latency', @@ -154,13 +151,13 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '143', 'x-ms-request-id', - 'b1460868-a866-11eb-b524-000d3a230d40', + 'b2f8d524-c7af-11eb-be7e-000d3a7bc18d', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-frame-options', diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_getroledefinition/recording_returns_a_role_definition_by_name.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_getroledefinition/recording_returns_a_role_definition_by_name.js index b7f566adbaed..d90e12284db9 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_getroledefinition/recording_returns_a_role_definition_by_name.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_getroledefinition/recording_returns_a_role_definition_by_name.js @@ -19,17 +19,17 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '2', 'x-ms-request-id', - 'b0656c4a-a866-11eb-8c6b-000d3a21d54b', + 'b23bbd86-c7af-11eb-b92b-000d3ae55bfc', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-ms-server-latency', - '1' + '0' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) @@ -51,19 +51,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '9597b1fd-0fd9-404b-b023-2516d4aa9e01', + '02edc600-b9cb-4d38-9701-c06ed90b0400', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11722.26 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBgAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:16 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBAAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:58 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrfjgLy45-fAjW1EBFOl3fbAifrib15ur67U-1VlwtTljfMgBv_0UZcTvise9mcEdTdqk7d4N_kAOa7zmhq15FR6VVvexN0f2ehE2rcBajplPNh4n2U-VkLQkH--3uXnjoT1cPDnxKHDCmNXp9E6Uy5lwBAELyMZ8OJh_yaWV2giAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevraaYNXZav9WHsUPGtIkePrN8Zwh9NDHeul-7HmuVBqG1UDNemrAVjXVOejtznDouh_2HzCKPfpVdIpretHWgZGbK41FADdcKD8Wrhl5koqU0DDEpOC3lA9gMgmseflT94SxXT2X98d90Run56Vgn7nVFnqfQeuoWBQAVSLkeTuGwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:15 GMT', + 'Mon, 07 Jun 2021 16:44:58 GMT', 'Content-Length', '980' ]); @@ -86,33 +86,32 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'e1884e6b-1511-4c23-8b75-c7ed71c76f01', + 'c4635dea-3826-429d-9a2d-5e619f2ac300', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBgAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:16 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBAAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:58 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrSIexclK9RSRnfj6wIntkTOtJrbmW8L5c5rPFea2qI3Df3fz4wMJ083NLgGDYrId46_JnGBzPwwRXc6igKGpmgdDnU752bOABIaAmA_wW-r9yotJGmNWVqSuApzm6rkMOFUQRH_Giog_oxhmcAnpwZ6OniqMC_pJNIY9vYt7Ej1EgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9skC96sMvF76ecUOs7sd7v6uKglyBhpm_ajeXQZXOeQ4gvJuNxLGizZNrgKhNkpRyvAOKvnVO7z6oSjT5GlquYL1oDW_nGJQcE6Vqoizcy-AFpQZdu10CKxSAmGxOqqZe_D9GHASx4-FCtEAiDhA52iWbOZIohghwkkEDy1W8xwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:15 GMT', + 'Mon, 07 Jun 2021 16:44:58 GMT', 'Content-Length', '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=aa584dcb-9bad-4094-923d-e8dae3ee62e5&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', + 'Content-Length', + '1322', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -124,37 +123,35 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '67aad10e-ff61-4cfe-801e-1045785eb000', + '05f1bffa-8c6d-4d30-82b5-a2bdb013b100', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11787.14 - NCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKIBwAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:16 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBQAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:44:59 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:15 GMT', - 'Content-Length', - '1322' + 'Mon, 07 Jun 2021 16:44:58 GMT' ]); nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleDefinitions') .query(true) - .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ + .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action","Microsoft.KeyVault/managedHsm/rng/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'b09bf828-a866-11eb-8c6b-000d3a21d54b', + 'b2712ab6-c7af-11eb-b92b-000d3ae55bfc', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', - '6590', + '6648', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', @@ -164,27 +161,27 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', - '0' + '1' ]); nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8') .query(true) - .reply(200, {"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}, [ + .reply(200, {"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'b0a9f1e4-a866-11eb-8c6b-000d3a21d54b', + 'b27ce392-c7af-11eb-b92b-000d3ae55bfc', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', - '561', + '566', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', @@ -194,9 +191,9 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', - '0' + '1' ]); diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_setroledefinition/recording_errors_when_name_is_not_a_valid_guid.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_setroledefinition/recording_errors_when_name_is_not_a_valid_guid.js index e372a0d5b07e..aff3c8889693 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_setroledefinition/recording_errors_when_name_is_not_a_valid_guid.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_setroledefinition/recording_errors_when_name_is_not_a_valid_guid.js @@ -1,11 +1,11 @@ let nock = require('nock'); -module.exports.hash = "aa49bc26dd2b5eaa4bd55c512d8cdb8f"; +module.exports.hash = "d1c37feda54d1c8637e8c52c80c0a788"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) - .put('///providers/Microsoft.Authorization/roleDefinitions/foo') + .put('///providers/Microsoft.Authorization/roleDefinitions/foo%20unique%20value') .query(true) .reply(401, "", [ 'content-type', @@ -21,7 +21,7 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '0', 'x-ms-request-id', - 'b1aba6f0-a866-11eb-ac8d-000d3aab33d0', + 'b33fec98-c7af-11eb-9e24-000d3ae39d43', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', @@ -49,19 +49,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'debe171d-f28c-43e7-bc2f-db960b802600', + 'c53a4106-4144-4137-b131-0d3b2194a500', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11722.26 - WUS2 ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICAAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:18 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:00 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr121759yJ1h1rWV6vDIWz5wbFJ9kpuAeTmOjfvS1fFMbQ8JYCX08KTtbkPf867Z7l0RbYI6yq8lWPCPJpNOlx-WRPuxTyYjDjl78xLJPMPRIuzwyAVHoeV6NySMnDn53vhEf6aELuDD80OIoYATVmshFdeBI7irfEM0UujHGHEaAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrK4qmYUYim12MvWOje3aqzeYFRdkk2XTcbozpgC1cj-cXcLZ2W4bEQ7XxZZId17rwBFwOewHIwyrKoaRc4d6utNjadXamqmw68Q_xaniGEj2a6GYKYVm93JlathRZN7QTsIpE-E8Hz5zGR9TrwpW06lRooTdDup5PmUVyIQbyzx4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:17 GMT', + 'Mon, 07 Jun 2021 16:45:00 GMT', 'Content-Length', '980' ]); @@ -84,28 +84,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8e30eed8-6132-4ee7-b258-30e2bbeeec00', + 'c9e3e4df-63b6-4004-baa2-2833478ecf00', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11787.14 - EUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICAAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:18 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:00 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_xAbB5gv7SEtMvqd_wW5QMoMAiUxO-dyTQRrznajG8WyX7nkrbh7p227Zj35stGJPVx2Pg2klUw_uPsGPXjpvxc0KksIfuxR4BsoleliLNSWixOZPmbRlJgSyBqO0EaXYhvl7Lu8ZyeRX1BzeIpDtoFiIIictttbSnkk-KSZUMMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrspwLSbzBDOo5ZAz8f-M1nKs4OvGGby_XlF2RodY2aGx9AGwhi60Uq0SfjWLF0r3UMlGQ7GKQT9e3KHHjbq30-r85BXFkmuB2SEOa6rFu_AEMNLM8K_w5uIDDtnfRF3SwbX2Q__ADUGIYGTRu-lDS5wSSD9haXAxi6e0DXg3o3e4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:18 GMT', + 'Mon, 07 Jun 2021 16:45:00 GMT', 'Content-Length', '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=ba967847-0267-4f51-adc0-b84c4da55889&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -122,31 +119,31 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a5c52bde-94ea-4558-8fb4-e0b7bbea4101', + '65cdb7c5-94f9-478e-bbb2-379094f1b300', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11787.14 - WUS2 ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICAAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:18 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:00 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:18 GMT', + 'Mon, 07 Jun 2021 16:45:00 GMT', 'Content-Length', '1322' ]); nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) - .put('///providers/Microsoft.Authorization/roleDefinitions/foo', {"properties":{"roleName":"foo","type":"CustomRole","permissions":[],"assignableScopes":["/"]}}) + .put('///providers/Microsoft.Authorization/roleDefinitions/foo%20unique%20value', {"properties":{"roleName":"foo role definition name","type":"CustomRole","permissions":[],"assignableScopes":["/"]}}) .query(true) - .reply(400, {"error":{"code":"BadParameter","message":"Role definition name must be a GUID (Activity ID: b1e1ed82-a866-11eb-ac8d-000d3aab33d0)"}}, [ + .reply(400, {"error":{"code":"BadParameter","message":"Role definition name must be a GUID (Activity ID: b36730be-c7af-11eb-9e24-000d3ae39d43)"}}, [ 'content-type', 'application/json; charset=utf-8', 'x-ms-server-latency', - '1', + '0', 'cache-control', 'no-cache', 'x-content-type-options', @@ -154,7 +151,7 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '133', 'x-ms-request-id', - 'b1e1ed82-a866-11eb-ac8d-000d3aab33d0', + 'b36730be-c7af-11eb-9e24-000d3ae39d43', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', diff --git a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_setroledefinition/recording_errors_when_updating_a_builtin_role_definition.js b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_setroledefinition/recording_errors_when_updating_a_builtin_role_definition.js index 352cb21bac31..36d2086ce2da 100644 --- a/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_setroledefinition/recording_errors_when_updating_a_builtin_role_definition.js +++ b/sdk/keyvault/keyvault-admin/recordings/node/keyvaultaccesscontrolclient_role_definitions_setroledefinition/recording_errors_when_updating_a_builtin_role_definition.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "d3c5c6b29c41654207108723285fdc45"; +module.exports.hash = "63a61ba678059e68309193cfc4f1681a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -19,13 +19,13 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '2', 'x-ms-request-id', - 'b23b6894-a866-11eb-9b8e-000d3a21d54b', + 'b3aaf79a-c7af-11eb-a0e7-000d3ae39d43', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', "default-src 'self'", 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'cache-control', 'no-cache', 'x-ms-server-latency', @@ -51,19 +51,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '881ca7ad-2c3c-4b47-bc5c-e9cc6e356101', + '819c374c-47fc-44a7-8807-eff25a6a4c00', 'x-ms-ests-server', - '2.1.11654.16 - EUS ProdSlices', + '2.1.11722.26 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICAAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:19 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:01 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnI7xfJeQwVsJS8y4gXign3tBdG3dhpn40zu4LH0-n_afkKOQcWsIClfulI_rGAzHUOXelFq5UTxOrWO-58MC5ZraxlMxhAkQZ3sEdWOUsmqSvMLDofA1rfN0bmMKqVYOTrPO04WX-zbq9kCBxMUj0sM_-3Gt42qplcutZiIyFB4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrfiIxgdrkPnAPs6lmGs4qsHfij65F_cbduCU50xE1DRe9bKGjMchXA6ugMZL-YJXzUJ2e5tkqDZZFWJf82vl7dwOLy4Ct62cBZpf5f0L84PZBmYEFswle1sV8zDWRjdeul1t046qMCkPfmLAUlXZCNIR7pfYnJ1gaolR5CBKSmsUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:18 GMT', + 'Mon, 07 Jun 2021 16:45:00 GMT', 'Content-Length', '980' ]); @@ -86,28 +86,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '43a56a9e-d342-4db6-b75a-60f61ae0b001', + '80648425-51d4-4844-a3ae-9ac47cb8d900', 'x-ms-ests-server', - '2.1.11654.16 - WUS2 ProdSlices', + '2.1.11787.14 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICAAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:19 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBgAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:01 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrkyWrDiLaIqO-ItkNBcWAx1673cnt4JHKVIdmdB1mcRBOPT9vdehok5YeiSVsYR_mIJRUJTWgp9jqKP2s6slKDS5Zzn23yfCzFqlaRp7g3IiL0N91a3470OP4eXyigUNCK8koXAwIr-uwpPwy-fUadSdJnx4C6x-ML_C9TGOc0PUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrhJbksg_5IN5O3ps2Qwv-IN3R1pS9a2Vm7KMVtCFFBouTYi5ZyJOyoHg3ls8WnivLgGsp0gyOh449OGV3FxeFt61uFCAqIGvkuezvhVMN-7Q7HLZXjZs1-JgyYh8pRz51Kbk7wzLQedbc57pDQ5phc8UoEU3LyMQLhWRvZ6glaDMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:18 GMT', + 'Mon, 07 Jun 2021 16:45:01 GMT', 'Content-Length', '1651' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .filteringRequestBody(function (body) { - return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id"); - }) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fmanagedhsm.azure.net%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret") + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=5164d80e-0a32-4141-912d-502772412dbf&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -124,19 +121,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'fe3cb547-183e-4200-83ef-709f18053e01', + '4690904c-d704-425f-8e55-703a78afa700', 'x-ms-ests-server', - '2.1.11654.16 - SCUS ProdSlices', + '2.1.11787.14 - WUS2 ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=Ajp62JUxeNNDt0Ku6Phhnl6nSoKICQAAAB_HG9gOAAAA; expires=Fri, 28-May-2021 21:14:19 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAm7Jm6pFpOpFhI_hDlRlS1p1ZhBwAAAAZEUNgOAAAA; expires=Wed, 07-Jul-2021 16:45:01 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 28 Apr 2021 21:14:19 GMT', + 'Mon, 07 Jun 2021 16:45:00 GMT', 'Content-Length', '1322' ]); @@ -144,17 +141,17 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) .get('///providers/Microsoft.Authorization/roleDefinitions') .query(true) - .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ + .reply(200, {"value":[{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","name":"7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/keys/backup/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Backup User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17","name":"33413926-3206-4cdd-b39a-83574fe37a17","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Encryption User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c","name":"21dbd100-6940-42c2-9190-5d6cb909625c","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/keys/release/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Service Release User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","name":"2c18b078-7c48-4d3a-af88-5a3a1b3f82b3","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Auditor","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4","name":"4bd23610-cdcf-4971-bdee-bdc562cc28e4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleAssignments/delete/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Policy Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b","name":"21dbd100-6940-42c2-9190-5d6cb909625b","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/keys/read/action","Microsoft.KeyVault/managedHsm/keys/write/action","Microsoft.KeyVault/managedHsm/keys/delete","Microsoft.KeyVault/managedHsm/keys/create","Microsoft.KeyVault/managedHsm/keys/import/action","Microsoft.KeyVault/managedHsm/keys/release/action","Microsoft.KeyVault/managedHsm/keys/backup/action","Microsoft.KeyVault/managedHsm/keys/restore/action","Microsoft.KeyVault/managedHsm/keys/encrypt/action","Microsoft.KeyVault/managedHsm/keys/decrypt/action","Microsoft.KeyVault/managedHsm/keys/wrap/action","Microsoft.KeyVault/managedHsm/keys/unwrap/action","Microsoft.KeyVault/managedHsm/keys/sign/action","Microsoft.KeyVault/managedHsm/keys/verify/action","Microsoft.KeyVault/managedHsm/rng/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto User","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778","name":"515eb02d-2335-4d2d-92f2-b1cbdf9c3778","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action","Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete","Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action","Microsoft.KeyVault/managedHsm/keys/export/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Crypto Officer","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"},{"id":"Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4","name":"a290e904-7015-4bba-90c8-60543313cdb4","properties":{"assignableScopes":["/"],"description":"","permissions":[{"actions":[],"dataActions":["Microsoft.KeyVault/managedHsm/roleAssignments/delete/action","Microsoft.KeyVault/managedHsm/roleAssignments/read/action","Microsoft.KeyVault/managedHsm/roleAssignments/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/read/action","Microsoft.KeyVault/managedHsm/roleDefinitions/write/action","Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action","Microsoft.KeyVault/managedHsm/securitydomain/download/action","Microsoft.KeyVault/managedHsm/securitydomain/download/read","Microsoft.KeyVault/managedHsm/securitydomain/upload/action","Microsoft.KeyVault/managedHsm/securitydomain/upload/read","Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read","Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/restore/start/action","Microsoft.KeyVault/managedHsm/backup/status/action","Microsoft.KeyVault/managedHsm/restore/status/action"],"notActions":[],"notDataActions":[]}],"roleName":"Managed HSM Administrator","type":"AKVBuiltInRole"},"type":"Microsoft.Authorization/roleDefinitions"}]}, [ 'x-frame-options', 'SAMEORIGIN', 'x-ms-request-id', - 'b273566e-a866-11eb-9b8e-000d3a21d54b', + 'b3e336c8-c7af-11eb-a0e7-000d3ae39d43', 'content-type', 'application/json; charset=utf-8', 'x-ms-keyvault-region', - 'westeurope', + 'eastus2', 'content-length', - '6590', + '6648', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', @@ -164,17 +161,17 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'x-content-type-options', 'nosniff', 'x-ms-build-version', - '1.0.20210407-3-27236ed1-develop', + '1.0.20210520-1-d6634624-develop', 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=72.68.182.20;act_addr_fam=Ipv4;', + 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=Ipv4;', 'x-ms-server-latency', - '1' + '2' ]); nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams":true}) - .put('///providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4', {"properties":{"roleName":"a290e904-7015-4bba-90c8-60543313cdb4","type":"CustomRole","permissions":[{"actions":[],"notActions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action"],"notDataActions":[]},{"actions":[],"notActions":[],"dataActions":[],"notDataActions":["Microsoft.KeyVault/managedHsm/keys/encrypt/action"]}],"assignableScopes":["/"]}}) + .put('///providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4', {"properties":{"roleName":"Managed HSM Administrator","type":"CustomRole","permissions":[{"actions":[],"notActions":[],"dataActions":["Microsoft.KeyVault/managedHsm/backup/start/action","Microsoft.KeyVault/managedHsm/backup/status/action"],"notDataActions":[]},{"actions":[],"notActions":[],"dataActions":[],"notDataActions":["Microsoft.KeyVault/managedHsm/keys/encrypt/action"]}],"assignableScopes":["/"]}}) .query(true) - .reply(400, {"error":{"code":"BadParameter","message":"Cannot re-use the name/GUID matching that of a built-in role. Please use a unique role ID. (Activity ID: b2829304-a866-11eb-9b8e-000d3a21d54b)"}}, [ + .reply(400, {"error":{"code":"BadParameter","message":"Cannot re-use the name/GUID matching that of a built-in role. Please use a unique role ID. (Activity ID: b3ef23b6-c7af-11eb-a0e7-000d3ae39d43)"}}, [ 'content-type', 'application/json; charset=utf-8', 'x-ms-server-latency', @@ -186,7 +183,7 @@ nock('https://azure_managedhsm.managedhsm.azure.net:443', {"encodedQueryParams": 'content-length', '188', 'x-ms-request-id', - 'b2829304-a866-11eb-9b8e-000d3a21d54b', + 'b3ef23b6-c7af-11eb-a0e7-000d3ae39d43', 'strict-transport-security', 'max-age=31536000; includeSubDomains', 'content-security-policy', diff --git a/sdk/keyvault/keyvault-admin/review/keyvault-admin.api.md b/sdk/keyvault/keyvault-admin/review/keyvault-admin.api.md index 2d7c53970d51..dfcc077593f7 100644 --- a/sdk/keyvault/keyvault-admin/review/keyvault-admin.api.md +++ b/sdk/keyvault/keyvault-admin/review/keyvault-admin.api.md @@ -39,8 +39,8 @@ export interface GetRoleDefinitionOptions extends coreHttp.OperationOptions { export class KeyVaultAccessControlClient { constructor(vaultUrl: string, credential: TokenCredential, options?: AccessControlClientOptions); createRoleAssignment(roleScope: KeyVaultRoleScope, name: string, roleDefinitionId: string, principalId: string, options?: CreateRoleAssignmentOptions): Promise; - deleteRoleAssignment(roleScope: KeyVaultRoleScope, name: string, options?: DeleteRoleAssignmentOptions): Promise; - deleteRoleDefinition(roleScope: KeyVaultRoleScope, name: string, options?: DeleteRoleDefinitionOptions): Promise; + deleteRoleAssignment(roleScope: KeyVaultRoleScope, name: string, options?: DeleteRoleAssignmentOptions): Promise; + deleteRoleDefinition(roleScope: KeyVaultRoleScope, name: string, options?: DeleteRoleDefinitionOptions): Promise; getRoleAssignment(roleScope: KeyVaultRoleScope, name: string, options?: GetRoleAssignmentOptions): Promise; getRoleDefinition(roleScope: KeyVaultRoleScope, name: string, options?: GetRoleDefinitionOptions): Promise; listRoleAssignments(roleScope: KeyVaultRoleScope, options?: ListRoleAssignmentsOptions): PagedAsyncIterableIterator; diff --git a/sdk/keyvault/keyvault-admin/samples-dev/accessControlHelloWorld.ts b/sdk/keyvault/keyvault-admin/samples-dev/accessControlHelloWorld.ts index fb87a6a5ffd8..59413e082932 100644 --- a/sdk/keyvault/keyvault-admin/samples-dev/accessControlHelloWorld.ts +++ b/sdk/keyvault/keyvault-admin/samples-dev/accessControlHelloWorld.ts @@ -67,11 +67,9 @@ export async function main(): Promise { assignment = await client.getRoleAssignment(globalScope, roleAssignmentName); console.log(assignment); - assignment = await client.deleteRoleAssignment(globalScope, roleAssignmentName); - console.log(assignment); + await client.deleteRoleAssignment(globalScope, roleAssignmentName); - roleDefinition = await client.deleteRoleDefinition(globalScope, roleDefinition.name); - console.log(roleDefinition); + await client.deleteRoleDefinition(globalScope, roleDefinition.name); } main().catch((err) => { diff --git a/sdk/keyvault/keyvault-admin/samples/v4/javascript/accessControlHelloWorld.js b/sdk/keyvault/keyvault-admin/samples/v4/javascript/accessControlHelloWorld.js index efb2af046273..cbb815e50704 100644 --- a/sdk/keyvault/keyvault-admin/samples/v4/javascript/accessControlHelloWorld.js +++ b/sdk/keyvault/keyvault-admin/samples/v4/javascript/accessControlHelloWorld.js @@ -66,11 +66,9 @@ async function main() { assignment = await client.getRoleAssignment(globalScope, roleAssignmentName); console.log(assignment); - assignment = await client.deleteRoleAssignment(globalScope, roleAssignmentName); - console.log(assignment); + await client.deleteRoleAssignment(globalScope, roleAssignmentName); - roleDefinition = await client.deleteRoleDefinition(globalScope, roleDefinition.name); - console.log(roleDefinition); + await client.deleteRoleDefinition(globalScope, roleDefinition.name); } main().catch((err) => { diff --git a/sdk/keyvault/keyvault-admin/samples/v4/typescript/src/accessControlHelloWorld.ts b/sdk/keyvault/keyvault-admin/samples/v4/typescript/src/accessControlHelloWorld.ts index fb87a6a5ffd8..59413e082932 100644 --- a/sdk/keyvault/keyvault-admin/samples/v4/typescript/src/accessControlHelloWorld.ts +++ b/sdk/keyvault/keyvault-admin/samples/v4/typescript/src/accessControlHelloWorld.ts @@ -67,11 +67,9 @@ export async function main(): Promise { assignment = await client.getRoleAssignment(globalScope, roleAssignmentName); console.log(assignment); - assignment = await client.deleteRoleAssignment(globalScope, roleAssignmentName); - console.log(assignment); + await client.deleteRoleAssignment(globalScope, roleAssignmentName); - roleDefinition = await client.deleteRoleDefinition(globalScope, roleDefinition.name); - console.log(roleDefinition); + await client.deleteRoleDefinition(globalScope, roleDefinition.name); } main().catch((err) => { diff --git a/sdk/keyvault/keyvault-admin/src/accessControlClient.ts b/sdk/keyvault/keyvault-admin/src/accessControlClient.ts index 85b9e697f07e..e6ba916c933f 100644 --- a/sdk/keyvault/keyvault-admin/src/accessControlClient.ts +++ b/sdk/keyvault/keyvault-admin/src/accessControlClient.ts @@ -178,15 +178,15 @@ export class KeyVaultAccessControlClient { roleScope: KeyVaultRoleScope, name: string, options: DeleteRoleAssignmentOptions = {} - ): Promise { + ): Promise { return withTrace("deleteRoleAssignment", options, async (updatedOptions) => { - const response = await this.client.roleAssignments.delete( - this.vaultUrl, - roleScope, - name, - updatedOptions - ); - return mappings.roleAssignment.generatedToPublic(response); + try { + await this.client.roleAssignments.delete(this.vaultUrl, roleScope, name, updatedOptions); + } catch (error) { + if (error.statusCode !== 404) { + throw error; + } + } }); } @@ -482,9 +482,8 @@ export class KeyVaultAccessControlClient { * Example usage: * ```ts * const client = new KeyVaultAccessControlClient(url, credentials); - * const roleDefinition = await client.upsertRoleDefintion("/", "23b8bb1a-39c0-4c89-a85b-dd3c99273a8a", []); - * const deletedRoleDefinition = await client.deleteRoleDefinition("/", roleDefinition.name); - * console.log(deletedRoleDefinition); + * const roleDefinition = await client.setRoleDefinition("/", "23b8bb1a-39c0-4c89-a85b-dd3c99273a8a", []); + * await client.deleteRoleDefinition("/", roleDefinition.name); * ``` * @param roleScope - The scope of the role definition. * @param name - The name of the role definition to delete. @@ -494,15 +493,15 @@ export class KeyVaultAccessControlClient { roleScope: KeyVaultRoleScope, name: string, options: DeleteRoleDefinitionOptions = {} - ): Promise { + ): Promise { return withTrace("deleteRoleDefinition", options, async (updatedOptions) => { - const response = await this.client.roleDefinitions.delete( - this.vaultUrl, - roleScope, - name, - updatedOptions - ); - return mappings.roleDefinition.generatedToPublic(response); + try { + await this.client.roleDefinitions.delete(this.vaultUrl, roleScope, name, updatedOptions); + } catch (error) { + if (error.statusCode !== 404) { + throw error; + } + } }); } } diff --git a/sdk/keyvault/keyvault-admin/test/public/accessControlClient.spec.ts b/sdk/keyvault/keyvault-admin/test/public/accessControlClient.spec.ts index f39e77e38750..3e08fe810742 100644 --- a/sdk/keyvault/keyvault-admin/test/public/accessControlClient.spec.ts +++ b/sdk/keyvault/keyvault-admin/test/public/accessControlClient.spec.ts @@ -13,7 +13,7 @@ import { KnownKeyVaultDataAction } from "../../src"; import { authenticate } from "../utils/authentication"; -import { setTracer, TestTracer } from "@azure/core-tracing"; +import { supportsTracing } from "../../../keyvault-common/test/utils/supportsTracing"; describe("KeyVaultAccessControlClient", () => { let client: KeyVaultAccessControlClient; @@ -32,18 +32,6 @@ describe("KeyVaultAccessControlClient", () => { await recorder.stop(); }); - it("supports tracing", async function() { - const tracer = new TestTracer(); - setTracer(tracer); - await client.listRoleAssignments(globalScope).next(); - - const span = tracer - .getKnownSpans() - .find((s) => s.name.includes("KeyVaultAccessControlClient.listRoleAssignments")); - assert.exists(span); - assert.isTrue(span!.endCalled); - }); - describe("role definitions", function() { const permissions: KeyVaultPermission[] = [ { @@ -57,7 +45,7 @@ describe("KeyVaultAccessControlClient", () => { } ]; - it("listRoleDefinitions", async function() { + it("can list role definitions", async function() { const expectedType = "Microsoft.Authorization/roleDefinitions"; let receivedRoles: string[] = []; @@ -94,7 +82,7 @@ describe("KeyVaultAccessControlClient", () => { }); }); - it("can create, update, and delete a role definition (happy path)", async function() { + it("can create, update, and delete a role definition", async function() { const name = generateFakeUUID(); const roleName = "custom role definition name"; const description = "custom role description"; @@ -193,79 +181,123 @@ describe("KeyVaultAccessControlClient", () => { await assert.isRejected(client.deleteRoleDefinition(globalScope, builtInDefinition.name)); }); - it("errors when deleting a non-existent role definition", async function() { - await assert.isRejected(client.deleteRoleDefinition(globalScope, "foobar")); + it("succeeds when deleting a non-existent role definition", async function() { + await assert.isFulfilled( + client.deleteRoleDefinition(globalScope, "foobar"), + "delete should ignore 404s" + ); }); }); - }); - it("listRoleAssignments", async function() { - const expectedType = "Microsoft.Authorization/roleAssignments"; - let receivedRoles: string[] = []; - - for await (const roleAssignment of client.listRoleAssignments(globalScope)) { - // Each role assignment will have the shape of: - // - // { - // id: '/providers/Microsoft.Authorization/roleAssignments/', - // name: '', - // type: '', - // // ... - // } - // - assert.equal(roleAssignment.kind, expectedType); - receivedRoles.push(roleAssignment.name); - } - - // Roles might change - assert.ok(receivedRoles.length); + it("supports tracing", async function() { + await supportsTracing( + async (tracingOptions) => { + try { + await client.getRoleDefinition(globalScope, "Managed HSM Crypto Auditor", { + tracingOptions + }); + } catch (error) { + if (error.statusCode !== 404) { + throw error; + } + } + }, + ["Azure.KeyVault.Admin.KeyVaultAccessControlClient.getRoleDefinition"] + ); + }); }); - it("createRoleAssignment, getRoleAssignment and deleteRoleAssignment", async function() { - const assignmentName = generateFakeUUID(); - const roleName = "Managed HSM Crypto Auditor"; + describe("role assignments", async function() { + it("can list role assignments", async function() { + const expectedType = "Microsoft.Authorization/roleAssignments"; + let receivedRoles: string[] = []; + + for await (const roleAssignment of client.listRoleAssignments(globalScope)) { + // Each role assignment will have the shape of: + // + // { + // id: '/providers/Microsoft.Authorization/roleAssignments/', + // name: '', + // type: '', + // // ... + // } + // + assert.equal(roleAssignment.kind, expectedType); + receivedRoles.push(roleAssignment.name); + } + + // Roles might change + assert.ok(receivedRoles.length); + }); + + it("can create, read, and delete role assignments", async function() { + const assignmentName = generateFakeUUID(); + const roleName = "Managed HSM Crypto Auditor"; - let roleDefinition: KeyVaultRoleDefinition | undefined; + let roleDefinition: KeyVaultRoleDefinition | undefined; + + // Find the right role definition to use + for await (const definition of client.listRoleDefinitions(globalScope)) { + if (definition.roleName === roleName) { + roleDefinition = definition; + } + } - // Find the right role definition to use - for await (const definition of client.listRoleDefinitions(globalScope)) { - if (definition.roleName === roleName) { - roleDefinition = definition; + if (!roleDefinition) { + assert.fail(`Unable to find role definition with name ${roleName}`); } - } - - if (!roleDefinition) { - assert.fail(`Unable to find role definition with name ${roleName}`); - } - - let assignment = await client.createRoleAssignment( - globalScope, - assignmentName, - roleDefinition.id, - env.CLIENT_OBJECT_ID - ); - assert.equal(assignment.name, assignmentName); - assert.equal(assignment.properties?.roleDefinitionId, roleDefinition.id); - assert.equal(assignment.properties?.principalId, env.CLIENT_OBJECT_ID); - assert.equal(assignment.properties.scope, globalScope); - - assignment = await client.getRoleAssignment(globalScope, assignmentName); - assert.equal(assignment.name, assignmentName); - assert.equal(assignment.properties?.roleDefinitionId, roleDefinition.id); - assert.equal(assignment.properties?.principalId, env.CLIENT_OBJECT_ID); - assert.equal(assignment.properties.scope, globalScope); - - assignment = await client.deleteRoleAssignment(globalScope, assignmentName); - assert.equal(assignment.name, assignmentName); - assert.equal(assignment.properties?.roleDefinitionId, roleDefinition.id); - assert.equal(assignment.properties?.principalId, env.CLIENT_OBJECT_ID); - - let error: Error; - try { - await client.getRoleAssignment(globalScope, generateFakeUUID()); - } catch (e) { - error = e; - } - assert.ok(error!.message.match(/Requested role assignment not found/)); + + let assignment = await client.createRoleAssignment( + globalScope, + assignmentName, + roleDefinition.id, + env.CLIENT_OBJECT_ID + ); + assert.equal(assignment.name, assignmentName); + assert.equal(assignment.properties?.roleDefinitionId, roleDefinition.id); + assert.equal(assignment.properties?.principalId, env.CLIENT_OBJECT_ID); + assert.equal(assignment.properties.scope, globalScope); + + await client.getRoleAssignment(globalScope, assignmentName); + assert.equal(assignment.name, assignmentName); + assert.equal(assignment.properties?.roleDefinitionId, roleDefinition.id); + assert.equal(assignment.properties?.principalId, env.CLIENT_OBJECT_ID); + assert.equal(assignment.properties.scope, globalScope); + + await client.deleteRoleAssignment(globalScope, assignmentName); + assert.equal(assignment.name, assignmentName); + assert.equal(assignment.properties?.roleDefinitionId, roleDefinition.id); + assert.equal(assignment.properties?.principalId, env.CLIENT_OBJECT_ID); + + let error: Error; + try { + await client.getRoleAssignment(globalScope, generateFakeUUID()); + } catch (e) { + error = e; + } + assert.ok(error!.message.match(/Requested role assignment not found/)); + }); + + it("succeeds when deleting a role assignment that doesn't exist", async () => { + await assert.isFulfilled( + client.deleteRoleAssignment(globalScope, generateFakeUUID()), + "delete should ignore 404s" + ); + }); + + it("supports tracing", async function() { + await supportsTracing( + async (tracingOptions) => { + try { + await client.getRoleAssignment(globalScope, generateFakeUUID(), { tracingOptions }); + } catch (err) { + if (err.statusCode !== 404) { + throw err; + } + } + }, + ["Azure.KeyVault.Admin.KeyVaultAccessControlClient.getRoleAssignment"] + ); + }); }); });