aboutsummaryrefslogtreecommitdiffstats
path: root/plans/vfc-nfvo-lcm
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-04-20 10:30:42 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-04-20 11:04:19 +0800
commitd75b0dae366322ea8ea7991e7af99215893e7ab5 (patch)
tree7d713745e0a44766589d9906ae2798175c22588d /plans/vfc-nfvo-lcm
parent0a594cf5cb96a31bf7e5abb0d00844db25fa7408 (diff)
Add logs for lcm csit sh
Change-Id: I4c9ae67be67e7e220fbee59214930c0f610991fb Issue-ID: INT-1015 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'plans/vfc-nfvo-lcm')
-rwxr-xr-xplans/vfc-nfvo-lcm/sanity-check/setup.sh16
-rwxr-xr-xplans/vfc-nfvo-lcm/sanity-check/teardown.sh4
2 files changed, 10 insertions, 10 deletions
diff --git a/plans/vfc-nfvo-lcm/sanity-check/setup.sh b/plans/vfc-nfvo-lcm/sanity-check/setup.sh
index 7a739bad..c206c0b0 100755
--- a/plans/vfc-nfvo-lcm/sanity-check/setup.sh
+++ b/plans/vfc-nfvo-lcm/sanity-check/setup.sh
@@ -50,11 +50,11 @@ for i in {1..3}; do
sleep $i
done
-docker ps > 1.txt
-cat 1.txt
+docker ps > ps.txt
+cat ps.txt
echo "****************************"
-docker logs -f vfc-db > 2.txt &
-cat 2.txt
+docker logs -f vfc-db > db.txt &
+cat db.txt
# Need some time so service info can be synced from discovery to api gateway
echo sleep 60
@@ -71,15 +71,11 @@ for i in {1..10}; do
sleep $i
done
-curl http://${NSLCM_IP}:8403/api/nslcm/v1/swagger.json
-
-docker logs -f vfc-nslcm > 3.txt &
-cat 3.txt
+docker logs -f vfc-nslcm > dockerlogs.txt &
+cat dockerlogs.txt
docker cp vfc-nslcm:/service/vfc/nfvo/lcm/logs/runtime_lcm.log ./
cat runtime_lcm.log
-
-
# Pass any variables required by Robot test suites in ROBOT_VARIABLES
ROBOT_VARIABLES="-v MSB_IAG_IP:${MSB_IAG_IP} -v NSLCM_IP:${NSLCM_IP} -v SCRIPTS:${SCRIPTS}"
diff --git a/plans/vfc-nfvo-lcm/sanity-check/teardown.sh b/plans/vfc-nfvo-lcm/sanity-check/teardown.sh
index 6ddf7557..5fa01069 100755
--- a/plans/vfc-nfvo-lcm/sanity-check/teardown.sh
+++ b/plans/vfc-nfvo-lcm/sanity-check/teardown.sh
@@ -15,6 +15,10 @@
# limitations under the License.
#
+# print logs of lcm
+docker cp vfc-nslcm:/service/vfc/nfvo/lcm/logs/runtime_lcm.log ./
+cat runtime_lcm.log
+
# This script is sourced by run-csit.sh after Robot test completion.
kill-instance.sh msb_internal_apigateway
kill-instance.sh msb_discovery