forked from keptn/keptn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_new_artifact.sh
executable file
·28 lines (20 loc) · 1003 Bytes
/
test_new_artifact.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
source test/utils.sh
echo "---------------------------------------------"
echo "- Sending new artifact for mongo -"
echo "---------------------------------------------"
echo ""
# send new artifcat for database
keptn send event new-artifact --project=$PROJECT --service=carts-db --image=mongo --sequence=artifact-delivery-db
verify_test_step $? "keptn send event new-artifact --project=${PROJECT} --service=carts-db --image=mongo - failed"
# wait until mongodb has been deployed
wait_for_deployment_in_namespace "carts-db" "$PROJECT-dev"
verify_test_step $? "Deployment carts-db not available, exiting ..."
# send new artifact for carts
test/utils/send_new_artifact_sockshop.sh $PROJECT docker.io/keptnexamples/carts 0.10.1 artifact-delivery
# wait before sending the next artifact
echo "Waiting 30sec before continue ..."
sleep 30
echo "Send new artifact now"
test/utils/send_new_artifact_sockshop.sh $PROJECT docker.io/keptnexamples/carts 0.10.3 artifact-delivery
exit 0