chore(test): check that the response can contain unknown field #25330
check.yml
on: pull_request
setup
52s
notification
6s
Matrix: client_gen
client [email protected]
macos
7m 59s
client [email protected]
linux
4m 3s
push_and_release
0s
Annotations
14 errors
|
client [email protected]
Process completed with exit code 1.
|
|
client [email protected]
Process completed with exit code 1.
|
|
client [email protected]
Process completed with exit code 1.
|
|
client [email protected]
Process completed with exit code 1.
|
|
client [email protected]
Process completed with exit code 1.
|
|
client [email protected]
518 tests passed, 1 failed, 8 skipped.
|
|
client [email protected]
Process completed with exit code 1.
|
|
client [email protected]
Process completed with exit code 1.
|
|
src/client/search.test.ts > api > can handle unknown response fields:
tests/output/javascript/src/client/search.test.ts#L153
AssertionError: expected { minWordSizefor1Typo: 12, …(3) } to deeply equal { minWordSizefor1Typo: 12, …(2) }
- Expected
+ Received
{
"hitsPerPage": 14,
"minWordSizefor1Typo": 12,
"minWordSizefor2Typos": 13,
+ "unknownFieldNameThatWillNeverBeAddedToTheSpecIHope": "hello",
}
❯ src/client/search.test.ts:153:20
|
|
src/client/search.test.ts > api > can handle unknown response fields inside a nested oneOf:
tests/output/javascript/src/client/search.test.ts#L170
AssertionError: expected { objectID: 'ruleObjectID', …(1) } to deeply equal { objectID: 'ruleObjectID', …(1) }
- Expected
+ Received
@@ -2,10 +2,11 @@
"consequence": {
"promote": [
{
"objectID": "1",
"position": 10,
+ "unknownFieldNameThatWillNeverBeAddedToTheSpecIHope": "hello",
},
],
},
"objectID": "ruleObjectID",
}
❯ src/client/search.test.ts:170:20
|
|
client [email protected]
Process completed with exit code 1.
|
|
client [email protected]
Process completed with exit code 1.
|
|
client [email protected]
Process completed with exit code 1.
|
|
check_green
Process completed with exit code 1.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
clients-csharp
Expired
|
4.3 MB |
sha256:889042a9845dcea31abd53031c849dc6000a5a68ac86cfc60beb6a4ed6021b4e
|
|
|
clients-go
Expired
|
1.13 MB |
sha256:1c26241108f0b78275684efeef5a0da46560ff61e5b104e3b1c03b148315f114
|
|
|
clients-java
Expired
|
954 KB |
sha256:361d9ebf86b610f991430c50a9c8bfbaae19245b41eca98a8a37e10ea6bb6c92
|
|
|
clients-ruby
Expired
|
1.32 MB |
sha256:5a8d03cea74b334197247e21be203f60e5031852936ae84d9ac6bc85d377427f
|
|
|
clients-scala
Expired
|
1.17 MB |
sha256:889890ef5cf680595588971550bccfcb9f47f740a794b5602f7829677dcb970a
|
|
|
specs
Expired
|
217 KB |
sha256:def82fd941619586084da4f2747553b75c8ef35ff1a0ac5b49816379311fd6c0
|
|