Skip to content

Commit

Permalink
Merge pull request #778 from innodreamer/master
Browse files Browse the repository at this point in the history
Update NCP driver Full Test script - Increase sleep-time after StartVM, ResumeVM, RebootVM
  • Loading branch information
powerkimhub authored Sep 30, 2022
2 parents 46011a9 + 5fb5442 commit 7a531cb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api-runtime/rest-runtime/test/full-test/ncp-full_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ sleep 1
echo "## 4. VM: StartVM"
curl -sX POST http://localhost:1024/spider/vm -H 'Content-Type: application/json' -d '{ "ConnectionName": "'${CONN_CONFIG}'", "ReqInfo": { "Name": "ncp-vm-01", "ImageName": "'${IMAGE_NAME}'", "VPCName": "ncp-vpc-01", "SubnetName": "ncp-subnet-01", "SecurityGroupNames": [ "default1", "default2" ], "VMSpecName": "'${SPEC_NAME}'", "KeyPairName": "ncp-key-01"} }' |json_pp

echo "============== sleep 50sec after start VM"
echo "============== sleep 120sec after start VM"

sleep 50
sleep 120

echo "## 4. VM: List"
curl -sX GET http://localhost:1024/spider/vm -H 'Content-Type: application/json' -d '{ "ConnectionName": "'${CONN_CONFIG}'"}' |json_pp
Expand Down Expand Up @@ -139,13 +139,13 @@ sleep 40
echo "## 4. VM: Resume"
curl -sX GET http://localhost:1024/spider/controlvm/ncp-vm-01?action=resume -H 'Content-Type: application/json' -d '{ "ConnectionName": "'${CONN_CONFIG}'"}' |json_pp

echo "============== sleep 20sec after resume VM"
sleep 20
echo "============== sleep 120sec after resume VM"
sleep 120
echo "## 4. VM: Reboot"
curl -sX GET http://localhost:1024/spider/controlvm/ncp-vm-01?action=reboot -H 'Content-Type: application/json' -d '{ "ConnectionName": "'${CONN_CONFIG}'"}' |json_pp

echo "============== sleep 70sec after reboot VM"
sleep 70
echo "============== sleep 120sec after reboot VM"
sleep 120
echo "#-----------------------------"

echo "####################################################################"
Expand Down

0 comments on commit 7a531cb

Please sign in to comment.