[Groonga-commit] groonga/gcs [master] Add more test for cs-describe-domain

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 6日 (月) 14:40:30 JST


SHIMODA Hiroshi	2012-08-06 14:40:30 +0900 (Mon, 06 Aug 2012)

  New Revision: 4dbf9e565fb17567f759e6c723e5e5a3c541af12
  https://github.com/groonga/gcs/commit/4dbf9e565fb17567f759e6c723e5e5a3c541af12

  Log:
    Add more test for cs-describe-domain

  Modified files:
    test/cs-commands.test.js

  Modified: test/cs-commands.test.js (+29 -2)
===================================================================
--- test/cs-commands.test.js    2012-08-06 14:33:26 +0900 (b2b1749)
+++ test/cs-commands.test.js    2012-08-06 14:40:30 +0900 (4c8e65d)
@@ -106,10 +106,37 @@ suite('cs-describe-domain', function() {
     ].join('\n');
   }
 
+  test('describe one', function(done) {
+    utils
+      .run('cs-create-domain',
+           '--domain-name', 'domain2',
+           '--database-path', temporaryDatabase.path)
+      .run('cs-create-domain',
+           '--domain-name', 'domain1',
+           '--database-path', temporaryDatabase.path)
+      .run('cs-describe-domain',
+           '--domain-name', 'domain1',
+           '--database-path', temporaryDatabase.path)
+      .next(function(result) {
+        assert.equal(result.code, 0);
+        assert.include(result.output.stdout,
+                       report(new Domain('domain1', context), 'localhost'));
+
+        done();
+      })
+      .error(function(e) {
+        done(e);
+      });
+  });
+
   test('describe all', function(done) {
-    new Domain('domain2', context).createSync();
-    new Domain('domain1', context).createSync();
     utils
+      .run('cs-create-domain',
+           '--domain-name', 'domain2',
+           '--database-path', temporaryDatabase.path)
+      .run('cs-create-domain',
+           '--domain-name', 'domain1',
+           '--database-path', temporaryDatabase.path)
       .run('cs-describe-domain',
            '--show-all',
            '--database-path', temporaryDatabase.path)
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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