Skip to content

Commit

Permalink
Delete domain after it is created via the configuration API
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jul 6, 2012
1 parent 7553603 commit 3cef453
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/api-configuration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,15 @@ suite('Configuration API', function() {
});

test('Get, Action=DeleteDomain', function(done) {
utils.loadDumpFile(database, __dirname + '/fixture/companies/ddl.grn');
var path = '/?DomainName=companies&Action=DeleteDomain&Version=2011-02-01';
utils.get(path, {
utils.get('/?DomainName=companies&Action=CreateDomain&Version=2011-02-01', {
'Host': 'cloudsearch.localhost'
})
.next(function() {
var path = '/?DomainName=companies&Action=DeleteDomain&Version=2011-02-01';
return utils.get(path, {
'Host': 'cloudsearch.localhost'
});
})
.next(function(response) {
var expected = {
statusCode: 200,
Expand Down

0 comments on commit 3cef453

Please sign in to comment.