Renaming 5G Bulk PM to usecase/5G-bulkpm

Issue-ID: INT-649
Change-Id: I4921756a70952ce42e36af023d1131227fc29ecc
Signed-off-by: Rajendra Jaiswal <rajendra.jaiswal@ericsson.com>
diff --git a/test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/addSubscriber.json b/test/csit/plans/usecases/5G-bulkpm/assets/addSubscriber.json
similarity index 100%
rename from test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/addSubscriber.json
rename to test/csit/plans/usecases/5G-bulkpm/assets/addSubscriber.json
diff --git a/test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/createFeed.json b/test/csit/plans/usecases/5G-bulkpm/assets/createFeed.json
similarity index 100%
rename from test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/createFeed.json
rename to test/csit/plans/usecases/5G-bulkpm/assets/createFeed.json
diff --git a/test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/datafile_endpoints.json b/test/csit/plans/usecases/5G-bulkpm/assets/datafile_endpoints.json
similarity index 100%
rename from test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/datafile_endpoints.json
rename to test/csit/plans/usecases/5G-bulkpm/assets/datafile_endpoints.json
diff --git a/test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/xNF.pm.xml.gz b/test/csit/plans/usecases/5G-bulkpm/assets/xNF.pm.xml.gz
similarity index 100%
rename from test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/xNF.pm.xml.gz
rename to test/csit/plans/usecases/5G-bulkpm/assets/xNF.pm.xml.gz
Binary files differ
diff --git a/test/csit/plans/dcae-bulkpm/bulkpm-suite/composefile/docker-compose-e2e.yml b/test/csit/plans/usecases/5G-bulkpm/composefile/docker-compose-e2e.yml
similarity index 100%
rename from test/csit/plans/dcae-bulkpm/bulkpm-suite/composefile/docker-compose-e2e.yml
rename to test/csit/plans/usecases/5G-bulkpm/composefile/docker-compose-e2e.yml
diff --git a/test/csit/plans/dcae-bulkpm/bulkpm-suite/setup.sh b/test/csit/plans/usecases/5G-bulkpm/setup.sh
similarity index 86%
rename from test/csit/plans/dcae-bulkpm/bulkpm-suite/setup.sh
rename to test/csit/plans/usecases/5G-bulkpm/setup.sh
index b0ea681..f27bfba 100644
--- a/test/csit/plans/dcae-bulkpm/bulkpm-suite/setup.sh
+++ b/test/csit/plans/usecases/5G-bulkpm/setup.sh
@@ -57,7 +57,7 @@
 cd datarouter
 cd $WORKSPACE/archives/dmaapdr/datarouter/docker-compose/
 rm -rf docker-compose.yml
-cp $WORKSPACE/test/csit/plans/dcae-bulkpm/bulkpm-suite/composefile/docker-compose-e2e.yml $WORKSPACE/archives/dmaapdr/datarouter/docker-compose/docker-compose.yml
+cp $WORKSPACE/test/csit/plans/usecases/5G-bulkpm/composefile/docker-compose-e2e.yml $WORKSPACE/archives/dmaapdr/datarouter/docker-compose/docker-compose.yml
 docker login -u docker -p docker nexus3.onap.org:10001
 docker-compose up -d
 docker kill datarouter-prov
@@ -121,7 +121,7 @@
 sleep 2
 
 # Data File Collector configuration :
-cp $WORKSPACE/test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/datafile_endpoints.json /tmp/
+cp $WORKSPACE/test/csit/plans/usecases/5G-bulkpm/assets/datafile_endpoints.json /tmp/
 sed -i 's/dmaapmrhost/'${DMAAP_MR_IP}'/g' /tmp/datafile_endpoints.json
 sed -i 's/dmaapdrhost/'${DR_PROV_IP}'/g' /tmp/datafile_endpoints.json
 docker cp /tmp/datafile_endpoints.json dfc:/config/
@@ -129,13 +129,13 @@
 
 # SFTP Configuration:
 # Update the File Ready Notification with actual sftp ip address and copy pm files to sftp server.
-cp $WORKSPACE/test/csit/tests/dcae-bulkpm/testcases/assets/json_events/FileExistNotification.json $WORKSPACE/test/csit/tests/dcae-bulkpm/testcases/assets/json_events/FileExistNotificationUpdated.json
-sed -i 's/sftpserver/'${SFTP_IP}'/g' $WORKSPACE/test/csit/tests/dcae-bulkpm/testcases/assets/json_events/FileExistNotificationUpdated.json
-docker cp $WORKSPACE/test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/xNF.pm.xml.gz sftp:/home/admin/
+cp $WORKSPACE/test/csit/tests/usecases/5G-bulkpm/assets/json_events/FileExistNotification.json $WORKSPACE/test/csit/tests/usecases/5G-bulkpm-bulkpm/testcases/assets/json_events/FileExistNotificationUpdated.json
+sed -i 's/sftpserver/'${SFTP_IP}'/g' $WORKSPACE/test/csit/tests/usecases/5G-bulkpm/assets/json_events/FileExistNotificationUpdated.json
+docker cp $WORKSPACE/test/csit/plans/usecases/5G-bulkpm/assets/xNF.pm.xml.gz sftp:/home/admin/
 
 # Data Router Configuration:
 # Create default feed and create file consumer subscriber on data router
-curl -v -X POST -H "Content-Type:application/vnd.att-dr.feed" -H "X-ATT-DR-ON-BEHALF-OF:dradmin" --data-ascii @$WORKSPACE/test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/createFeed.json --post301 --location-trusted -k https://${DR_PROV_IP}:8443
-cp $WORKSPACE/test/csit/plans/dcae-bulkpm/bulkpm-suite/assets/addSubscriber.json /tmp/addSubscriber.json
+curl -v -X POST -H "Content-Type:application/vnd.att-dr.feed" -H "X-ATT-DR-ON-BEHALF-OF:dradmin" --data-ascii @$WORKSPACE/test/csit/plans/usecases/5G-bulkpm/assets/createFeed.json --post301 --location-trusted -k https://${DR_PROV_IP}:8443
+cp $WORKSPACE/test/csit/plans/usecases/5G-bulkpm/assets/addSubscriber.json /tmp/addSubscriber.json
 sed -i 's/fileconsumer/'${DR_SUBSCIBER_IP}'/g' /tmp/addSubscriber.json
-curl -v -X POST -H "Content-Type:application/vnd.att-dr.subscription" -H "X-ATT-DR-ON-BEHALF-OF:dradmin" --data-ascii @/tmp/addSubscriber.json --post301 --location-trusted -k https://${DR_PROV_IP}:8443/subscribe/1
\ No newline at end of file
+curl -v -X POST -H "Content-Type:application/vnd.att-dr.subscription" -H "X-ATT-DR-ON-BEHALF-OF:dradmin" --data-ascii @/tmp/addSubscriber.json --post301 --location-trusted -k https://${DR_PROV_IP}:8443/subscribe/1ii @/tmp/addSubscriber.json --post301 --location-trusted -k https://${DR_PROV_IP}:8443/subscribe/1
\ No newline at end of file
diff --git a/test/csit/plans/dcae-bulkpm/bulkpm-suite/teardown.sh b/test/csit/plans/usecases/5G-bulkpm/teardown.sh
similarity index 100%
rename from test/csit/plans/dcae-bulkpm/bulkpm-suite/teardown.sh
rename to test/csit/plans/usecases/5G-bulkpm/teardown.sh
diff --git a/test/csit/plans/dcae-bulkpm/bulkpm-suite/testplan.txt b/test/csit/plans/usecases/5G-bulkpm/testplan.txt
similarity index 82%
rename from test/csit/plans/dcae-bulkpm/bulkpm-suite/testplan.txt
rename to test/csit/plans/usecases/5G-bulkpm/testplan.txt
index 25a5d6e..c4e1c42 100644
--- a/test/csit/plans/dcae-bulkpm/bulkpm-suite/testplan.txt
+++ b/test/csit/plans/usecases/5G-bulkpm/testplan.txt
@@ -1,3 +1,3 @@
 # Test suites are relative paths under [integration.git]/test/csit/tests/.
 # Place the suites in run order.
-dcae-bulkpm/testcases
+usecases/5G-bulkpm
diff --git a/test/csit/tests/dcae-bulkpm/testcases/BulkpmE2E.robot b/test/csit/tests/usecases/5G-bulkpm/BulkpmE2E.robot
similarity index 96%
rename from test/csit/tests/dcae-bulkpm/testcases/BulkpmE2E.robot
rename to test/csit/tests/usecases/5G-bulkpm/BulkpmE2E.robot
index aa391ad..9098b1a 100644
--- a/test/csit/tests/dcae-bulkpm/testcases/BulkpmE2E.robot
+++ b/test/csit/tests/usecases/5G-bulkpm/BulkpmE2E.robot
@@ -4,7 +4,7 @@
 Library           OperatingSystem
 Library           Collections
 Library           Process
-Resource          resources/ves_keywords.robot
+Resource          resources/bulkpm_keywords.robot
 
 
 *** Variables ***
@@ -12,7 +12,7 @@
 ${GLOBAL_APPLICATION_ID}                 robot-ves
 ${VES_ANY_EVENT_PATH}                    /eventListener/v7
 ${HEADER_STRING}                         content-type=application/json
-${EVENT_DATA_FILE}                       %{WORKSPACE}/test/csit/tests/dcae-bulkpm/testcases/assets/json_events/FileExistNotificationUpdated.json
+${EVENT_DATA_FILE}                       %{WORKSPACE}/test/csit/tests/usecases/5G-bulkpm/assets/json_events/FileExistNotificationUpdated.json
 
 ${TARGETURL_TOPICS}                      http://${DMAAP_MR_IP}:3904/topics
 ${TARGETURL_SUBSCR}                      http://${DMAAP_MR_IP}:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12?timeout=1000
diff --git a/test/csit/tests/dcae-bulkpm/testcases/__init__.robot b/test/csit/tests/usecases/5G-bulkpm/__init__.robot
similarity index 100%
rename from test/csit/tests/dcae-bulkpm/testcases/__init__.robot
rename to test/csit/tests/usecases/5G-bulkpm/__init__.robot
diff --git a/test/csit/tests/dcae-bulkpm/testcases/assets/json_events/FileExistNotification.json b/test/csit/tests/usecases/5G-bulkpm/assets/json_events/FileExistNotification.json
similarity index 100%
rename from test/csit/tests/dcae-bulkpm/testcases/assets/json_events/FileExistNotification.json
rename to test/csit/tests/usecases/5G-bulkpm/assets/json_events/FileExistNotification.json
diff --git a/test/csit/tests/dcae-bulkpm/testcases/resources/ves_keywords.robot b/test/csit/tests/usecases/5G-bulkpm/resources/bulkpm_keywords.robot
similarity index 96%
rename from test/csit/tests/dcae-bulkpm/testcases/resources/ves_keywords.robot
rename to test/csit/tests/usecases/5G-bulkpm/resources/bulkpm_keywords.robot
index 76bc33f..6859ea0 100644
--- a/test/csit/tests/dcae-bulkpm/testcases/resources/ves_keywords.robot
+++ b/test/csit/tests/usecases/5G-bulkpm/resources/bulkpm_keywords.robot
@@ -1,7 +1,7 @@
  *** Settings ***
 Documentation     The main interface for interacting with VES. It handles low level stuff like managing the http request library and VES required fields
 Library 	      RequestsLibrary
-Library	          ../resources/VesLibrary.py 
+Library	          ../resources/xNFLibrary.py
 Library           OperatingSystem
 Library           Collections
 Library           requests
@@ -36,4 +36,3 @@
     [Arguments]     ${url}
     ${resp}=    	Evaluate    requests.get('${url}')    requests
     [Return]    	${resp}
-    
\ No newline at end of file
diff --git a/test/csit/tests/dcae-bulkpm/testcases/resources/VesLibrary.py b/test/csit/tests/usecases/5G-bulkpm/resources/xNFLibrary.py
similarity index 91%
rename from test/csit/tests/dcae-bulkpm/testcases/resources/VesLibrary.py
rename to test/csit/tests/usecases/5G-bulkpm/resources/xNFLibrary.py
index d1ec981..01574f7 100644
--- a/test/csit/tests/dcae-bulkpm/testcases/resources/VesLibrary.py
+++ b/test/csit/tests/usecases/5G-bulkpm/resources/xNFLibrary.py
@@ -7,7 +7,7 @@
 from Queue import Queue
 import uuid, time, json, threading,os, platform, subprocess,paramiko
 
-class VesLibrary(object):
+class xNFLibrary(object):
 
     def __init__(self):
         pass
@@ -21,5 +21,5 @@
         return uuid.uuid4()
 
 if __name__ == '__main__':
-    lib = VesLibrary()
+    lib = xNFLibrary()
     time.sleep(100000)
\ No newline at end of file