[Groonga-commit] groonga/gcs [master] Test index fields for gcs-describe-domain

Back to archive index

SHIMODA Hiroshi null+****@clear*****
Wed Aug 15 14:02:39 JST 2012


SHIMODA Hiroshi	2012-08-15 14:02:39 +0900 (Wed, 15 Aug 2012)

  New Revision: 42911a10a57b6b06a53e5402482c4ba9ae1b3fc1
  https://github.com/groonga/gcs/commit/42911a10a57b6b06a53e5402482c4ba9ae1b3fc1

  Log:
    Test index fields for gcs-describe-domain

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

  Modified: test/gcs-commands.test.js (+8 -2)
===================================================================
--- test/gcs-commands.test.js    2012-08-15 14:02:23 +0900 (6f96b8b)
+++ test/gcs-commands.test.js    2012-08-15 14:02:39 +0900 (f0e372b)
@@ -170,8 +170,10 @@ suite('gcs-describe-domain', function() {
   var hostPort = '127.0.0.1.xip.io:7575';
 
   test('describe one', function(done) {
-    new Domain('domain2', context).createSync();
-    new Domain('domain1', context).createSync();
+    var domain2 = new Domain('domain2', context).createSync();
+    var domain1 = new Domain('domain1', context).createSync();
+    var nameField = domain1.getIndexField('name').setType('text').createSync();
+    var ageField = domain1.getIndexField('age').setType('uint').createSync();
     utils
       .run('gcs-describe-domain',
            '--domain-name', 'domain1',
@@ -198,6 +200,10 @@ suite('gcs-describe-domain', function() {
                              '\n' +
                              'Fields:\n' +
                              '=======\n' +
+                             ageField.name + ' ' + ageField.state + ' ' +
+                               ageField.type + ' (' + ageField.options + ')\n' +
+                             nameField.name + ' ' + nameField.state + ' ' +
+                               nameField.type + ' (' + nameField.options + ')\n' +
                              '======================\n' });
 
         done();
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index