null+****@clear*****
null+****@clear*****
2012年 6月 28日 (木) 16:04:37 JST
Yoji SHIDARA 2012-06-28 16:04:37 +0900 (Thu, 28 Jun 2012) New Revision: 489b0e07b832982452bcf5cd07a8a689fb91f036 https://github.com/groonga/gcs/commit/489b0e07b832982452bcf5cd07a8a689fb91f036 Log: Change fake domain id to be more concrete Modified files: lib/api/2011-02-01/configuration.js test/api-batch.test.js test/api-configuration.test.js Modified: lib/api/2011-02-01/configuration.js (+1 -1) =================================================================== --- lib/api/2011-02-01/configuration.js 2012-06-28 15:31:06 +0900 (c73d9ec) +++ lib/api/2011-02-01/configuration.js 2012-06-28 16:04:37 +0900 (1ddb5c9) @@ -7,7 +7,7 @@ var dateFormat = require('dateformat'); exports.version = path.basename(__dirname); var XMLNS = 'http://cloudsearch.amazonaws.com/doc/2011-02-01'; -var FAKE_DOMAIN_ID = 'example'; +var FAKE_DOMAIN_ID = '00000000000000000000000000'; function createCommonErrorResponse(errorCode, message) { return '<?xml version="1.0"?>\n' + Modified: test/api-batch.test.js (+5 -5) =================================================================== --- test/api-batch.test.js 2012-06-28 15:31:06 +0900 (1e56898) +++ test/api-batch.test.js 2012-06-28 16:04:37 +0900 (21506fd) @@ -37,7 +37,7 @@ suite('documents/batch API', function() { utils.post(path, batch, { 'Content-Type': 'application/json', 'Content-Length': batch.length, - 'Host': 'doc-companies-example.localhost' + 'Host': 'doc-companies-00000000000000000000000000.localhost' }) .next(function(response) { var expected = { @@ -66,7 +66,7 @@ suite('documents/batch API', function() { var path = '/2011-02-01/documents/batch'; utils.post(path, 'foobar', { 'Content-Length': 'foobar'.length, - 'Host': 'doc-companies-example.localhost' + 'Host': 'doc-companies-00000000000000000000000000.localhost' }) .next(function(response) { var expected = { @@ -93,7 +93,7 @@ suite('documents/batch API', function() { utils.post(path, 'foobar', { 'Content-Type': 'text/plain', 'Content-Length': 'foobar'.length, - 'Host': 'doc-companies-example.localhost' + 'Host': 'doc-companies-00000000000000000000000000.localhost' }) .next(function(response) { var expected = { @@ -119,7 +119,7 @@ suite('documents/batch API', function() { var path = '/2011-02-01/documents/batch'; utils.post(path, '[]', { 'Content-Type': 'application/json', - 'Host': 'doc-companies-example.localhost' + 'Host': 'doc-companies-00000000000000000000000000.localhost' }) .next(function(response) { var expected = { @@ -147,7 +147,7 @@ suite('documents/batch API', function() { utils.post(path, batch, { 'Content-Type': 'application/json', 'Content-Length': batch.length, - 'Host': 'doc-companies-example.localhost' + 'Host': 'doc-companies-00000000000000000000000000.localhost' }) .next(function(response) { var expected = { Modified: test/api-configuration.test.js (+3 -3) =================================================================== --- test/api-configuration.test.js 2012-06-28 15:31:06 +0900 (2a019af) +++ test/api-configuration.test.js 2012-06-28 16:04:37 +0900 (3502485) @@ -25,7 +25,7 @@ function createCommonErrorResponse(errorCode, message) { } var XMLNS = 'http://cloudsearch.amazonaws.com/doc/2011-02-01'; -var FAKE_DOMAIN_ID = 'example'; +var FAKE_DOMAIN_ID = '00000000000000000000000000'; suite('Configuration API', function() { var database; @@ -56,7 +56,7 @@ suite('Configuration API', function() { '<Created>true</Created>' + '<Deleted>false</Deleted>' + '<DocService>' + - '<Endpoint>http://doc-companies-example.localhost/2011-02-01/documents</Endpoint>' + + '<Endpoint>http://doc-companies-00000000000000000000000000.localhost/2011-02-01/documents</Endpoint>' + '</DocService>' + '<DomainId>' + FAKE_DOMAIN_ID + '/companies</DomainId>' + '<DomainName>companies</DomainName>' + @@ -65,7 +65,7 @@ suite('Configuration API', function() { '<SearchInstanceCount>0</SearchInstanceCount>' + '<SearchPartitionCount>0</SearchPartitionCount>' + '<SearchService>' + - '<Endpoint>http://search-companies-example.localhost/2011-02-01/search</Endpoint>' + + '<Endpoint>http://search-companies-00000000000000000000000000.localhost/2011-02-01/search</Endpoint>' + '</SearchService>' + '</DomainStatus>' + '</CreateDomainResult>' + -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...Download