Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gil Mizrahi committed Jan 10, 2024
1 parent 0e44c77 commit 7507612
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 28 deletions.
27 changes: 27 additions & 0 deletions ndc-client/tests/json_schema/capabilities_response.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
}
]
},
"mutation": {
"anyOf": [
{
"$ref": "#/definitions/MutationCapabilities"
},
{
"type": "null"
}
]
},
"relationships": {
"anyOf": [
{
Expand Down Expand Up @@ -80,6 +90,23 @@
"description": "A unit value to indicate a particular leaf capability is supported. This is an empty struct to allow for future sub-capabilities.",
"type": "object"
},
"MutationCapabilities": {
"title": "Mutation Capabilities",
"type": "object",
"properties": {
"transactional": {
"description": "Does the connector support executing multiple mutations in a transaction.",
"anyOf": [
{
"$ref": "#/definitions/LeafCapability"
},
{
"type": "null"
}
]
}
}
},
"RelationshipCapabilities": {
"title": "Relationship Capabilities",
"type": "object",
Expand Down
1 change: 1 addition & 0 deletions ndc-reference/tests/capabilities/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"aggregates": {},
"variables": {}
},
"mutation": {},
"relationships": {
"relation_comparisons": {},
"order_by_aggregate": {}
Expand Down
10 changes: 0 additions & 10 deletions ndc-reference/tests/mutation/upsert_article/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@
"__value": null
}
]
},
{
"affected_rows": 1,
"returning": [
{
"__value": {
"id": 2
}
}
]
}
]
}
19 changes: 1 addition & 18 deletions ndc-reference/tests/mutation/upsert_article/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,7 @@
"column": "id"
}
}
},
{
"type": "procedure",
"name": "upsert_article",
"arguments": {
"article": {
"id": 2,
"title": "QuickCheck: a lightweight tool for random testing of Haskell programs",
"author_id": 2
}
},
"fields": {
"id": {
"type": "column",
"column": "id"
}
}
}
],
"collection_relationships": {}
}
}

0 comments on commit 7507612

Please sign in to comment.