Skip to content

Commit ce6fe1b

Browse files
Copilotcubap
andauthored
Add provider contract validation CI and tinynode-to-rerum fixture
Agent-Logs-Url: https://github.com/CenterForDigitalHumanities/rerum_server_nodejs/sessions/35103546-cf43-4e3a-8f6b-9289eda2e8f3 Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
1 parent 60971bb commit ce6fe1b

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Provider Contract Validation
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
validate-tinynode-to-rerum:
11+
uses: cubap/rerum_openapi/.github/workflows/seam-runtime-validation.yml@main
12+
with:
13+
contract_repo_ref: main
14+
seam_manifest_path: seams/tinynode-to-rerum/manifest.yaml
15+
target_base_url: https://store.rerum.io/v1
16+
compare_paths: true
17+
compare_operations: true
18+
fixture_file: test/contract-fixtures/tinynode-to-rerum.yaml
19+
timeout_ms: 10000
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
interactions:
2+
- description: Read an existing object by id
3+
path: /id/{id}
4+
method: get
5+
expectedStatus: "200"
6+
response:
7+
body:
8+
"@id": https://store.rerum.io/v1/id/test123
9+
"@type": "http://www.w3.org/ns/oa#Annotation"
10+
__rerum:
11+
APIversion: "1.1.0"
12+
generatedBy: https://store.rerum.io/agent
13+
history:
14+
prime: https://store.rerum.io/v1/id/test123
15+
next: []
16+
previous: ""
17+
isReleased: ""
18+
releaseDate: ""
19+
releases:
20+
next: []
21+
previous: ""
22+
replaces: ""
23+
24+
- description: Query objects with a filter
25+
path: /api/query
26+
method: post
27+
request:
28+
"@type": "http://www.w3.org/ns/oa#Annotation"
29+
expectedStatus: "200"
30+
response:
31+
body:
32+
- "@id": https://store.rerum.io/v1/id/test123
33+
"@type": "http://www.w3.org/ns/oa#Annotation"
34+
__rerum:
35+
APIversion: "1.1.0"
36+
generatedBy: https://store.rerum.io/agent
37+
history:
38+
prime: https://store.rerum.io/v1/id/test123
39+
next: []
40+
previous: ""
41+
isReleased: ""
42+
releaseDate: ""
43+
releases:
44+
next: []
45+
previous: ""
46+
replaces: ""

0 commit comments

Comments
 (0)