graphql-engine/server/testcases/drop_fkey_cons_manual.json
2018-06-28 00:32:00 +05:30

113 lines
2.3 KiB
JSON

{
"description": "drop fkey constraint test - manual",
"depends": [
"permission.json"
],
"items": [
{
"name": "create_schema",
"url": "/api/1/query",
"role": "admin",
"status_code": 200,
"method": "POST",
"user_id": "1",
"request": {
"kind": "drop_insert_permission",
"body": {
"table": "article",
"role": "user"
}
}
},
{
"name": "create_schema",
"url": "/api/1/query",
"role": "admin",
"status_code": 200,
"method": "POST",
"user_id": "1",
"request": {
"kind": "drop_select_permission",
"body": {
"table": "article",
"role": "user"
}
}
},
{
"name": "create_schema",
"url": "/api/1/query",
"role": "admin",
"status_code": 200,
"method": "POST",
"user_id": "1",
"request": {
"kind": "drop_delete_permission",
"body": {
"table": "article",
"role": "user"
}
}
},
{
"name": "create_schema",
"url": "/api/1/query",
"role": "admin",
"status_code": 200,
"method": "POST",
"user_id": "1",
"request": {
"kind": "drop_update_permission",
"body": {
"table": "article",
"role": "user"
}
}
},
{
"name": "create_schema",
"url": "/api/1/query",
"role": "admin",
"status_code": 200,
"method": "POST",
"user_id": "1",
"request": {
"kind": "drop_relationship",
"body": {
"table": "article",
"relationship": "author"
}
}
},
{
"name": "create_schema",
"url": "/api/1/query",
"role": "admin",
"status_code": 200,
"method": "POST",
"user_id": "1",
"request": {
"kind": "drop_relationship",
"body": {
"table": "author",
"relationship": "articles"
}
}
},
{
"name": "create_schema",
"url": "/api/1/query",
"role": "admin",
"status_code": 200,
"method": "POST",
"user_id": "1",
"request": {
"kind": "drop_constraint",
"body": {
"table": "article",
"constraint": "article_author_id_fkey"
}
}
}
]
}