Skip to content

Commit 2bb2abc

Browse files
committed
Update scripts
1 parent 8a19319 commit 2bb2abc

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

scripts/auth.basic/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ response=$(curl -kv -u alice:alice123 https://localhost:9090/orders/view)
2020
assertNotEmpty $response
2121
echo -e "\nBallerina service response: $response"
2222
assertSuccess $response
23+
24+
exit 0

scripts/auth.jwt/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ do
5555
echo -e "\nBallerina service response: $response"
5656
assertSuccess $response
5757
done
58+
59+
exit 0

scripts/auth.ldap/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ response=$(curl -kv -u janedoe:janedoe123 https://localhost:9090/orders/view)
2020
assertNotEmpty $response
2121
echo -e "\nBallerina service response: $response"
2222
assertSuccess $response
23+
24+
exit 0

scripts/auth.oauth2/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ response=$(curl -kv -H "AUTHORIZATION: Bearer $token" https://localhost:9090/ord
5252
assertNotEmpty $response
5353
echo -e "\nBallerina service response: $response"
5454
assertSuccess $response
55+
56+
exit 0

scripts/common/validate.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ assertAuthzFailure() {
1717
}
1818

1919
assertSuccess() {
20-
if [[ $1 == *"items"* ]]; then
21-
exit 0
20+
if [[ $1 != *"items"* ]]; then
21+
exit 1
2222
fi
23-
exit 1
2423
}

0 commit comments

Comments
 (0)