{ "description": "drop rel manual test", "depends": [ "permission.json" ], "items": [ { "name": "create_schema", "url": "/api/1/query", "role": "admin", "status_code": 400, "method": "POST", "user_id": "1", "response": { "path": "$", "error": "can not delete due to the following dependent objects - [(\"article\",permission,\"user (delete)\"),(\"article\",permission,\"user (insert)\"),(\"article\",permission,\"user (select)\"),(\"article\",permission,\"user (update)\")]" }, "request": { "kind": "drop_relationship", "body": { "table": "article", "relationship": "author", "cascade": false } } }, { "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": 400, "method": "POST", "user_id": "1", "response": { "path": "$", "error": "can not delete due to the following dependent objects - [(\"article\",permission,\"user (delete)\"),(\"article\",permission,\"user (insert)\"),(\"article\",permission,\"user (update)\")]" }, "request": { "kind": "drop_relationship", "body": { "table": "article", "relationship": "author", "cascade": false } } }, { "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": 400, "method": "POST", "user_id": "1", "response": { "path": "$", "error": "can not delete due to the following dependent objects - [(\"article\",permission,\"user (delete)\"),(\"article\",permission,\"user (update)\")]" }, "request": { "kind": "drop_relationship", "body": { "table": "article", "relationship": "author", "cascade": false } } }, { "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": 400, "method": "POST", "user_id": "1", "response": { "path": "$", "error": "can not delete due to the following dependent objects - [(\"article\",permission,\"user (delete)\")]" }, "request": { "kind": "drop_relationship", "body": { "table": "article", "relationship": "author", "cascade": false } } }, { "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_relationship", "body": { "table": "article", "relationship": "author", "cascade": false } } } ] }