Align current csit testing - fix CSIT tests 51/36751/3
authorGitelman, Tal (tg851x) <tg851x@intl.att.com>
Mon, 19 Mar 2018 15:05:55 +0000 (17:05 +0200)
committerMichael Lando <ml636r@att.com>
Mon, 19 Mar 2018 16:06:16 +0000 (16:06 +0000)
Change-Id: I63e1af740ca281da404231bb3bff67f4c94541e1
Issue-ID: SDC-1097
Signed-off-by: Gitelman, Tal (tg851x) <tg851x@intl.att.com>
.gitignore
catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/rest/ResourceRestUtils.java

index 9c445a8..0bef7c0 100644 (file)
@@ -259,3 +259,5 @@ sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites/*
 
 *normatives.tar.gz
 /openecomp-ui/yarn.lock
+
+/openecomp-ui/yarn.lock
index f6cb50c..0dce2a3 100644 (file)
@@ -2857,7 +2857,7 @@ public class ResourceBusinessLogic extends ComponentBusinessLogic {
         String value = null;
         List<GetInputValueDataDefinition> getInputs = null;
         boolean isValidate = true;
-        if (propertyInfo.getValue() != null) {
+        if (null != propertyInfo && propertyInfo.getValue() != null) {
             getInputs = propertyInfo.getGet_input();
             isValidate = getInputs == null || getInputs.isEmpty();
             if (isValidate) {
index 5f8eeca..599ce00 100644 (file)
@@ -81,8 +81,6 @@ public class ResourceRestUtils extends BaseRestUtils {
                String calculateMD5 = GeneralUtility.calculateMD5Base64EncodedByString(userBodyJson);
                headersMap.put(HttpHeaderEnum.Content_MD5.getValue(), calculateMD5);
                HttpRequest http = new HttpRequest();
-               // System.out.println(url);
-               // System.out.println(userBodyJson);
                RestResponse createResourceResponse = http.httpSendPost(url, userBodyJson, headersMap);
                if (createResourceResponse.getErrorCode() == STATUS_CODE_CREATED) {
                        resourceDetails.setUUID(ResponseParser.getUuidFromResponse(createResourceResponse));