-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-tests.http
More file actions
48 lines (33 loc) · 1.36 KB
/
api-tests.http
File metadata and controls
48 lines (33 loc) · 1.36 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
##########################################################################################
## Test when running as ballerina service (bal run api-gateway) ###
##########################################################################################
# ping ==> should be OK
GET http://0.0.0.0:9091/api/v1/apigw/ping
###
# warriors ==> should be OK
GET http://0.0.0.0:9091/api/v1/apigw/warriors
apikey: Z2FtZTpnYW1lMQ==
###
# warriors ==> should be KO (unauthorized) when messing apikey
GET http://0.0.0.0:9091/api/v1/apigw/warriors
###
# warriors ==> should be KO (unauthorized) on invali apikey
GET http://0.0.0.0:9091/api/v1/apigw/warriors
apikey: G02TheBeach==
##########################################################################################
#### Test when running as kubernetes service (kubectl apply -f .../apigateway) ####
##########################################################################################
# ping ==> should be OK
GET http://0.0.0.0:9091/api/v1/apigw/ping
###
# warriors ==> should be OK
GET http://techwatch.io/api/v1/apigw/warriors
apikey: Z2FtZTpnYW1lMQ==
###
# warriors ==> should be KO (unauthorized) when messing apikey
GET http://techwatch.io/api/v1/apigw/warriors
###
# warriors ==> should be KO (unauthorized) on invali apikey
GET http://techwatch.io/api/v1/apigw/warriors
apikey: G02TheBeach==
###