diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2019-04-05 14:31:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-05 14:31:28 +0000 |
commit | d9bff4f29a1eec5984b7808b02b3185482d6d95f (patch) | |
tree | 00f7966c34e347e034c84975d0eb770bcaa0344b /plans | |
parent | 9ddc27a76e286e77843db7c1c7296732be559f8c (diff) | |
parent | 40c1ddcef93d169922cdb2b95a817e2ff50a25ce (diff) |
Merge "CSIT tests for bbs-event-processor"
Diffstat (limited to 'plans')
3 files changed, 63 insertions, 0 deletions
diff --git a/plans/dcaegen2-services-bbs-event-processor/bbs-testsuites/setup.sh b/plans/dcaegen2-services-bbs-event-processor/bbs-testsuites/setup.sh new file mode 100644 index 00000000..9551ce43 --- /dev/null +++ b/plans/dcaegen2-services-bbs-event-processor/bbs-testsuites/setup.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +source ${SCRIPTS}/common_functions.sh + +export BBS_SERVICE="bbs" +# export SSL_BBS_SERVICE="ssl_bbs" +export DMAAP_SIMULATOR="dmaap_simulator" +export AAI_SIMULATOR="aai_simulator" + +cd ${WORKSPACE}/tests/dcaegen2/bbs-testcases/resources/ + +pip uninstall -y docker-py +pip uninstall -y docker +pip install -U docker==2.7.0 +docker-compose up -d --build + +BBS_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${BBS_SERVICE}) +# SSL_BBS_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${SSL_BBS_SERVICE}) +DMAAP_SIMULATOR_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${DMAAP_SIMULATOR}) +AAI_SIMULATOR_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${AAI_SIMULATOR}) + +bypass_ip_adress ${BBS_IP} +# bypass_ip_adress ${SSL_BBS_IP} +bypass_ip_adress ${DMAAP_SIMULATOR_IP} +bypass_ip_adress ${AAI_SIMULATOR_IP} + +echo BBS_IP=${BBS_IP} +# echo SSL_BBS_IP=${SSL_BBS_IP} +echo DMAAP_SIMULATOR_IP=${DMAAP_SIMULATOR_IP} +echo AAI_SIMULATOR_IP=${AAI_SIMULATOR_IP} + +# Wait for initialization of BBS services +# Same ports in the testcases docker compose +wait_for_service_init localhost:32100/heartbeat +#wait_for_service_init localhost:8200/heartbeat + +# #Pass any variables required by Robot test suites in ROBOT_VARIABLES +ROBOT_VARIABLES="-v DMAAP_SIMULATOR_SETUP:${DMAAP_SIMULATOR_IP}:2224 -v AAI_SIMULATOR_SETUP:${AAI_SIMULATOR_IP}:3335" + diff --git a/plans/dcaegen2-services-bbs-event-processor/bbs-testsuites/teardown.sh b/plans/dcaegen2-services-bbs-event-processor/bbs-testsuites/teardown.sh new file mode 100644 index 00000000..6cc85f54 --- /dev/null +++ b/plans/dcaegen2-services-bbs-event-processor/bbs-testsuites/teardown.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# +# Copyright 2017 Nokia, Inc. and others. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +kill-instance.sh bbs +# kill-instance.sh ssl_bbs +kill-instance.sh dmaap_simulator +kill-instance.sh aai_simulator diff --git a/plans/dcaegen2-services-bbs-event-processor/bbs-testsuites/testplan.txt b/plans/dcaegen2-services-bbs-event-processor/bbs-testsuites/testplan.txt new file mode 100644 index 00000000..9f1794bd --- /dev/null +++ b/plans/dcaegen2-services-bbs-event-processor/bbs-testsuites/testplan.txt @@ -0,0 +1,3 @@ +# Test suites are relative paths under [integration/csit.git]/tests/. +# Place the suites in run order. +dcaegen2/bbs-testcases |