Rename optf base dir to optf-has

Issue-ID: OPTFRA-171

Change-Id: I19d7b8c38bf324171b7204499114e79839cc9c18
Signed-off-by: Leonardo Bellini <leonardo.bellini@att.com>
diff --git a/test/csit/plans/optf/has/setup.sh b/test/csit/plans/optf-has/has/setup.sh
similarity index 96%
rename from test/csit/plans/optf/has/setup.sh
rename to test/csit/plans/optf-has/has/setup.sh
index b2c8143..347399b 100755
--- a/test/csit/plans/optf/has/setup.sh
+++ b/test/csit/plans/optf-has/has/setup.sh
@@ -23,7 +23,7 @@
 echo "# optf/has scripts calling";
 echo "#";
 echo "##########################################################";
-source ${WORKSPACE}/test/csit/scripts/optf/has/has_script.sh
+source ${WORKSPACE}/test/csit/scripts/optf-has/has/has_script.sh
 
 #
 # add here below the start of all docker containers needed for optf/has CSIT testing
diff --git a/test/csit/plans/optf/has/teardown.sh b/test/csit/plans/optf-has/has/teardown.sh
similarity index 96%
rename from test/csit/plans/optf/has/teardown.sh
rename to test/csit/plans/optf-has/has/teardown.sh
index c586d92..80a85f9 100755
--- a/test/csit/plans/optf/has/teardown.sh
+++ b/test/csit/plans/optf-has/has/teardown.sh
@@ -32,12 +32,12 @@
 docker stop cond-api
 docker stop cond-solv
 docker stop cond-cont
-#docker stop cond-data
+docker stop cond-data
 docker stop cond-resv
 
 docker rm cond-api
 docker rm cond-solv
 docker rm cond-cont
-#docker rm cond-data
+docker rm cond-data
 docker rm cond-resv
 
diff --git a/test/csit/plans/optf/has/testplan.txt b/test/csit/plans/optf-has/has/testplan.txt
similarity index 89%
rename from test/csit/plans/optf/has/testplan.txt
rename to test/csit/plans/optf-has/has/testplan.txt
index 0f9f84d..980050c 100644
--- a/test/csit/plans/optf/has/testplan.txt
+++ b/test/csit/plans/optf-has/has/testplan.txt
@@ -1,3 +1,3 @@
 # Test suites are relative paths under [integration.git]/test/csit/tests/.
 # Place the suites in run order.
-optf/has
+optf-has/has
diff --git a/test/csit/plans/optf/osdf/sample.txt b/test/csit/plans/optf-has/osdf/sample.txt
similarity index 100%
rename from test/csit/plans/optf/osdf/sample.txt
rename to test/csit/plans/optf-has/osdf/sample.txt
diff --git a/test/csit/scripts/optf/has/has-properties/cert.cer b/test/csit/scripts/optf-has/has/has-properties/cert.cer
similarity index 100%
rename from test/csit/scripts/optf/has/has-properties/cert.cer
rename to test/csit/scripts/optf-has/has/has-properties/cert.cer
diff --git a/test/csit/scripts/optf/has/has-properties/cert.key b/test/csit/scripts/optf-has/has/has-properties/cert.key
similarity index 100%
rename from test/csit/scripts/optf/has/has-properties/cert.key
rename to test/csit/scripts/optf-has/has/has-properties/cert.key
diff --git a/test/csit/scripts/optf-has/has/has-properties/cert.pem b/test/csit/scripts/optf-has/has/has-properties/cert.pem
new file mode 100644
index 0000000..5ecf382
--- /dev/null
+++ b/test/csit/scripts/optf-has/has/has-properties/cert.pem
@@ -0,0 +1,36 @@
+Bag Attributes
+    friendlyName: mso-client
+    localKeyID: 54 69 6D 65 20 31 35 31 39 32 39 37 30 37 31 32 33 33 
+subject=/C=US/ST=Michigan/L=Southfield/O=AT&T Services, Inc./OU=mso-bpel-client-mtanj/CN=msobpel-client.mtanj.aic.cip.att.com
+issuer=/C=US/O=DigiCert Inc/CN=DigiCert SHA2 Secure Server CA
+-----BEGIN CERTIFICATE-----
+MIIFZDCCBEygAwIBAgIQCDZ0gBbsclD2Ino3w+NqPDANBgkqhkiG9w0BAQsFADBN
+MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E
+aWdpQ2VydCBTSEEyIFNlY3VyZSBTZXJ2ZXIgQ0EwHhcNMTgwMTE5MDAwMDAwWhcN
+MTkwMTE5MTIwMDAwWjCBojELMAkGA1UEBhMCVVMxETAPBgNVBAgTCE1pY2hpZ2Fu
+MRMwEQYDVQQHEwpTb3V0aGZpZWxkMRwwGgYDVQQKDBNBVCZUIFNlcnZpY2VzLCBJ
+bmMuMR4wHAYDVQQLExVtc28tYnBlbC1jbGllbnQtbXRhbmoxLT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ljZXJ0LmNvbS9EaWdpQ2VydFNIQTJTZWN1cmVTZXJ2ZXJDQS5jcnQwCQYDVR0T
+BAIwADANBgkqhkiG9w0BAQsFAAOCAQEAxkadmzFcpA3f3qc9PbzMWfV2lJCXWxfr
+/6z4RXotl255GBZFR2zLn56k8J3hAJGWRc0WeSgSsLH1fxrxF60fWk+cmYCrMC9t
+C5ha5zWav/kz+dkZvJVbUxIFdx0Cd5uqBsLFnAaGrnSR6WzJkZHQ2rQUvwvQXwdP
+XL01FleDSNbV8jtHXvzmcdnVQWeLjcVOeOeBF3dW6lSvDRV0G6fe6+R9U+Gz0MwK
+x93XbsIAMTCJKUBkV7QdHwHzis3fhKJHwJUrb1p2Byhn/RwYUmFbjkamFiEfAyzw
++KdkwripOgYHnmGyLBJ16FdO/8kGhn4URW/qL1FO/sN2loGGlyA82w==
+-----END CERTIFICATE-----
diff --git a/test/csit/scripts/optf/has/has-properties/conductor.conf.onap b/test/csit/scripts/optf-has/has/has-properties/conductor.conf.onap
similarity index 99%
rename from test/csit/scripts/optf/has/has-properties/conductor.conf.onap
rename to test/csit/scripts/optf-has/has/has-properties/conductor.conf.onap
index 9770f51..43a7453 100644
--- a/test/csit/scripts/optf/has/has-properties/conductor.conf.onap
+++ b/test/csit/scripts/optf-has/has/has-properties/conductor.conf.onap
@@ -154,7 +154,7 @@
 
 # Certificate Authority Bundle file in pem format. Must contain the appropriate
 # trust chain for theCertificate file. (string value)
-# certificate_authority_bundle_file = ~/certs/ca-bundle.pem
+certificate_authority_bundle_file = /usr/local/bin/cert.pem
 
 [api]
 
diff --git a/test/csit/scripts/optf/has/has_script.sh b/test/csit/scripts/optf-has/has/has_script.sh
similarity index 76%
rename from test/csit/scripts/optf/has/has_script.sh
rename to test/csit/scripts/optf-has/has/has_script.sh
index 3da7e04..3404cbb 100755
--- a/test/csit/scripts/optf/has/has_script.sh
+++ b/test/csit/scripts/optf-has/has/has_script.sh
@@ -14,14 +14,13 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-echo "### This is ${WORKSPACE}/test/csit/scripts/optf/has/has_script.sh"
+echo "### This is ${WORKSPACE}/test/csit/scripts/optf-has/has/has_script.sh"
 #
 # add here whatever commands is needed to prepare the optf/has CSIT testing
 #
 
-# assume the base is /opt
-DIR=/opt
-#cd /opt
+# assume the base is /tmp dir
+DIR=/tmp
 
 # the directory of the script
 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -46,6 +45,7 @@
 cd has
 cd conductor/docker
 
+# Comment sed for true integration lab
 #sed  -i -e "s%FROM python:2\.7%FROM python:2\.7\\nENV http_proxy http:\/\/one\.proxy\.att\.com:8080\\nENV https_proxy http:\/\/one\.proxy\.att\.com:8080%g" api/Dockerfile
 #sed  -i -e "s%FROM python:2\.7%FROM python:2\.7\\nENV http_proxy http:\/\/one\.proxy\.att\.com:8080\\nENV https_proxy http:\/\/one\.proxy\.att\.com:8080%g" controller/Dockerfile
 #sed  -i -e "s%FROM python:2\.7%FROM python:2\.7\\nENV http_proxy http:\/\/one\.proxy\.att\.com:8080\\nENV https_proxy http:\/\/one\.proxy\.att\.com:8080%g" data/Dockerfile
@@ -63,14 +63,14 @@
 
 # create directory for volume and copy configuration file
 mkdir -p /tmp/conductor/properties
-cp ${WORKSPACE}/test/csit/scripts/optf/has/has-properties/conductor.conf.onap /tmp/conductor/properties/conductor.conf
-cp ${WORKSPACE}/test/csit/scripts/optf/has/has-properties/cert.cer /tmp/conductor/properties/cert.cer
-cp ${WORKSPACE}/test/csit/scripts/optf/has/has-properties/cert.key /tmp/conductor/properties/cert.key
-
-
+cp ${WORKSPACE}/test/csit/scripts/optf-has/has/has-properties/conductor.conf.onap /tmp/conductor/properties/conductor.conf
+cp ${WORKSPACE}/test/csit/scripts/optf-has/has/has-properties/cert.cer /tmp/conductor/properties/cert.cer
+cp ${WORKSPACE}/test/csit/scripts/optf-has/has/has-properties/cert.key /tmp/conductor/properties/cert.key
+cp ${WORKSPACE}/test/csit/scripts/optf-has/has/has-properties/cert.pem /tmp/conductor/properties/cert.pem
+chmod -R 777 /tmp/conductor/properties
 
 # run docker containers
-#docker run -d --name cond-data -v /tmp/conductor/properties/conductor.conf:/usr/local/bin/conductor.conf -v /tmp/conductor/properties/cert.key:/usr/local/bin/cert.key -v /tmp/conductor/properties/cert.cer:/usr/local/bin/cert.cer data
+docker run -d --name cond-data -v /tmp/conductor/properties/conductor.conf:/usr/local/bin/conductor.conf -v /tmp/conductor/properties/cert.key:/usr/local/bin/cert.key -v /tmp/conductor/properties/cert.cer:/usr/local/bin/cert.cer -v /tmp/conductor/properties/cert.pem:/usr/local/bin/cert.pem  data
 #docker run -d --name cond-data -v /tmp/conductor/properties/conductor.conf:/usr/local/bin/conductor.conf data
 docker run -d --name cond-cont -v /tmp/conductor/properties/conductor.conf:/usr/local/bin/conductor.conf controller
 docker run -d --name cond-api -p 8091:8091  -v /tmp/conductor/properties/conductor.conf:/usr/local/bin/conductor.conf api
diff --git a/test/csit/scripts/optf/osdf/testsample.txt b/test/csit/scripts/optf-has/osdf/testsample.txt
similarity index 100%
rename from test/csit/scripts/optf/osdf/testsample.txt
rename to test/csit/scripts/optf-has/osdf/testsample.txt
diff --git a/test/csit/tests/optf/has/__init__.robot b/test/csit/tests/optf-has/has/__init__.robot
similarity index 100%
rename from test/csit/tests/optf/has/__init__.robot
rename to test/csit/tests/optf-has/has/__init__.robot
diff --git a/test/csit/tests/optf/has/data/plan_with_wrong_version.json b/test/csit/tests/optf-has/has/data/plan_with_wrong_version.json
similarity index 100%
rename from test/csit/tests/optf/has/data/plan_with_wrong_version.json
rename to test/csit/tests/optf-has/has/data/plan_with_wrong_version.json
diff --git a/test/csit/tests/optf/has/data/plan_without_demand_section.json b/test/csit/tests/optf-has/has/data/plan_without_demand_section.json
similarity index 100%
rename from test/csit/tests/optf/has/data/plan_without_demand_section.json
rename to test/csit/tests/optf-has/has/data/plan_without_demand_section.json
diff --git a/test/csit/tests/optf/has/optf_has_test.robot b/test/csit/tests/optf-has/has/optf_has_test.robot
similarity index 74%
rename from test/csit/tests/optf/has/optf_has_test.robot
rename to test/csit/tests/optf-has/has/optf_has_test.robot
index f939bd9..ab5ded6 100644
--- a/test/csit/tests/optf/has/optf_has_test.robot
+++ b/test/csit/tests/optf-has/has/optf_has_test.robot
@@ -14,7 +14,7 @@
 
 *** Test Cases ***
 Check ConductorApi Docker Container
-    [Documentation]    It checks cassandra docker container is running
+    [Documentation]    It checks conductor-api docker container is running
     ${rc}    ${output}=    Run and Return RC and Output    docker ps
     Log To Console              *********************
     Log To Console              retrurn_code = ${rc}
@@ -23,7 +23,7 @@
     Should Contain    ${output}    cond-api
 
 Check ConductorController Docker Container
-    [Documentation]    It checks zookeeper docker container is running
+    [Documentation]    It checks conductor-controller docker container is running
     ${rc}    ${output}=    Run and Return RC and Output    docker ps
     Log To Console              *********************
     Log To Console              retrurn_code = ${rc}
@@ -32,7 +32,7 @@
     Should Contain    ${output}    cond-cont
 
 Check ConductorSolver Docker Container
-    [Documentation]    It checks tomcat docker container is running
+    [Documentation]    It checks conductor-solver docker container is running
     ${rc}    ${output}=    Run and Return RC and Output    docker ps
     Log To Console              *********************
     Log To Console              retrurn_code = ${rc}
@@ -40,8 +40,8 @@
     Should Be Equal As Integers    ${rc}    0
     Should Contain    ${output}    cond-solv
 
-Check ConductorReservation War Docker Container
-    [Documentation]    It checks music.war docker container is running
+Check ConductorReservation Docker Container
+    [Documentation]    It checks conductor-reservation docker container is running
     ${rc}    ${output}=    Run and Return RC and Output    docker ps
     Log To Console              *********************
     Log To Console              retrurn_code = ${rc}
@@ -49,6 +49,15 @@
     Should Be Equal As Integers    ${rc}    0
     Should Contain    ${output}    cond-resv
 
+Check ConductorData Docker Container
+    [Documentation]    It checks conductor-data docker container is running
+    ${rc}    ${output}=    Run and Return RC and Output    docker ps
+    Log To Console              *********************
+    Log To Console              retrurn_code = ${rc}
+    Log To Console              output = ${output}
+    Should Be Equal As Integers    ${rc}    0
+    Should Contain    ${output}    cond-data
+
 Get Root Url
     [Documentation]    It sends a REST GET request to root url
     Create Session   optf-cond            ${COND_HOSTNAME}:${COND_PORT}
diff --git a/test/csit/tests/optf/osdf/data/sampletest.txt b/test/csit/tests/optf-has/osdf/data/sampletest.txt
similarity index 100%
rename from test/csit/tests/optf/osdf/data/sampletest.txt
rename to test/csit/tests/optf-has/osdf/data/sampletest.txt