Modify Db script 66/95566/3
authorsebdet <sebastien.determe@intl.att.com>
Thu, 12 Sep 2019 11:03:30 +0000 (13:03 +0200)
committersebdet <sebastien.determe@intl.att.com>
Fri, 13 Sep 2019 16:28:34 +0000 (18:28 +0200)
Change db script so that it uses the autogenerated test data instead of
a predefined one

Issue-ID: CLAMP-496
Change-Id: I211913acbe49f93696e8d21674936fd589964b4a
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
scripts/clamp/clone_clamp_and_change_dockercompose.sh
tests/clamp/APIs/01__Test_CL_APIs.robot
tests/clamp/UIs/01__Open_And_Edit_TCA.robot
tests/clamp/UIs/02__Verify_Modification_In_UI.robot

index 0c30b26..afd60e7 100755 (executable)
@@ -39,5 +39,4 @@ sed -i '/image: onap\/clamp-backend/c\    image: nexus3.onap.org:10001\/onap\/cl
 sed -i '/image: onap\/clamp-frontend/c\    image: nexus3.onap.org:10001\/onap\/clamp-frontend:4.1-STAGING-latest' docker-compose.yml
 
 # Add the sql to create template so it is played by docker-compose later
-cp ../../../src/test/resources/sql/loop-examples.sql ../../sql/bulkload/
-echo 'mysql -uroot -p$MYSQL_ROOT_PASSWORD -f < loop-examples.sql' >> ../../sql/load-sql-files-tests-automation.sh
+echo '/docker-entrypoint-initdb.d/dump/load-fake-data.sh' >> $WORKSPACE/archives/clamp-clone/clamp/extra/sql/bootstrap-database.sh
index 3edccef..9fb9d06 100644 (file)
@@ -27,21 +27,20 @@ List TCAs
     Should Contain Match    ${resp}   *Name1_tca_3*
 
 Open TCA1
-    ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v2/loop/LOOP_ejh5S_v1_0_ResourceInstanceName1_tca
+    ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v2/loop/LOOP_yHsgu_v1_0_ResourceInstanceName1_tca
     Should Contain Match    ${resp}   *Name1_tca*
     Should Contain Match    ${resp}   *Operational Policy Item*
     Should Contain Match    ${resp}   *Operational policies*
-    Should Contain Match    ${resp}   *Micro Service policies UPDATED*
 
 Open TCA2
-    ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v2/loop/LOOP_ejh5S_v1_0_ResourceInstanceName2_tca_2
+    ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v2/loop/LOOP_yHsgu_v1_0_ResourceInstanceName2_tca_2
     Should Contain Match    ${resp}   *Name2_tca_2*
     Should Contain Match    ${resp}   *Operational Policy Item*
     Should Contain Match    ${resp}   *1004*
     Should Contain Match    ${resp}   *TCA Policy Scope*
 
 Open TCA3
-    ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v2/loop/LOOP_ejh5S_v1_0_ResourceInstanceName1_tca_3
+    ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v2/loop/LOOP_yHsgu_v1_0_ResourceInstanceName1_tca_3
     Should Contain Match    ${resp}   *Name1_tca_3*
     Should Contain Match    ${resp}   *Operational Policy Item*
     Should Contain Match    ${resp}   *1004*
index edf54e8..114c1d4 100644 (file)
@@ -10,7 +10,7 @@ ${login}                     admin
 ${passw}                     password
 ${SELENIUM_SPEED_FAST}       1 seconds
 ${SELENIUM_SPEED_SLOW}       2 seconds
-${BASE_URL}                  https://localhost:8443
+${BASE_URL}                  https://localhost:443
 *** Keywords ***
 Create the sessions
     ${auth}=    Create List     ${login}    ${passw}
@@ -26,7 +26,7 @@ Open Browser
 # Next line is to be enabled for Headless tests only (jenkins?). To see the tests disable the line.
     Start Virtual Display    1920    1080
     Set Selenium Speed      ${SELENIUM_SPEED_SLOW}
-    Open Browser    ${BASE_URL}/designer/index.html    browser=firefox
+    Open Browser    ${BASE_URL}/index.html    browser=firefox
 
 Reply to authentication popup
     Run Keyword And Ignore Error    Insert into prompt    ${login} ${passw}
index 84ea22e..d50d797 100644 (file)
@@ -21,8 +21,6 @@ Get Requests health check ok
     Should Be Equal As Strings  ${resp.status_code}     200
 
 Open TCA1
-    ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v2/loop/LOOP_ejh5S_v1_0_ResourceInstanceName1_tca
+    ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v2/loop/LOOP_yHsgu_v1_0_ResourceInstanceName1_tca
     Should Contain Match    ${resp}   *Name1_tca*
     Should Contain Match    ${resp}   *Operational Policy*
-    Should Contain Match    ${resp}   *Micro Service policies UPDATED*
-    Should Contain Match    ${resp}   *POLICY SUBMIT request*