[Groonga-commit] groonga/gcs [master] Delete custom GCSDeleteAllDomains action

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 14 18:28:37 JST 2012


YUKI Hiroshi	2012-11-14 18:28:37 +0900 (Wed, 14 Nov 2012)

  New Revision: 28738d229bc8ea186e867ca4598d0bde767a87ad
  https://github.com/groonga/gcs/commit/28738d229bc8ea186e867ca4598d0bde767a87ad

  Log:
    Delete custom GCSDeleteAllDomains action

  Modified files:
    lib/api/2011-02-01/configuration.js
    test/api-configuration.test.js
    tools/scenario-runner.js

  Modified: lib/api/2011-02-01/configuration.js (+0 -12)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-11-14 18:27:14 +0900 (4f0e8a7)
+++ lib/api/2011-02-01/configuration.js    2012-11-14 18:28:37 +0900 (ebb1997)
@@ -446,18 +446,6 @@ handlers.DescribeDefaultSearchField = function(context, request, response, confi
 };
 
 
-// for testing
-
-handlers.GCSDeleteAllDomains = function(context, request, response, config) {
-  var domains = Domain.getAll(context);
-  domains.forEach(function(domain) {
-    domain.deleteSync();
-  });
-  response.contentType('application/xml');
-  response.send(createGenericResponse('GCSDeleteAllDomains', null, request.id));
-};
-
-
 function getClientIp(request) {
   var forwardedIps = request.header('x-forwarded-for');
   if (forwardedIps) {

  Modified: test/api-configuration.test.js (+0 -16)
===================================================================
--- test/api-configuration.test.js    2012-11-14 18:27:14 +0900 (80ce417)
+++ test/api-configuration.test.js    2012-11-14 18:28:37 +0900 (92c29d5)
@@ -492,22 +492,6 @@ suite('Configuration API', function() {
           done(error);
         });
     });
-
-    test('Action=GCSDeleteAllDomains', function(done) {
-      utils
-        .get('/?DomainName=domain3&Action=CreateDomain&Version=2011-02-01')
-        .get('/?DomainName=domain1&Action=CreateDomain&Version=2011-02-01')
-        .get('/?DomainName=domain2&Action=CreateDomain&Version=2011-02-01')
-        .get('/?Action=GCSDeleteAllDomains&Version=2011-02-01')
-        .get('/?Action=DescribeDomains&Version=2011-02-01')
-        .next(function(response) {
-          assertDomainsReturned(response, []);
-          done();
-        })
-        .error(function(error) {
-          done(error);
-        });
-    });
   });
 
   suite('auto detection of the base hostname and port', function() {

  Modified: tools/scenario-runner.js (+0 -3)
===================================================================
--- tools/scenario-runner.js    2012-11-14 18:27:14 +0900 (39b63f5)
+++ tools/scenario-runner.js    2012-11-14 18:28:37 +0900 (086127e)
@@ -96,9 +96,6 @@ ScenarioRunner.prototype._process = function(scenario, callback) {
     }
   }
 
-  if (request.onlyGCS && this.options.acs)
-    return processNext();
-
   var name = request.name;
   var count = 1;
   while (name in scenario.processed) {
-------------- next part --------------
HTML����������������������������...
Download 



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