Adds final tests

This commit is contained in:
Copple authored and Bobbie Soedirgo committed 2021-11-10 19:15:00 +08:00
1 parent 3d94a82601
commit 33ff32d97f
1 file changed
+3 -3
+3 -3
View File
@@ -11,12 +11,12 @@ Content-Type: application/json
apikey: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYyNzIwODU0MCwiZXhwIjoxOTc0MzYzNzQwfQ.zcaQfHd3VA7XgJmdGfmV86OLVJT9s2MTmSy-e69BpUY
### [postgres-meta] 403 Forbidden: anon key not allowed
GET http://localhost:8000/pg/tables HTTP/1.1
GET http://localhost:8000/pg/health HTTP/1.1
content-type: application/json
apikey: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYyNzIwODU0MCwiZXhwIjoxOTc0MzYzNzQwfQ.zcaQfHd3VA7XgJmdGfmV86OLVJT9s2MTmSy-e69BpUY
### [postgres-meta] 200 OK: Service key is allowed
GET http://localhost:8000/pg/tables HTTP/1.1
### [postgres-meta] 200 OK: service_key is allowed
GET http://localhost:8000/pg/health HTTP/1.1
content-type: application/json
apikey: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaWF0IjoxNjI3MjA4NTQwLCJleHAiOjE5NzQzNjM3NDB9.pkT3PNpO4DtO45Ac5HK_TKCx8sGLgNtV__pr_ZrRSAU