Add logs for lcm csit sh 60/85860/3
authorfujinhua <fu.jinhua@zte.com.cn>
Sat, 20 Apr 2019 02:30:42 +0000 (10:30 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Sat, 20 Apr 2019 03:04:19 +0000 (11:04 +0800)
Change-Id: I4c9ae67be67e7e220fbee59214930c0f610991fb
Issue-ID: INT-1015
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
plans/vfc-nfvo-lcm/sanity-check/setup.sh
plans/vfc-nfvo-lcm/sanity-check/teardown.sh

index 7a739ba..c206c0b 100755 (executable)
@@ -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}"
index 6ddf755..5fa0106 100755 (executable)
 # 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