[Groonga-commit] groonga/gcs [master] Give domain name to create endpoint URLs correctly

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 21日 (木) 17:07:26 JST


SHIMODA Hiroshi	2012-06-21 17:07:26 +0900 (Thu, 21 Jun 2012)

  New Revision: be894f7273be5a74b672a2d4529e6cb7f8da9036
  https://github.com/groonga/gcs/commit/be894f7273be5a74b672a2d4529e6cb7f8da9036

  Log:
    Give domain name to create endpoint URLs correctly

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

  Modified: test/api-configuration.test.js (+12 -4)
===================================================================
--- test/api-configuration.test.js    2012-06-21 17:05:39 +0900 (e3323dd)
+++ test/api-configuration.test.js    2012-06-21 17:07:26 +0900 (4375da7)
@@ -94,7 +94,9 @@ suite('Configuration API', function() {
 
   test('Get, Action=DefineIndexField', function(done) {
     var path = '/?DomainName=companies&Action=CreateDomain&Version=2011-02-01';
-    utils.get(path)
+    utils.get(path, {
+                'Host': 'cloudsearch.localhost'
+              })
       .next(function(response) {
         var path = '/?DomainName=companies&IndexField.IndexFieldName=name&' +
                    'Action=DefineIndexField&Version=2011-02-01';
@@ -157,7 +159,9 @@ suite('Configuration API', function() {
 
   test('Get, no version', function(done) {
     var path = '/?Action=unknown';
-    utils.get(path)
+    utils.get(path, {
+                'Host': 'cloudsearch.localhost'
+              })
       .next(function(response) {
         var message = 'An input parameter "Version" that is mandatory for ' +
                       'processing the request is not supplied.';;
@@ -175,7 +179,9 @@ suite('Configuration API', function() {
 
   test('Get, invalid version', function(done) {
     var path = '/?Version=2011-02-02&Action=unknown';
-    utils.get(path)
+    utils.get(path, {
+                'Host': 'cloudsearch.localhost'
+              })
       .next(function(response) {
         var message = 'A bad or out-of-range value "2011-02-02" was supplied ' +
                       'for the "Version" input parameter.';
@@ -193,7 +199,9 @@ suite('Configuration API', function() {
 
   test('Get, invalid action', function(done) {
     var path = '/?Version=2011-02-01&Action=unknown';
-    utils.get(path)
+    utils.get(path, {
+                'Host': 'cloudsearch.localhost'
+              })
       .next(function(response) {
         var message = 'The action unknown is not valid for this web service.';
         var expected = {
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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