cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From muralire...@apache.org
Subject [12/54] [abbrv] git commit: updated refs/heads/distributedrouter to 42b553e
Date Fri, 14 Mar 2014 10:37:25 GMT
More generic parameters that are not unknown

Adding some more parameter names that should not be considered unknown since they belong to
general use paramters

Signed-off-by: Alena Prokharchyk <alena.prokharchyk@citrix.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/39e5b768
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/39e5b768
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/39e5b768

Branch: refs/heads/distributedrouter
Commit: 39e5b768e8fcae9622e01b2ca72a49675eb6d3fb
Parents: 1b83698
Author: Antonio Fornie <afornie@schubergphilis.com>
Authored: Wed Mar 12 18:47:50 2014 -0500
Committer: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Committed: Thu Mar 13 10:40:14 2014 -0700

----------------------------------------------------------------------
 .../org/apache/cloudstack/api/ApiConstants.java |  2 +-
 .../dispatch/ParamGenericValidationWorker.java  |  3 +++
 .../ParamGenericValidationWorkerTest.java       | 24 ++++++++++++++++++++
 3 files changed, 28 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/39e5b768/api/src/org/apache/cloudstack/api/ApiConstants.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/ApiConstants.java b/api/src/org/apache/cloudstack/api/ApiConstants.java
index 089affb..d5e97e6 100755
--- a/api/src/org/apache/cloudstack/api/ApiConstants.java
+++ b/api/src/org/apache/cloudstack/api/ApiConstants.java
@@ -59,7 +59,7 @@ public class ApiConstants {
     public static final String CTX_ACCOUNT_ID = "ctxaccountid";
     public static final String CTX_USER_ID = "ctxuserid";
     public static final String CTXSTARTEVENTID = "ctxstarteventid";
-    public static final String CTX_START_EVENT_ID = "ctxStartEventId";
+    public static final String CTX_START_EVENT_ID = "ctxstarteventid";
     public static final String CUSTOMIZED = "customized";
     public static final String CUSTOMIZED_IOPS = "customizediops";
     public static final String CUSTOM_ID = "customid";

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/39e5b768/server/src/com/cloud/api/dispatch/ParamGenericValidationWorker.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/dispatch/ParamGenericValidationWorker.java b/server/src/com/cloud/api/dispatch/ParamGenericValidationWorker.java
index f456468..7a73b8a 100644
--- a/server/src/com/cloud/api/dispatch/ParamGenericValidationWorker.java
+++ b/server/src/com/cloud/api/dispatch/ParamGenericValidationWorker.java
@@ -42,6 +42,7 @@ public class ParamGenericValidationWorker implements DispatchWorker {
     protected static final List<String> defaultParamNames = new ArrayList<String>();
 
     static {
+        defaultParamNames.add(ApiConstants.ACCOUNT_ID);
         defaultParamNames.add(ApiConstants.CTX_START_EVENT_ID);
         defaultParamNames.add(ApiConstants.COMMAND);
         defaultParamNames.add(ApiConstants.CMD_EVENT_TYPE);
@@ -62,6 +63,8 @@ public class ParamGenericValidationWorker implements DispatchWorker {
         defaultParamNames.add(ApiConstants.CTX_ACCOUNT_ID);
         defaultParamNames.add(ApiConstants.CTX_START_EVENT_ID);
         defaultParamNames.add(ApiConstants.CTX_USER_ID);
+        defaultParamNames.add(ApiConstants.UUID);
+        defaultParamNames.add(ApiConstants.ID);
         defaultParamNames.add("_");
     }
 

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/39e5b768/server/test/com/cloud/api/dispatch/ParamGenericValidationWorkerTest.java
----------------------------------------------------------------------
diff --git a/server/test/com/cloud/api/dispatch/ParamGenericValidationWorkerTest.java b/server/test/com/cloud/api/dispatch/ParamGenericValidationWorkerTest.java
index 0803a2b..8f9709c 100644
--- a/server/test/com/cloud/api/dispatch/ParamGenericValidationWorkerTest.java
+++ b/server/test/com/cloud/api/dispatch/ParamGenericValidationWorkerTest.java
@@ -75,6 +75,30 @@ public class ParamGenericValidationWorkerTest {
         final BaseCmd cmd = new FakeCmd();
         final Map<String, String> params = new HashMap<String, String>();
         params.put(ApiConstants.COMMAND, "");
+        params.put(ApiConstants.ACCOUNT_ID, "");
+        params.put(ApiConstants.CTX_START_EVENT_ID, "");
+        params.put(ApiConstants.COMMAND, "");
+        params.put(ApiConstants.CMD_EVENT_TYPE, "");
+        params.put(ApiConstants.USERNAME, "");
+        params.put(ApiConstants.USER_ID, "");
+        params.put(ApiConstants.PASSWORD, "");
+        params.put(ApiConstants.DOMAIN, "");
+        params.put(ApiConstants.DOMAIN_ID, "");
+        params.put(ApiConstants.DOMAIN__ID, "");
+        params.put(ApiConstants.SESSIONKEY, "");
+        params.put(ApiConstants.RESPONSE, "");
+        params.put(ApiConstants.PAGE, "");
+        params.put(ApiConstants.USER_API_KEY, "");
+        params.put(ApiConstants.API_KEY, "");
+        params.put(ApiConstants.PAGE_SIZE, "");
+        params.put(ApiConstants.HTTPMETHOD, "");
+        params.put(ApiConstants.SIGNATURE, "");
+        params.put(ApiConstants.CTX_ACCOUNT_ID, "");
+        params.put(ApiConstants.CTX_START_EVENT_ID, "");
+        params.put(ApiConstants.CTX_USER_ID, "");
+        params.put(ApiConstants.UUID, "");
+        params.put(ApiConstants.ID, "");
+        params.put("_", "");
         params.put("addedParam", "");
 
         Account account = new AccountVO("testaccount", 1L, "networkdomain", (short) 0, "uuid");


Mime
View raw message