text: let nock = require('nock');
  
  module.exports.testInfo = {"uniqueName":{},"newDate":{}}
  
  nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true})
    .post('/certificates/recoverCertificateName-canupdatecertificatewithrequestOptionstimeout-/create')
    .query(true)
    .reply(401, {"error":{"code":"Unauthorized","message":"Request is missing a Bearer or PoP token."}}, [
    'Cache-Control',
    'no-cache',
    'Pragma',
    'no-cache',
    'Content-Length',
    '87',
    'Content-Type',
    'application/json; charset=utf-8',
    'Expires',
    '-1',
    'Server',
    'Microsoft-IIS/10.0',
    'WWW-Authenticate',
    'Bearer authorization="https://login.windows.net/azure_tenant_id", resource="https://vault.azure.net"',
    'x-ms-keyvault-region',
    'westus',
    'x-ms-request-id',
    '60b44530-a5b2-47dd-80a1-00645e8d5659',
    'x-ms-keyvault-service-version',
    '1.1.0.891',
    'x-ms-keyvault-network-info',
    'addr=52.250.15.99;act_addr_fam=InterNetwork;',
    'X-AspNet-Version',
    '4.0.30319',
    'X-Powered-By',
    'ASP.NET',
    'Strict-Transport-Security',
    'max-age=31536000;includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'Date',
    'Thu, 09 Jan 2020 20:19:24 GMT'
  ]);
  
  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%2Fvault.azure.net%2F.default")
    .reply(200, {"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"access_token"}, [
    'Cache-Control',
    'no-cache, no-store',
    'Pragma',
    'no-cache',
    'Content-Type',
    'application/json; charset=utf-8',
    'Expires',
    '-1',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'x-ms-request-id',
    'ef5ca1e6-9f80-4de9-acd5-e043be3d6b00',
    'x-ms-ests-server',
    '2.1.9898.10 - WST ProdSlices',
    'P3P',
    'CP="DSP CUR OTPi IND OTRi ONL FIN"',
    'Set-Cookie',
    'fpc=Ap8MzOlaC8tMusGUVqaiUaU_aSJHAQAAAMyBqdUOAAAA; expires=Sat, 08-Feb-2020 20:19:25 GMT; path=/; secure; HttpOnly; SameSite=None',
    'Set-Cookie',
    'x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly',
    'Set-Cookie',
    'stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly',
    'Date',
    'Thu, 09 Jan 2020 20:19:24 GMT',
    'Content-Length',
    '1231'
  ]);
  
  nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true})
    .post('/certificates/recoverCertificateName-canupdatecertificatewithrequestOptionstimeout-/create', {"policy":{"key_props":{},"secret_props":{},"x509_props":{"subject":"cn=MyCert","sans":{}},"issuer":{"name":"Self"},"attributes":{}},"attributes":{}})
    .query(true)
    .reply(202, {"id":"https://keyvault_name.vault.azure.net/certificates/recoverCertificateName-canupdatecertificatewithrequestOptionstimeout-/pending","issuer":{"name":"Self"},"csr":"MIICoTCCAYkCAQAwETEPMA0GA1UEAxMGTXlDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsKUlddljKsDxXW0DA0FrvE4KhQNcWDpDHV1tQeJW7TdD1S30uhV0zxVRjvY7+5S4CCE8jF8Eyot677/9uEWpkB0zXeBaDggFjlSRcGpoRLujlVt31iKYWGMC5arEKuC7UUTqIMCUA1/Qn+mrmBHPvQoRWVc2iegGk/toc7j480yCHWACNjo/L7ADRfdRfkpRd9oR5FXDbhOoW25JHjaBreceA6h1vSM0Hvp4s10UVhAsgnKZ8TvvpO+LZHC1rBwwWsKeDbOQmrV5oOCJaxBknz36UJMrE9tJxUjp8SEZ9FZnJclclVy64cnsoiZM2dcRIUqAQa8j4HtVwYZN25tTiwIDAQABoEswSQYJKoZIhvcNAQkOMTwwOjAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAHgKhlvJEpdo9EZbNQjiKfWE0mCZfHCyphFM7P3ItcBvf0wpY+kNl6dd4nnQmPbnR2/r5FkIJV4XGhamaaCPA9ipgdUm1zbkCZvCQqXRQ/D4Q8ORmClgLXeSneP7g1FHwx0piognkIIVIRT/e1o8QuZueN/cJldb94pcjYPuXDEH3MMltsJ/dHDWVCC4+K7qTk0ghuIh8iIIgDc/MXmYIdfBvF6DcJnFtNi76xJO4dzR4zHCNdHn+sP1EVlRAnGNkK2LKEiZutqe0TIh2IONTw2yd8zWRnQFOWqW26tFJm85R84OcISjqqVSAoJbRZsJAenUoxQHzdKrBDyXaQ3TlxM=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.","request_id":"25fc826d41374100a71df85cca159a34"}, [
    'Cache-Control',
    'no-cache',
    'Pragma',
    'no-cache',
    'Content-Type',
    'application/json; charset=utf-8',
    'Expires',
    '-1',
    'Location',
    'https://keyvault_name.vault.azure.net/certificates/recoverCertificateName-canupdatecertificatewithrequestOptionstimeout-/pending?api-version=7.0&request_id=25fc826d41374100a71df85cca159a34',
    'Retry-After',
    '10',
    'Server',
    'Microsoft-IIS/10.0',
    'x-ms-keyvault-region',
    'westus',
    'x-ms-request-id',
    '2946dda2-fa4a-439d-b00c-cef651e98bb8',
    'x-ms-keyvault-service-version',
    '1.1.0.891',
    'x-ms-keyvault-network-info',
    'addr=52.250.15.99;act_addr_fam=InterNetwork;',
    'X-AspNet-Version',
    '4.0.30319',
    'X-Powered-By',
    'ASP.NET',
    'Strict-Transport-Security',
    'max-age=31536000;includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'Date',
    'Thu, 09 Jan 2020 20:19:25 GMT',
    'Content-Length',
    '1354'
  ]);
  
  nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true})
    .get('/certificates/recoverCertificateName-canupdatecertificatewithrequestOptionstimeout-/pending')
    .query(true)
    .reply(401, {"error":{"code":"Unauthorized","message":"Request is missing a Bearer or PoP token."}}, [
    'Cache-Control',
    'no-cache',
    'Pragma',
    'no-cache',
    'Content-Length',
    '87',
    'Content-Type',
    'application/json; charset=utf-8',
    'Expires',
    '-1',
    'Server',
    'Microsoft-IIS/10.0',
    'WWW-Authenticate',
    'Bearer authorization="https://login.windows.net/azure_tenant_id", resource="https://vault.azure.net"',
    'x-ms-keyvault-region',
    'westus',
    'x-ms-request-id',
    '3d300431-b003-4b17-9e81-400333d211e4',
    'x-ms-keyvault-service-version',
    '1.1.0.891',
    'x-ms-keyvault-network-info',
    'addr=52.250.15.99;act_addr_fam=InterNetwork;',
    'X-AspNet-Version',
    '4.0.30319',
    'X-Powered-By',
    'ASP.NET',
    'Strict-Transport-Security',
    'max-age=31536000;includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'Date',
    'Thu, 09 Jan 2020 20:19:25 GMT'
  ]);
  
  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%2Fvault.azure.net%2F.default")
    .reply(200, {"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"access_token"}, [
    'Cache-Control',
    'no-cache, no-store',
    'Pragma',
    'no-cache',
    'Content-Type',
    'application/json; charset=utf-8',
    'Expires',
    '-1',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'x-ms-request-id',
    '1f9c123d-5e4e-415d-8b74-007faa765800',
    'x-ms-ests-server',
    '2.1.9898.10 - WST ProdSlices',
    'P3P',
    'CP="DSP CUR OTPi IND OTRi ONL FIN"',
    'Set-Cookie',
    'fpc=Ap8MzOlaC8tMusGUVqaiUaU_aSJHAgAAAMyBqdUOAAAA; expires=Sat, 08-Feb-2020 20:19:26 GMT; path=/; secure; HttpOnly; SameSite=None',
    'Set-Cookie',
    'x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly',
    'Set-Cookie',
    'stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly',
    'Date',
    'Thu, 09 Jan 2020 20:19:25 GMT',
    'Content-Length',
    '1231'
  ]);
  
  nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true})
    .get('/certificates/recoverCertificateName-canupdatecertificatewithrequestOptionstimeout-/pending')
    .query(true)
    .reply(200, {"id":"https://keyvault_name.vault.azure.net/certificates/recoverCertificateName-canupdatecertificatewithrequestOptionstimeout-/pending","issuer":{"name":"Self"},"csr":"MIICoTCCAYkCAQAwETEPMA0GA1UEAxMGTXlDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsKUlddljKsDxXW0DA0FrvE4KhQNcWDpDHV1tQeJW7TdD1S30uhV0zxVRjvY7+5S4CCE8jF8Eyot677/9uEWpkB0zXeBaDggFjlSRcGpoRLujlVt31iKYWGMC5arEKuC7UUTqIMCUA1/Qn+mrmBHPvQoRWVc2iegGk/toc7j480yCHWACNjo/L7ADRfdRfkpRd9oR5FXDbhOoW25JHjaBreceA6h1vSM0Hvp4s10UVhAsgnKZ8TvvpO+LZHC1rBwwWsKeDbOQmrV5oOCJaxBknz36UJMrE9tJxUjp8SEZ9FZnJclclVy64cnsoiZM2dcRIUqAQa8j4HtVwYZN25tTiwIDAQABoEswSQYJKoZIhvcNAQkOMTwwOjAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAHgKhlvJEpdo9EZbNQjiKfWE0mCZfHCyphFM7P3ItcBvf0wpY+kNl6dd4nnQmPbnR2/r5FkIJV4XGhamaaCPA9ipgdUm1zbkCZvCQqXRQ/D4Q8ORmClgLXeSneP7g1FHwx0piognkIIVIRT/e1o8QuZueN/cJldb94pcjYPuXDEH3MMltsJ/dHDWVCC4+K7qTk0ghuIh8iIIgDc/MXmYIdfBvF6DcJnFtNi76xJO4dzR4zHCNdHn+sP1EVlRAnGNkK2LKEiZutqe0TIh2IONTw2yd8zWRnQFOWqW26tFJm85R84OcISjqqVSAoJbRZsJAenUoxQHzdKrBDyXaQ3TlxM=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some time based on the issuer provider. Please check again later.","request_id":"25fc826d41374100a71df85cca159a34"}, [
    'Cache-Control',
    'no-cache',
    'Pragma',
    'no-cache',
    'Content-Type',
    'application/json; charset=utf-8',
    'Expires',
    '-1',
    'Retry-After',
    '10',
    'Server',
    'Microsoft-IIS/10.0',
    'x-ms-keyvault-region',
    'westus',
    'x-ms-request-id',
    'fa259593-2fe8-46db-b337-960b8ec9c7b5',
    'x-ms-keyvault-service-version',
    '1.1.0.891',
    'x-ms-keyvault-network-info',
    'addr=52.250.15.99;act_addr_fam=InterNetwork;',
    'X-AspNet-Version',
    '4.0.30319',
    'X-Powered-By',
    'ASP.NET',
    'Strict-Transport-Security',
    'max-age=31536000;includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'Date',
    'Thu, 09 Jan 2020 20:19:25 GMT',
    'Content-Length',
    '1354'
  ]);
  