File tree Expand file tree Collapse file tree 5 files changed +10
-3
lines changed
Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,5 @@ response=$(curl -kv -u alice:alice123 https://localhost:9090/orders/view)
2020assertNotEmpty $response
2121echo -e " \nBallerina service response: $response "
2222assertSuccess $response
23+
24+ exit 0
Original file line number Diff line number Diff line change 5555 echo -e " \nBallerina service response: $response "
5656 assertSuccess $response
5757done
58+
59+ exit 0
Original file line number Diff line number Diff line change @@ -20,3 +20,5 @@ response=$(curl -kv -u janedoe:janedoe123 https://localhost:9090/orders/view)
2020assertNotEmpty $response
2121echo -e " \nBallerina service response: $response "
2222assertSuccess $response
23+
24+ exit 0
Original file line number Diff line number Diff line change @@ -52,3 +52,5 @@ response=$(curl -kv -H "AUTHORIZATION: Bearer $token" https://localhost:9090/ord
5252assertNotEmpty $response
5353echo -e " \nBallerina service response: $response "
5454assertSuccess $response
55+
56+ exit 0
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ assertAuthzFailure() {
1717}
1818
1919assertSuccess () {
20- if [[ $1 = = * " items" * ]]; then
21- exit 0
20+ if [[ $1 ! = * " items" * ]]; then
21+ exit 1
2222 fi
23- exit 1
2423}
You can’t perform that action at this time.
0 commit comments