Merge "Add VFC war to war config list"
diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java
index 9b975fa..27c3c2b 100644
--- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java
+++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java
@@ -254,7 +254,7 @@
RequestParameters requestParameters = sir.getRequestDetails().getRequestParameters();
if(this.reqVersion >= 3){
if(requestParameters!=null){
- this.aLaCarteFlag = sir.getRequestDetails().getRequestParameters().getALaCarte();
+ this.aLaCarteFlag = sir.getRequestDetails().getRequestParameters().isaLaCarte();
}else{
this.aLaCarteFlag = false;
}
@@ -1010,4 +1010,4 @@
public void setReqVersion(int reqVersion) {
this.reqVersion = reqVersion;
}
-}
\ No newline at end of file
+}
diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java
index 66a14db..6413c4b 100644
--- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java
+++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java
@@ -771,7 +771,7 @@
}
//if an aLaCarte flag was sent in the request, throw an error if the recipe was not found
RequestParameters reqParam = msoRequest.getServiceInstancesRequest().getRequestDetails().getRequestParameters();
- if(reqParam!=null && reqParam.isALaCarteSet() && recipe==null){
+ if(reqParam!=null && reqParam.isaLaCarteSet() && recipe==null){
return null;
}else if (recipe == null) { //aLaCarte wasn't sent, so we'll try the default
serviceRecord = db.getServiceByModelName(defaultServiceModelName);
diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestParameters.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestParameters.java
index a2acc3c..f342729 100644
--- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestParameters.java
+++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestParameters.java
@@ -36,7 +36,7 @@
@JsonSerialize(include=Inclusion.ALWAYS)
private boolean aLaCarte = false;
@JsonIgnore
- private boolean isALaCarteSet = false;
+ private boolean aLaCarteSet = false;
@JsonSerialize(include=Inclusion.ALWAYS)
private boolean autoBuildVfModules = false;
@JsonSerialize(include=Inclusion.ALWAYS)
@@ -55,18 +55,14 @@
this.subscriptionServiceType = subscriptionServiceType;
}
- public boolean getALaCarte() {
- return aLaCarte;
- }
-
public void setaLaCarte(boolean aLaCarte) {
this.aLaCarte = aLaCarte;
- this.isALaCarteSet = true;
+ this.aLaCarteSet = true;
}
//returns true if aLaCarte param came in on request
- public boolean isALaCarteSet() {
- return isALaCarteSet;
+ public boolean isaLaCarteSet() {
+ return aLaCarteSet;
}
public boolean isaLaCarte() {
diff --git a/mso-api-handlers/mso-api-handler-infra/src/test/java/org/openecomp/mso/apihandlerinfra/MsoRequestTest.java b/mso-api-handlers/mso-api-handler-infra/src/test/java/org/openecomp/mso/apihandlerinfra/MsoRequestTest.java
index d20357d..6a7fc2c 100644
--- a/mso-api-handlers/mso-api-handler-infra/src/test/java/org/openecomp/mso/apihandlerinfra/MsoRequestTest.java
+++ b/mso-api-handlers/mso-api-handler-infra/src/test/java/org/openecomp/mso/apihandlerinfra/MsoRequestTest.java
@@ -84,7 +84,7 @@
assertEquals(msoRequest.getRequestInfo().getSource(),"VID");
assertFalse(msoRequest.getALaCarteFlag());
assertEquals(msoRequest.getReqVersion(),3);
- boolean testIsALaCarteSet = msoRequest.getServiceInstancesRequest().getRequestDetails().getRequestParameters().isALaCarteSet();
+ boolean testIsALaCarteSet = msoRequest.getServiceInstancesRequest().getRequestDetails().getRequestParameters().isaLaCarteSet();
assertFalse(testIsALaCarteSet);
}
@@ -186,13 +186,13 @@
ServiceInstancesRequest sir = mapper.readValue(requestJSON1, ServiceInstancesRequest.class);
MsoRequest msoRequest = new MsoRequest ("1234");
msoRequest.parse(sir, instanceIdMap, Action.deleteInstance, "v3");
- boolean testIsALaCarteSet = msoRequest.getServiceInstancesRequest().getRequestDetails().getRequestParameters().isALaCarteSet();
+ boolean testIsALaCarteSet = msoRequest.getServiceInstancesRequest().getRequestDetails().getRequestParameters().isaLaCarteSet();
assertTrue(testIsALaCarteSet);
assertFalse(msoRequest.getALaCarteFlag());
sir = mapper.readValue(requestJSON2, ServiceInstancesRequest.class);
msoRequest = new MsoRequest ("12345");
msoRequest.parse(sir, instanceIdMap, Action.deleteInstance, "v3");
- testIsALaCarteSet = msoRequest.getServiceInstancesRequest().getRequestDetails().getRequestParameters().isALaCarteSet();
+ testIsALaCarteSet = msoRequest.getServiceInstancesRequest().getRequestDetails().getRequestParameters().isaLaCarteSet();
assertTrue(testIsALaCarteSet);
assertTrue(msoRequest.getALaCarteFlag());