[Groonga-commit] groonga/gcs [master] test: Specify domain with Host header

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 5日 (木) 17:04:37 JST


Yoji SHIDARA	2012-07-05 17:04:37 +0900 (Thu, 05 Jul 2012)

  New Revision: 1924cffbbc2d4546d01a4d0e7505957148054146
  https://github.com/groonga/gcs/commit/1924cffbbc2d4546d01a4d0e7505957148054146

  Log:
    test: Specify domain with Host header

  Modified files:
    test/search.test.js

  Modified: test/search.test.js (+4 -1)
===================================================================
--- test/search.test.js    2012-07-05 16:11:52 +0900 (40427ac)
+++ test/search.test.js    2012-07-05 17:04:37 +0900 (163238b)
@@ -33,7 +33,10 @@ suite('Search API', function() {
     var options = {
       host: utils.testHost,
       port: utils.testPort,
-      path: '/2011-02-01/search?q=Hongo&DomainName=companies'
+      path: '/2011-02-01/search?q=Hongo',
+      headers: {
+        Host: 'search-companies-00000000000000000000000000.localhost'
+      }
     };
     http.get(options, function(response) {
       assert.equal(response.statusCode, 200);
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



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