aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dmaap-buscontroller/with_dr/teardown.sh
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2021-03-29 09:25:03 +0100
committerefiacor <fiachra.corcoran@est.tech>2021-03-30 10:55:09 +0100
commit3d202b5a5f14587852e8519def7a07c4ca477686 (patch)
treee24ec636dbfb1af5518f0e91c929a759d960363c /plans/dmaap-buscontroller/with_dr/teardown.sh
parent1acefd84302a7ffa1981a270a7a8a2f17f71c271 (diff)
[DMAAP] Refactoring dmaap suites
Remove dmaap-bc ssl suite Remove 5gbulkpm as it runs in gating already Update bc suite to use latest image Issue-ID: DMAAP-1502 Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I14146fe616a2da49b5dcf9b4c98f9976fc65a86f
Diffstat (limited to 'plans/dmaap-buscontroller/with_dr/teardown.sh')
-rwxr-xr-xplans/dmaap-buscontroller/with_dr/teardown.sh20
1 files changed, 14 insertions, 6 deletions
diff --git a/plans/dmaap-buscontroller/with_dr/teardown.sh b/plans/dmaap-buscontroller/with_dr/teardown.sh
index c7a2d6d8..5e801423 100755
--- a/plans/dmaap-buscontroller/with_dr/teardown.sh
+++ b/plans/dmaap-buscontroller/with_dr/teardown.sh
@@ -18,9 +18,17 @@
# limitations under the License.
# ============LICENSE_END=========================================================
-if [ "$KEEP_DMAAP" != "Y" ]
-then
-kill-instance.sh dmaapbc
-cd $WORKSPACE/archives/dmaapdr/datarouter/datarouter-docker-compose/src/main/resources
-docker-compose down -v
-fi
+#kill-instance.sh dmaapbc
+cd ${WORKSPACE}/archives/dmaap/dr
+rm -rf last_run_logs/*
+docker cp datarouter-prov:/opt/app/datartr/logs last_run_logs/prov_logs
+docker cp datarouter-node:/opt/app/datartr/logs last_run_logs/node_event_logs
+docker cp datarouter-node:/var/log/onap/datarouter last_run_logs/node_server_logs
+docker cp subscriber-node:/var/log/onap/datarouter last_run_logs/sub1_logs
+docker cp subscriber-node2:/var/log/onap/datarouter last_run_logs/sub2_logs
+docker cp dmaap-bc:/opt/app/dmaapbc/logs/ONAP last_run_logs/bc_logs
+
+sudo sed -i".bak" '/dmaap-dr-prov/d' /etc/hosts
+sudo sed -i".bak" '/dmaap-dr-node/d' /etc/hosts
+docker-compose -f ${WORKSPACE}/scripts/dmaap-datarouter/docker-compose/docker-compose.yml rm -sf
+docker-compose -f ${WORKSPACE}/scripts/dmaap-buscontroller/docker-compose/docker-compose-bc.yml rm -sf