[Groonga-commit] groonga/gcs [master] Delete domain after it is created via the configuration API

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 6日 (金) 14:36:54 JST


SHIMODA Hiroshi	2012-07-06 14:36:54 +0900 (Fri, 06 Jul 2012)

  New Revision: 3cef453cd7badfd862fc53fe15c24731d84c55b9
  https://github.com/groonga/gcs/commit/3cef453cd7badfd862fc53fe15c24731d84c55b9

  Log:
    Delete domain after it is created via the configuration API

  Modified files:
    test/api-configuration.test.js

  Modified: test/api-configuration.test.js (+7 -3)
===================================================================
--- test/api-configuration.test.js    2012-07-06 14:34:31 +0900 (f86e019)
+++ test/api-configuration.test.js    2012-07-06 14:36:54 +0900 (b4acf3a)
@@ -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,
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index