{"_id":"@2iq/aws-sdk-nock-responses","_rev":"4-76618e6141903566041cde1a564cfb85","name":"@2iq/aws-sdk-nock-responses","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@2iq/aws-sdk-nock-responses","description":"Collection of nock responses for aws-sdk.","version":"0.0.1","main":"index.js","publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/2iq/aws-sdk-nock-responses.git"},"author":{"name":"2iQ Research GmbH"},"license":"MIT","bugs":{"url":"https://github.com/2iq/aws-sdk-nock-responses/issues"},"homepage":"https://github.com/2iq/aws-sdk-nock-responses#readme","dependencies":{"nock":"^13.0.0"},"gitHead":"2aff8fe9b13635a6b9ec394f46e27ca911e43c5b","_id":"@2iq/aws-sdk-nock-responses@0.0.1","_nodeVersion":"15.8.0","_npmVersion":"7.5.3","dist":{"integrity":"sha512-Ho0WeHUt6EZmw8LYNxytbP0hCz02XTcov6HH7DUKt4VP0Qv6VM6Va2jKL0+nbNg/iYxunZNHLyeW7TVx1QPiCQ==","shasum":"ddfe3ac9ef9118a9475d720e2f755dbb8a5c01b3","tarball":"https://registry.npmjs.org/@2iq/aws-sdk-nock-responses/-/aws-sdk-nock-responses-0.0.1.tgz","fileCount":5,"unpackedSize":6956,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgI7DPCRA9TVsSAnZWagAAYq8P/3GgNiYWTGEhoqaHabBR\nYRHr9/95w9rNzio/ex+p+QwwKyefpCsm+3/frvsfmpZccPKBT56A0KqtwODh\nrL6YodcVEL0cEIgBW7EyQi3q2JQGExeGNjLn3aGOS+BR1Ls1G8DDh1crfBQW\niC/4QM0LxHR+11mJCfsiPtoWUzlYk4hq9ZbEd4RbEGyAFTjd11shmM60QhCx\nbNljQLRk8GjhRI+rvFly9nR6POSVf4fwSw3G+GrD31oALFf+BnNcSDG0X0o5\no+Udj6LvaRiWlv5pzqDtm91FIkJhUR4fpjh/ywJfJSkyzpWx/7kkwnc4UOrK\ny3Fdp3ytK9artZ+7YEmBcDqu4qExVc43Hh6sSjP7hRxxM53aau1ehhcDGmus\nAQ9nwepsfpaCCHeVd2sGHZ39QaNI7INUWSMURfW00nzGAQWOW4sf2gLEwG1V\nOdq1LZ/Sdf+81Rj2YiOkB4BY6e2S0GhjwsM7un+6RbM3ZsWfSmxyxCGOupPZ\nSlQXkmaRhHhrGWKMWvRFh8/Y3ZK1pMXdBgqoW+o+A3DjKHyW/4xPPPRTjmku\npeJfXXM+FQqdaznc7lfUx6sQkT/xMlr+bSvq5rHB/xV68ACmzEdtADNItlVB\n7BLJdW0lpSXhXJBrcswk+hUDJxgZSfNSzsG30BXLI2lKyA01EaNAaIy2IAh/\nUZTE\r\n=tIj1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEYof2mMd/HufxSZDxEf6RNtzLsDDRK9NdNjTtia6fm/AiEAiOKq2P+ZQyZIaz5cJ0YOBSqrOk5J35zA1k61+3iPAjM="}]},"_npmUser":{"name":"walery","email":"walery@2iqresearch.com"},"directories":{},"maintainers":[{"name":"walery","email":"walery@2iqresearch.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-sdk-nock-responses_0.0.1_1612951758534_0.1262649349878393"},"_hasShrinkwrap":false},"0.0.2":{"name":"@2iq/aws-sdk-nock-responses","description":"Collection of nock responses for aws-sdk.","version":"0.0.2","main":"index.js","publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/2iq/aws-sdk-nock-responses.git"},"author":{"name":"2iQ Research GmbH"},"license":"MIT","bugs":{"url":"https://github.com/2iq/aws-sdk-nock-responses/issues"},"homepage":"https://github.com/2iq/aws-sdk-nock-responses#readme","dependencies":{"nock":"^13.0.0"},"gitHead":"59410ca4e158efc629ffe71ce5885f4c70a84d2f","_id":"@2iq/aws-sdk-nock-responses@0.0.2","_nodeVersion":"15.8.0","_npmVersion":"7.5.3","dist":{"integrity":"sha512-Ifdo9boTPt23S2Wa7mupXOUCgsFhjBvHBImlS4OFiZld69jPk2pyR7nOfeewnumfDd9U4BpOTb3bkB2VQor8sQ==","shasum":"e02d73c920adca731df4a4347609bb0c8b16f349","tarball":"https://registry.npmjs.org/@2iq/aws-sdk-nock-responses/-/aws-sdk-nock-responses-0.0.2.tgz","fileCount":5,"unpackedSize":6956,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgI92DCRA9TVsSAnZWagAAQHAQAJnmHElNmowgZSHNjsWm\ni6Q8aXH8P0dt7rRh/8tHfX+L/ajNPMYuIWowBYa2E28ztdRiiAA5/ieVR6MO\nMJ24+jeihIigTFaLn4qVxYCdTDsLDm9wzE2v5gtSyxu8nS3EnCoL2bQPh6Ft\n5+rlSpyYVA08gVOIEf32rvlj43/XloMCCro4oZuQChnmtAkOYDDrvOyYoKGd\nHNxS0X7NQrIaHuCs0BfvMzlsAp5Xa8J5+0Qte/onEWik5SJAhAfmIAeumX6F\nxYcmVw+bPDkKjRPive6fpod6G8BpW4ZAUoQ6e07mcUqopa7YeCJHX8KUNKJR\nO8IunexdXk6gp2p9bjRsCB5Sh8GzMyufswAKZLc7sH7382OrOsiMM/OdsivI\n0cjSACbaxKng0a0MfQQs0KYoIbBTxnXoslG1nxnt703KYipd6sPpAtsjXHpS\nztemw9vzGcVyrHyZqRI99jH3vTBWDP3uRq9M43LFtRfiSfTWG2EGPTZ4Ol7d\n6PCTdOHlmwhH+iuAWODkG9MjD6mf0XYpmnMeGGOXVk8TxBuoVswGktIL/2fc\n7wNXrZB3Mo05ADmD77aoYpMRFUu1C3O+nj3qfnhI1VFNWhN9AWbGKzQj1G+R\nWizry41r6vagr2UMGjwy0clvCMGA/azjxXBeGOzISl5exdJym2bS6KFBMQfa\n7HX9\r\n=D6L/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHja5lwHYDn6SpCsgOM7NcfjESY7jmqI7Ut9vKBEV5SZAiA7DFz7rDkSd3VBxaWMzNXHzoJelPi8olSPnN8Zv6Fpeg=="}]},"_npmUser":{"name":"walery","email":"walery@2iqresearch.com"},"directories":{},"maintainers":[{"name":"walery","email":"walery@2iqresearch.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-sdk-nock-responses_0.0.2_1612963203468_0.7430060901912185"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-10T10:09:18.307Z","0.0.1":"2021-02-10T10:09:18.685Z","modified":"2022-05-19T07:59:59.595Z","0.0.2":"2021-02-10T13:20:03.615Z"},"maintainers":[{"email":"shine_08enzymes@icloud.com","name":"rabiator"}],"description":"Collection of nock responses for aws-sdk.","homepage":"https://github.com/2iq/aws-sdk-nock-responses#readme","repository":{"type":"git","url":"git+https://github.com/2iq/aws-sdk-nock-responses.git"},"author":{"name":"2iQ Research GmbH"},"bugs":{"url":"https://github.com/2iq/aws-sdk-nock-responses/issues"},"license":"MIT","readme":"# aws-sdk-nock-responses\n\nCollection of nock responses for aws-sdk.\n\n## Quickstart\n\nAdd the `@2iq/aws-sdk-nock-responses` to devDependencies:\n\n```js\n{\n  // ...\n  \"devDependencies\": {\n    // ...\n    \"@2iq/aws-sdk-nock-responses\": \"0.0.1\",\n    // ...\n  }\n  // ...\n}\n```\n\nUse the lib ([ava] example):\n\n```js\nconst awsApiMock = require('@2iq/aws-sdk-nock-responses');  // 1️⃣\n\nconst underTest = require('..');  // presumed we are in `test` folder\n\ntest('should create ecr repo if not existent', t => {\n  awsApiMock.ecr.repoDoesNotExist();  // 2️⃣\n  awsApiMock.ecr.repoCreationSuccessful();  // 2️⃣\n  awsApiMock.ecr.lifecycleUpdateSuccessfull();  // 2️⃣\n\n  underTest.run();  // 3️⃣\n\n  t.true(awsApiMock.isDone());  // 4️⃣\n});\n```\n\n1️⃣ `require` the module  \n2️⃣ Stub AWS API responses  \n3️⃣ Run the code you want to test (code that calls the AWS API)  \n4️⃣ Assert that all calls to AWS API were called\n\n  [ava]: https://github.com/avajs/ava\n\n## Disclaimer\n\nWe created this module to avoid copy and paste of nock objects between test-files and projects.\nAs of now, it only contains responses that are required in our projects.\nThe customization of response (like setting own region or accountId) is not implemented if we don't need that in our test.\nIn that case, the values are hardcoded.\n\nContributions are welcome!\n","readmeFilename":"README.md"}