Adjust DCAE-DS CSIT for Jenkins and to master 11/90511/1
authorkaihlavi <l.kaihlavirt@partner.samsung.com>
Wed, 26 Jun 2019 12:09:37 +0000 (15:09 +0300)
committerkaihlavi <l.kaihlavirt@partner.samsung.com>
Wed, 26 Jun 2019 12:09:37 +0000 (15:09 +0300)
 - directory structures of DCAE-DS CSIT plans, scripts and tests
   have been changed to be more compatible with jjb templates to
   enable working Jenkins jobs
 - robot tests adjusted to latest changes in robotframework-onap library

Change-Id: Id05602a88557267cc7ae77f066877680ae431a7f
Issue-ID: SDC-2365
Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
22 files changed:
plans/sdc-dcae-d/dcaed/setup.sh [moved from plans/sdc/dcaed/setup.sh with 91% similarity]
plans/sdc-dcae-d/dcaed/teardown.sh [moved from plans/sdc/dcaed/teardown.sh with 91% similarity]
plans/sdc-dcae-d/dcaed/testplan.txt [moved from plans/sdc/dcaed/testplan.txt with 85% similarity]
scripts/sdc-dcae-d/cleanup_sdc_dcaed.sh [moved from scripts/sdc/cleanup_sdc_dcaed.sh with 100% similarity]
scripts/sdc-dcae-d/setup_sdc_dcaed.sh [moved from scripts/sdc/setup_sdc_dcaed.sh with 100% similarity]
tests/sdc-dcae-d/dcaed/__init__.robot [moved from tests/sdc/dcaed/__init__.robot with 100% similarity]
tests/sdc-dcae-d/dcaed/asdc_interface.robot [moved from tests/sdc/dcaed/asdc_interface.robot with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/artifact_upload.template [moved from tests/sdc/dcaed/assets/artifact_upload.template with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/catalog_service.template [moved from tests/sdc/dcaed/assets/catalog_service.template with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/component_catalog_resource.template [moved from tests/sdc/dcaed/assets/component_catalog_resource.template with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/create_vfcmt.template [moved from tests/sdc/dcaed/assets/create_vfcmt.template with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/dcae_composition.template [moved from tests/sdc/dcaed/assets/dcae_composition.template with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/dcae_monitoring_configuration.template [moved from tests/sdc/dcaed/assets/dcae_monitoring_configuration.template with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/resource_instance.template [moved from tests/sdc/dcaed/assets/resource_instance.template with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/schema.yaml [moved from tests/sdc/dcaed/assets/schema.yaml with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/template.yaml [moved from tests/sdc/dcaed/assets/template.yaml with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/translate.yaml [moved from tests/sdc/dcaed/assets/translate.yaml with 100% similarity]
tests/sdc-dcae-d/dcaed/assets/user_remarks.template [moved from tests/sdc/dcaed/assets/user_remarks.template with 100% similarity]
tests/sdc-dcae-d/dcaed/common.robot [moved from tests/sdc/dcaed/common.robot with 75% similarity]
tests/sdc-dcae-d/dcaed/dcaed_interface.robot [moved from tests/sdc/dcaed/dcaed_interface.robot with 97% similarity]
tests/sdc-dcae-d/dcaed/json_templater.robot [moved from tests/sdc/dcaed/json_templater.robot with 94% similarity]
tests/sdc-dcae-d/dcaed/monitoring_configuration_service_test.robot [moved from tests/sdc/dcaed/monitoring_configuration_service_test.robot with 100% similarity]

similarity index 91%
rename from plans/sdc/dcaed/setup.sh
rename to plans/sdc-dcae-d/dcaed/setup.sh
index 074b8c0..5a94a93 100644 (file)
@@ -15,4 +15,4 @@
 # limitations under the License.
 #
 
-source ${WORKSPACE}/scripts/sdc/setup_sdc_dcaed.sh
+source ${WORKSPACE}/scripts/sdc-dcae-d/setup_sdc_dcaed.sh
similarity index 91%
rename from plans/sdc/dcaed/teardown.sh
rename to plans/sdc-dcae-d/dcaed/teardown.sh
index 911273c..2467d1e 100644 (file)
@@ -15,4 +15,4 @@
 # limitations under the License.
 #
 
-source ${WORKSPACE}/scripts/sdc/cleanup_sdc_dcaed.sh
+source ${WORKSPACE}/scripts/sdc-dcae-d/cleanup_sdc_dcaed.sh
similarity index 85%
rename from plans/sdc/dcaed/testplan.txt
rename to plans/sdc-dcae-d/dcaed/testplan.txt
index a1313f1..63a4cda 100644 (file)
@@ -1,3 +1,3 @@
 # Test suites are relative paths under [integration/csit.git]/tests/.
 # Place the suites in run order.
-sdc/dcaed
+sdc-dcae-d/dcaed
similarity index 75%
rename from tests/sdc/dcaed/common.robot
rename to tests/sdc-dcae-d/dcaed/common.robot
index 3cb73ff..d1e8c74 100644 (file)
@@ -7,5 +7,5 @@ ${ASDC_OPS_USER_ID}    op0001
 
 ${GLOBAL_APPLICATION_ID}    robot
 
-${ASSETS_DIR}   %{WORKSPACE}/tests/sdc/dcaed/assets/
+${ASSETS_DIR}   %{WORKSPACE}/tests/sdc-dcae-d/dcaed/assets/
 
similarity index 97%
rename from tests/sdc/dcaed/dcaed_interface.robot
rename to tests/sdc-dcae-d/dcaed/dcaed_interface.robot
index 76401a8..e3aa4b9 100644 (file)
@@ -1,6 +1,5 @@
 *** Settings ***
 Library           json
-Library           eteutils/HTTPUtils.py
 Library           ONAPLibrary.Utilities
 
 Resource          json_templater.robot
@@ -70,7 +69,7 @@ Add Monitoring Configuration To DCAE-DS
 
 Submit Monitoring Configuration To DCAE-DS
     [Arguments]   ${mc_uuid}   ${cs_uuid}   ${vfi_name}
-    ${url_vfi_name}   HTTPUtils.url_encode_string  ${vfi_name}
+    ${url_vfi_name}   url_encode_string  ${vfi_name}
     ${resp}=    Run DCAE-DS Post Request    ${DCAE_PATH}${DCAE_CREATE_BLUEPRINT_PATH}/${mc_uuid}/${cs_uuid}/${url_vfi_name}     ${None}    ${ASDC_DESIGNER_USER_ID}
     Should Be Equal As Strings  ${resp.status_code}     200
 
similarity index 94%
rename from tests/sdc/dcaed/json_templater.robot
rename to tests/sdc-dcae-d/dcaed/json_templater.robot
index 884c8f9..33e8baa 100644 (file)
@@ -1,7 +1,7 @@
 *** Settings ***
 Documentation     This resource is filling out json string templates and returning the json back
 Library           RequestsLibrary
-Library           eteutils/StringTemplater.py
+Library           ONAPLibrary.TemplatingKeywords
 Library           OperatingSystem
 
 *** Keywords ***