diff --git a/src/routes/test/apps-test.js b/src/routes/test/apps-test.js index 18f7a2765..d433be389 100644 --- a/src/routes/test/apps-test.js +++ b/src/routes/test/apps-test.js @@ -651,6 +651,9 @@ describe('Apps', function () { .get('/2013-04-01/hostedzone') .max(Infinity) .reply(200, js2xml('ListHostedZonesResponse', awsHostedZones, { arrayMap: { HostedZones: 'HostedZone'} }), { 'Content-Type': 'application/xml' }) + .get('/2013-04-01/hostedzone/ZONEID/rrset?maxitems=1&name=appslocation.localhost.&type=A') + .max(Infinity) + .reply(200, js2xml('ListResourceRecordSetsResponse', { ResourceRecordSets: [ ] }, { 'Content-Type': 'application/xml' })) .filteringRequestBody(function (unusedBody) { return ''; }) // strip out body .post('/2013-04-01/hostedzone/ZONEID/rrset/') .max(Infinity) @@ -1049,6 +1052,10 @@ describe('Apps', function () { .get('/2013-04-01/hostedzone') .max(Infinity) .reply(200, js2xml('ListHostedZonesResponse', awsHostedZones, { arrayMap: { HostedZones: 'HostedZone'} }), { 'Content-Type': 'application/xml' }) + .filteringPathRegEx(/name=[^&]*/, 'name=location') + .get('/2013-04-01/hostedzone/ZONEID/rrset?maxitems=1&name=location&type=A') + .max(Infinity) + .reply(200, js2xml('ListResourceRecordSetsResponse', { ResourceRecordSets: [ ] }, { 'Content-Type': 'application/xml' })) .filteringRequestBody(function (unusedBody) { return ''; }) // strip out body .post('/2013-04-01/hostedzone/ZONEID/rrset/') .max(Infinity) diff --git a/src/test/apptask-test.js b/src/test/apptask-test.js index b57ab13be..25f942b72 100644 --- a/src/test/apptask-test.js +++ b/src/test/apptask-test.js @@ -207,7 +207,10 @@ describe('apptask', function () { var awsScope = nock('http://localhost:5353') .get('/2013-04-01/hostedzone') + .times(2) .reply(200, js2xml('ListHostedZonesResponse', awsHostedZones, { arrayMap: { HostedZones: 'HostedZone'} })) + .get('/2013-04-01/hostedzone/ZONEID/rrset?maxitems=1&name=applocation.localhost.&type=A') + .reply(200, js2xml('ListResourceRecordSetsResponse', { ResourceRecordSets: [ ] }, { 'Content-Type': 'application/xml' })) .post('/2013-04-01/hostedzone/ZONEID/rrset/') .reply(200, js2xml('ChangeResourceRecordSetsResponse', { ChangeInfo: { Id: 'RRID', Status: 'INSYNC' } }));