Migrate io-tests from bash to pytest

Authored-by: monacoremo <monacoremo>
This commit is contained in:
Remo Rechkemmer
2020-12-13 16:19:26 +01:00
committed by GitHub
parent 0c25f12825
commit 71fa87937b
8 changed files with 419 additions and 434 deletions
+35
View File
@@ -0,0 +1,35 @@
roleclaims:
- key: '.postgrest.a_role'
data:
postgrest:
a_role: postgrest_test_author
expected_status: 200
- key: '.customObject.manyRoles[1]'
data:
customObject:
manyRoles:
- other
- postgrest_test_author
expected_status: 200
- key: '."https://www.example.com/roles"[0].value'
data:
'https://www.example.com/roles':
- value: postgrest_test_author
expected_status: 200
- key: '.myDomain[3]'
data:
myDomain:
- other
- postgrest_test_author
expected_status: 401
- key: '.myRole'
data:
role: postgrest_test_author
expected_status: 401
invalidroleclaimkeys:
- 'role.other'
- '.role##'
- '.my_role;;domain'
- '.#$$%&$%/'
- ''
- '1234'