Navigation Menu

Skip to content

Commit

Permalink
Fix test of DeleteDomain action
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 2, 2012
1 parent 987da6d commit a8f2602
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/api-configuration.test.js
Expand Up @@ -267,15 +267,19 @@ suite('Configuration API', function() {
});

test('Get, Action=DeleteDomain', function(done) {
var domain;
utils
.get('/?DomainName=companies&Action=CreateDomain&Version=2011-02-01', {
'Host': 'cloudsearch.localhost'
})
.next(function() {
domain = new Domain('companies', context);
assert.isTrue(domain.exists());
})
.get('/?DomainName=companies&Action=DeleteDomain&Version=2011-02-01', {
'Host': 'cloudsearch.localhost'
})
.next(function(response) {
var domain = new Domain('companies', context);
assert.isFalse(domain.exists());

response = toParsedResponse(response);
Expand Down

0 comments on commit a8f2602

Please sign in to comment.