[Groonga-commit] droonga/express-droonga at 4c92a4f [master] Use RequestResponseHTTPCommand instead of old HTTPCommand

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Dec 16 14:24:50 JST 2013


YUKI Hiroshi	2013-12-16 14:24:50 +0900 (Mon, 16 Dec 2013)

  New Revision: 4c92a4fca3d068f24fa24e9cb538cd13341febc2
  https://github.com/droonga/express-droonga/commit/4c92a4fca3d068f24fa24e9cb538cd13341febc2

  Message:
    Use RequestResponseHTTPCommand instead of old HTTPCommand

  Modified files:
    test/adapter/rest.test.js
    test/adapter/socket.io.test.js
    test/express-adapter.test.js

  Modified: test/adapter/rest.test.js (+7 -7)
===================================================================
--- test/adapter/rest.test.js    2013-12-16 14:22:29 +0900 (04ade69)
+++ test/adapter/rest.test.js    2013-12-16 14:24:50 +0900 (50e5f90)
@@ -15,29 +15,29 @@ var groongaAPI = require('../../lib/adapter/api/groonga');
 suite('HTTP Adapter', function() {
   test('registeration of plugin commands', function() {
     var basePlugin = {
-      getCommand: new command.HTTPCommand({
+      getCommand: new command.RequestResponseHTTPCommand({
         path: '/get'
       }),
-      putCommand: new command.HTTPCommand({
+      putCommand: new command.RequestResponseHTTPCommand({
         method: 'PUT',
         path: '/put'
       }),
-      postCommand: new command.HTTPCommand({
+      postCommand: new command.RequestResponseHTTPCommand({
         method: 'POST',
         path: '/post'
       }),
-      deleteCommand: new command.HTTPCommand({
+      deleteCommand: new command.RequestResponseHTTPCommand({
         method: 'DELETE',
         path: '/delete'
       }),
       ignored: new command.SocketCommand()
     };
     var overridingPlugin = {
-      postCommand: new command.HTTPCommand({
+      postCommand: new command.RequestResponseHTTPCommand({
         method: 'POST',
         path: '/post/overridden'
       }),
-      deleteCommand: new command.HTTPCommand({
+      deleteCommand: new command.RequestResponseHTTPCommand({
         method: 'DELETE',
         path: '/delete/overridden'
       })
@@ -82,7 +82,7 @@ suite('HTTP Adapter', function() {
 
   suite('registeration', function() {
     var testPlugin = {
-      adapter: new command.HTTPCommand({
+      adapter: new command.RequestResponseHTTPCommand({
         path: '/path/to/adapter',
         onRequest: function(request, connection) {
           connection.emit('adapter', 'adapter requested');

  Modified: test/adapter/socket.io.test.js (+1 -1)
===================================================================
--- test/adapter/socket.io.test.js    2013-12-16 14:22:29 +0900 (5c6ee12)
+++ test/adapter/socket.io.test.js    2013-12-16 14:24:50 +0900 (478c310)
@@ -92,7 +92,7 @@ suite('Socket.IO Adapter', function() {
       putCommand: new command.SocketRequestResponse(),
       postCommand: new command.SocketRequestResponse(),
       deleteCommand: new command.SocketRequestResponse(),
-      ignored: new command.HTTPCommand()
+      ignored: new command.RequestResponseHTTPCommand()
     };
     var overridingPlugin = {
       postCommand: new command.SocketRequestResponse(),

  Modified: test/express-adapter.test.js (+1 -1)
===================================================================
--- test/express-adapter.test.js    2013-12-16 14:22:29 +0900 (3549a04)
+++ test/express-adapter.test.js    2013-12-16 14:24:50 +0900 (40690f5)
@@ -10,7 +10,7 @@ var command = require('../lib/adapter/command');
 
 suite('Adaption for express application', function() {
   var testRestPlugin = {
-    api: new command.HTTPCommand({
+    api: new command.RequestResponseHTTPCommand({
       path: '/path/to/api',
       onRequest: function(request, connection) {
         connection.emit('api', 'api requested');
-------------- next part --------------
HTML����������������������������...
다운로드 



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