[Groonga-commit] groonga/gcs [master] Specify base hostname too

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Oct 18 14:53:10 JST 2012


YUKI Hiroshi	2012-10-18 14:53:10 +0900 (Thu, 18 Oct 2012)

  New Revision: 26a38d7f8af0a8716fdd6878787f7c5e860ac7c8
  https://github.com/groonga/gcs/commit/26a38d7f8af0a8716fdd6878787f7c5e860ac7c8

  Log:
    Specify base hostname too

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

  Modified: test/gcs-commands.test.js (+27 -9)
===================================================================
--- test/gcs-commands.test.js    2012-10-18 14:15:24 +0900 (6a919a1)
+++ test/gcs-commands.test.js    2012-10-18 14:53:10 +0900 (619f4b0)
@@ -961,7 +961,9 @@ suite('gcs-post-sdf', function() {
       .run('gcs-post-sdf',
            '--domain-name', 'companies',
            '--source', batchFile,
-           '--endpoint', endpoint)
+           '--endpoint', endpoint,
+           '--port', utils.testPort,
+           '--base-host', 'localhost:' + utils.testPort)
       .next(function(result) {
         assert.deepEqual({ code:    result.code,
                            message: result.output.stdout },
@@ -988,11 +990,15 @@ suite('gcs-post-sdf', function() {
       .run('gcs-post-sdf',
            '--domain-name', 'companies',
            '--source', path.join(fixturesDirectory, 'add.sdf.json'),
-           '--endpoint', endpoint)
+           '--endpoint', endpoint,
+           '--port', utils.testPort,
+           '--base-host', 'localhost:' + utils.testPort)
       .run('gcs-post-sdf',
            '--domain-name', 'companies',
            '--source', batchFile,
-           '--endpoint', endpoint)
+           '--endpoint', endpoint,
+           '--port', utils.testPort,
+           '--base-host', 'localhost:' + utils.testPort)
       .next(function(result) {
         assert.deepEqual({ code:    result.code,
                            message: result.output.stdout },
@@ -1019,7 +1025,9 @@ suite('gcs-post-sdf', function() {
       .run('gcs-post-sdf',
            '--domain-name', 'companies',
            '--source', batchFile,
-           '--endpoint', endpoint)
+           '--endpoint', endpoint,
+           '--port', utils.testPort,
+           '--base-host', 'localhost:' + utils.testPort)
       .next(function(result) {
         assert.deepEqual({ code:    result.code,
                            message: result.output.stdout },
@@ -1052,7 +1060,9 @@ suite('gcs-post-sdf', function() {
     utils
       .run('gcs-post-sdf',
            '--domain-name', 'companies',
-           '--endpoint', endpoint)
+           '--endpoint', endpoint,
+           '--port', utils.testPort,
+           '--base-host', 'localhost:' + utils.testPort)
       .next(function(result) {
         assert.deepEqual({ code:    result.code,
                            message: result.output.stdout },
@@ -1073,7 +1083,9 @@ suite('gcs-post-sdf', function() {
       .run('gcs-post-sdf',
            '--domain-name', 'companies',
            '--source', batchFile,
-           '--endpoint', endpoint)
+           '--endpoint', endpoint,
+           '--port', utils.testPort,
+           '--base-host', 'localhost:' + utils.testPort)
       .next(function(result) {
         assert.deepEqual({ code:    result.code,
                            message: result.output.stdout },
@@ -1095,7 +1107,9 @@ suite('gcs-post-sdf', function() {
       .run('gcs-post-sdf',
            '--domain-name', 'companies',
            '--source', batchFile,
-           '--endpoint', endpoint)
+           '--endpoint', endpoint,
+           '--port', utils.testPort,
+           '--base-host', 'localhost:' + utils.testPort)
       .next(function(result) {
         assert.deepEqual({ code:    result.code,
                            message: result.output.stdout },
@@ -1114,7 +1128,9 @@ suite('gcs-post-sdf', function() {
     utils
       .run('gcs-post-sdf',
            '--domain-name', 'test',
-           '--endpoint', endpoint)
+           '--endpoint', endpoint,
+           '--port', utils.testPort,
+           '--base-host', 'localhost:' + utils.testPort)
       .next(function(result) {
         assertDomainNotExist(result, 'test');
         done();
@@ -1127,7 +1143,9 @@ suite('gcs-post-sdf', function() {
   test('post without domain', function(done) {
     utils
       .run('gcs-post-sdf',
-           '--endpoint', endpoint)
+           '--endpoint', endpoint,
+           '--port', utils.testPort,
+           '--base-host', 'localhost:' + utils.testPort)
       .next(function(result) {
         assertDomainNotSpecified(result);
         done();
-------------- next part --------------
HTML����������������������������...
Download 



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