graphql-engine/server/tests-py/queries/v1/track_table/track_untrack_table.yaml
Auke Booij b03ed983f1 Remove spaces before colons in error messages and descriptions
This PR is the result of running the following commands:
```bash
$ git grep -l '".* : "' -- '*.hs' | xargs sed -i -E 's/(".*) : "/\1: "/'
$ scripts/dev.sh test --integration --accept
```

Also manually fixed a few tests and docs

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6148
GitOrigin-RevId: cf8b87605d41d9ce86613a41ac5fd18691f5a641
2022-10-01 14:48:58 +00:00

80 lines
1.3 KiB
YAML

- description: Track table
url: /v1/query
status: 200
response:
message: success
query:
type: track_table
args:
name: author
- description: Track already untracked table
url: /v1/query
status: 400
response:
code: already-tracked
error: 'view/table already tracked: "author"'
path: $.args
query:
type: track_table
args:
name: author
- description: Select query
url: /v1/query
status: 200
response:
- id: 1
name: Author 1
- id: 2
name: Author 2
query:
type: select
args:
table: author
columns:
- id
- name
#Untrack table
- description: Untrack table
url: /v1/query
status: 200
response:
message: success
query:
type: untrack_table
args:
table: author
#Untrack table
- description: Untrack table
url: /v1/query
status: 400
response:
code: already-untracked
error: 'view/table already untracked: "author"'
path: $.args
query:
type: untrack_table
args:
table: author
#Run a select query: error
- description: Select query error
url: /v1/query
status: 400
response:
path: $.args.table
error: table "author" does not exist
code: not-exists
query:
type: select
args:
table: author
columns:
- id
- name