text: let nock = require('nock');
  
  module.exports.hash = "20918d3c870fa09352b095217252607c";
  
  module.exports.testInfo = {"uniqueName":{},"newDate":{}}
  
  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%2Fmanagement.core.windows.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',
    'd9dcaf36-d40d-423d-a1a5-4e0c42220800',
    'x-ms-ests-server',
    '2.1.11562.10 - EUS ProdSlices',
    'Set-Cookie',
    'fpc=AubVabojdJVHvZY0mJSQ0Yl12iTZDwAAAFeL-dcOAAAA; expires=Sun, 02-May-2021 22:03:40 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',
    'Fri, 02 Apr 2021 22:03:39 GMT',
    'Connection',
    'close',
    'Content-Length',
    '1361'
  ]);
  
  nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true})
    .get('/acr/v1/_catalog')
    .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"registry","Name":"catalog","Action":"*"}]}]}, [
    'Server',
    'openresty',
    'Date',
    'Fri, 02 Apr 2021 22:03:40 GMT',
    'Content-Type',
    'application/json; charset=utf-8',
    'Content-Length',
    '196',
    'Connection',
    'close',
    'Access-Control-Expose-Headers',
    'Docker-Content-Digest',
    'Access-Control-Expose-Headers',
    'WWW-Authenticate',
    'Access-Control-Expose-Headers',
    'Link',
    'Access-Control-Expose-Headers',
    'X-Ms-Correlation-Request-Id',
    'Docker-Distribution-Api-Version',
    'registry/2.0',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains',
    'Www-Authenticate',
    'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*",error="invalid_token"',
    'X-Content-Type-Options',
    'nosniff',
    'X-Ms-Correlation-Request-Id',
    'abf67c45-d51c-49c3-ad7c-f35017af74e6',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains'
  ]);
  
  nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true})
    .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token")
    .reply(200, {"refresh_token":"refresh_token"}, [
    'Server',
    'openresty',
    'Date',
    'Fri, 02 Apr 2021 22:03:40 GMT',
    'Content-Type',
    'application/json; charset=utf-8',
    'Transfer-Encoding',
    'chunked',
    'Connection',
    'close',
    'X-Ms-Correlation-Request-Id',
    '32deba0f-f87e-4e23-a6f3-6d00b50a2beb',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains'
  ]);
  
  nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true})
    .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=registry%3Acatalog%3A*")
    .reply(200, {"access_token":"access_token"}, [
    'Server',
    'openresty',
    'Date',
    'Fri, 02 Apr 2021 22:03:40 GMT',
    'Content-Type',
    'application/json; charset=utf-8',
    'Transfer-Encoding',
    'chunked',
    'Connection',
    'close',
    'X-Ms-Correlation-Request-Id',
    'e7982e92-8e1f-4cc6-9754-8aa7c82910f4',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains'
  ]);
  
  nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true})
    .get('/acr/v1/_catalog')
    .reply(200, {"repositories":["library/hello-world"]}, [
    'Server',
    'openresty',
    'Date',
    'Fri, 02 Apr 2021 22:03:41 GMT',
    'Content-Type',
    'application/json; charset=utf-8',
    'Content-Length',
    '41',
    'Connection',
    'close',
    'Access-Control-Expose-Headers',
    'Docker-Content-Digest',
    'Access-Control-Expose-Headers',
    'WWW-Authenticate',
    'Access-Control-Expose-Headers',
    'Link',
    'Access-Control-Expose-Headers',
    'X-Ms-Correlation-Request-Id',
    'Docker-Distribution-Api-Version',
    'registry/2.0',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'X-Ms-Correlation-Request-Id',
    '83e0223e-95b9-4564-a40d-20a55fffdc77',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains'
  ]);
  
  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%2Fmanagement.core.windows.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',
    'fa00b3c7-c95f-45df-98ef-661635570600',
    'x-ms-ests-server',
    '2.1.11562.10 - NCUS ProdSlices',
    'Set-Cookie',
    'fpc=AubVabojdJVHvZY0mJSQ0Yl12iTZEAAAAFeL-dcOAAAA; expires=Sun, 02-May-2021 22:03:41 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',
    'Fri, 02 Apr 2021 22:03:41 GMT',
    'Connection',
    'close',
    'Content-Length',
    '1361'
  ]);
  
  nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true})
    .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792')
    .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"metadata_read"}]}]}, [
    'Server',
    'openresty',
    'Date',
    'Fri, 02 Apr 2021 22:03:41 GMT',
    'Content-Type',
    'application/json; charset=utf-8',
    'Content-Length',
    '222',
    'Connection',
    'close',
    'Access-Control-Expose-Headers',
    'Docker-Content-Digest',
    'Access-Control-Expose-Headers',
    'WWW-Authenticate',
    'Access-Control-Expose-Headers',
    'Link',
    'Access-Control-Expose-Headers',
    'X-Ms-Correlation-Request-Id',
    'Docker-Distribution-Api-Version',
    'registry/2.0',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains',
    'Www-Authenticate',
    'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"',
    'X-Content-Type-Options',
    'nosniff',
    'X-Ms-Correlation-Request-Id',
    '9dbf95f4-4c53-4967-b810-b8bdfb56f5ff',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains'
  ]);
  
  nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true})
    .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token")
    .reply(200, {"refresh_token":"refresh_token"}, [
    'Server',
    'openresty',
    'Date',
    'Fri, 02 Apr 2021 22:03:42 GMT',
    'Content-Type',
    'application/json; charset=utf-8',
    'Transfer-Encoding',
    'chunked',
    'Connection',
    'close',
    'X-Ms-Correlation-Request-Id',
    'b20630c3-2b62-466f-855c-050ed7d24370',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains'
  ]);
  
  nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true})
    .post('/oauth2/token', "grant_type=refresh_token&service=myregistry.azurecr.io&refresh_token=refresh_token&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read")
    .reply(200, {"access_token":"access_token"}, [
    'Server',
    'openresty',
    'Date',
    'Fri, 02 Apr 2021 22:03:42 GMT',
    'Content-Type',
    'application/json; charset=utf-8',
    'Transfer-Encoding',
    'chunked',
    'Connection',
    'close',
    'X-Ms-Correlation-Request-Id',
    'd11b7b28-172c-42cc-9456-49a6c5d1dd30',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains'
  ]);
  
  nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true})
    .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792')
    .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792","imageSize":0,"createdTime":"2021-04-02T22:02:52.5006059Z","lastUpdateTime":"2021-04-02T22:02:52.5006059Z","architecture":"amd64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineDetails":"{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-04-02T20:09:40.8950004Z\",\"summary\":[{\"severity\":\"High\",\"count\":3},{\"severity\":\"Medium\",\"count\":8},{\"severity\":\"Low\",\"count\":0}]}}","quarantineState":"Passed"}}}, [
    'Server',
    'openresty',
    'Date',
    'Fri, 02 Apr 2021 22:03:42 GMT',
    'Content-Type',
    'application/json; charset=utf-8',
    'Content-Length',
    '828',
    'Connection',
    'close',
    'Access-Control-Expose-Headers',
    'Docker-Content-Digest',
    'Access-Control-Expose-Headers',
    'WWW-Authenticate',
    'Access-Control-Expose-Headers',
    'Link',
    'Access-Control-Expose-Headers',
    'X-Ms-Correlation-Request-Id',
    'Docker-Distribution-Api-Version',
    'registry/2.0',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'X-Ms-Correlation-Request-Id',
    '997a4620-ba5e-41c5-a960-45e105eda1b5',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains'
  ]);
  