Skip to content

Commit

Permalink
add(http-protocol): http protocol in snippets tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clementbolin committed Mar 25, 2022
1 parent e88b4f0 commit 968cd6f
Show file tree
Hide file tree
Showing 153 changed files with 457 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ expected: true
protocols:
- http
- websocket

Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: ^{strategies=\[local\],\ _source={profileIds=\[default\],\ _kuzzle_info={.*}},\ _id=foo}$
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: ^{strategies=\[local\],\ _source={profileIds=\[default\],\ _kuzzle_info={.*}},\ _id=foo}$
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ hooks:
template: print-result
expected:
- {kuid=foo,\ username=foo}
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ hooks:
template: print-result
expected:
- {kuid=foo,\ username=foo}
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: [{controller=*,\ action=*,\ index=*,\ collection=*,\ value=allowed}]
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: [{controller=*,\ action=*,\ index=*,\ collection=*,\ value=allowed}]
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: [local]
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: [local]
protocols:
- http
- websocket
3 changes: 3 additions & 0 deletions doc/1/controllers/auth/login/snippets/login-java.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: ^{jwt=.*,\ _id=foo,\ ttl=3600000,\ expiresAt=[0-9]+}$
protocols:
- http
- websocket
3 changes: 3 additions & 0 deletions doc/1/controllers/auth/login/snippets/login-kotlin.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: ^{jwt=.*,\ _id=foo,\ ttl=3600000,\ expiresAt=[0-9]+}$
protocols:
- http
- websocket
3 changes: 3 additions & 0 deletions doc/1/controllers/auth/logout/snippets/logout-java.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: default
expected: Success
protocols:
- http
- websocket
3 changes: 3 additions & 0 deletions doc/1/controllers/auth/logout/snippets/logout-kotlin.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: default
expected: Success
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: ^{jwt=.*,\ _id=foo,\ ttl=3600000,\ expiresAt=[0-9]+}$
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: ^{jwt=.*,\ _id=foo,\ ttl=3600000,\ expiresAt=[0-9]+}$
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ hooks:
template: default
expected:
- Found 2 API keys matching 'LoRa'
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ hooks:
template: default
expected:
- Found 2 API keys matching 'LoRa'
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ hooks:
template: default
expected:
- Found 1 API key
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ hooks:
template: default
expected:
- Found 1 API key
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: {username=foo}
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: {username=foo}
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: ^{_source={profileIds=\[default\],\ _kuzzle_info={.+},\ age=42},\ _id=foo}$
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: ^{_source={profileIds=\[default\],\ _kuzzle_info={.+},\ age=42},\ _id=foo}$
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: [true]
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/users/foo?refresh=wait_for
template: print-result
expected: [true]
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ hooks:
curl -XDELETE kuzzle:7512/nyc-open-data
template: print-result
expected: 5
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ hooks:
curl -XDELETE kuzzle:7512/nyc-open-data
template: print-result
expected: 5
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/nyc-open-data
template: print-result
expected: 'successes=\[.*\], errors=\[\]'
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/nyc-open-data
template: print-result
expected: 'successes=\[.*\], errors=\[\]'
protocols:
- http
- websocket
3 changes: 3 additions & 0 deletions doc/1/controllers/bulk/m-write/snippets/mwrite-java.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/nyc-open-data
template: print-result
expected: 'successes=\[.*\], errors=\[\]'
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/nyc-open-data
template: print-result
expected: 'successes=\[.*\], errors=\[\]'
protocols:
- http
- websocket
3 changes: 3 additions & 0 deletions doc/1/controllers/bulk/write/snippets/write-java.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/nyc-open-data
template: print-result
expected: ^{_source={_kuzzle_info={.*}}, _id=.+, _version=[0-9]+}$
protocols:
- http
- websocket
3 changes: 3 additions & 0 deletions doc/1/controllers/bulk/write/snippets/write-kotlin.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ hooks:
after: curl -X DELETE kuzzle:7512/nyc-open-data
template: print-result
expected: ^{_source={_kuzzle_info={.*}}, _id=.+, _version=[0-9]+}$
protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ hooks:
curl -XPOST kuzzle:7512/nyc-open-data/_create
after:
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ hooks:
curl -XPOST kuzzle:7512/nyc-open-data/_create
after:
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ hooks:
before: curl -X POST kuzzle:7512/nyc-open-data/_create && curl -X PUT kuzzle:7512/nyc-open-data/yellow-taxi
after:
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ hooks:
before: curl -X POST kuzzle:7512/nyc-open-data/_create && curl -X PUT kuzzle:7512/nyc-open-data/yellow-taxi
after:
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ hooks:
curl -XPUT kuzzle:7512/nyc-open-data/yellow-taxi
after:
template: print-result
expected: "true"
expected: "true"protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ hooks:
curl -XPUT kuzzle:7512/nyc-open-data/yellow-taxi
after:
template: print-result
expected: "true"
expected: "true"protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ hooks:
before: curl -X POST kuzzle:7512/nyc-open-data/_create && curl -X PUT kuzzle:7512/nyc-open-data/yellow-taxi
after:
template: print-result
expected: "true"
expected: "true"protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ hooks:
before: curl -X POST kuzzle:7512/nyc-open-data/_create && curl -X PUT kuzzle:7512/nyc-open-data/yellow-taxi
after:
template: print-result
expected: "true"
expected: "true"protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ hooks:
curl -X PUT -H "Content-Type: application/json" -d '{ "strict": false, "fields": {"license": {"type": "string"} } }' kuzzle:7512/nyc-open-data/yellow-taxi/_specifications
after:
template: print-result
expected: 'fields'
expected: 'fields'protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ hooks:
curl -X PUT -H "Content-Type: application/json" -d '{ "strict": false, "fields": {"license": {"type": "string"} } }' kuzzle:7512/nyc-open-data/yellow-taxi/_specifications
after:
template: print-result
expected: 'fields'
expected: 'fields'protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ hooks:
before: curl -X POST kuzzle:7512/nyc-open-data/_create && curl -X PUT kuzzle:7512/nyc-open-data/pink-taxi && curl -X PUT kuzzle:7512/nyc-open-data/dark-taxi
after:
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ hooks:
before: curl -X POST kuzzle:7512/nyc-open-data/_create && curl -X PUT kuzzle:7512/nyc-open-data/pink-taxi && curl -X PUT kuzzle:7512/nyc-open-data/dark-taxi
after:
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ hooks:
curl -X PUT kuzzle:7512/nyc-open-data/yellow-taxi
after:
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ hooks:
curl -X PUT kuzzle:7512/nyc-open-data/yellow-taxi
after:
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ hooks:
}
}' kuzzle:7512/nyc-open-data/yellow-taxi/_specifications?refresh=wait_for
template: default
expected: 'fetched: 1'
expected: 'fetched: 1'protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ hooks:
}
}' kuzzle:7512/nyc-open-data/yellow-taxi/_specifications?refresh=wait_for
template: default
expected: 'fetched: 1'
expected: 'fetched: 1'protocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ hooks:
before: curl -X POST kuzzle:7512/nyc-open-data/_create && curl -X PUT kuzzle:7512/nyc-open-data/yellow-taxi
after:
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ hooks:
before: curl -X POST kuzzle:7512/nyc-open-data/_create && curl -X PUT kuzzle:7512/nyc-open-data/yellow-taxi
after:
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ hooks:
curl -X PUT kuzzle:7512/nyc-open-data/yellow-taxi/
after: curl -X DELETE kuzzle:7512/nyc-open-data/yellow-taxi/_specifications
template: default
expected: Success
expected: Successprotocols:
- http
- websocket
Loading

0 comments on commit 968cd6f

Please sign in to comment.