Skip to content

Commit

Permalink
test(e2e): fix contributor assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Nov 5, 2024
1 parent f57c64a commit d0b216d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
13 changes: 8 additions & 5 deletions e2e-tests/shared-dimensions/term-set.hydra
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ ENTRYPOINT "dimension/technologies"
HEADERS {
x-user "john-doe"
x-permission "pipelines:write"
x-email "[email protected]"
}

With Class meta:SharedDimension {
Expand Down Expand Up @@ -45,10 +44,6 @@ With Class meta:SharedDimension {
Expect Property oa:canonical {
Expect Id <https://ld.admin.ch/cube/dimension/technologies/node-js>
}
Expect Property dcterms:contributor {
Expect Property schema:name "John Doe"
Expect Property schema:email "[email protected]"
}
}

Invoke {
Expand Down Expand Up @@ -92,11 +87,19 @@ With Class meta:SharedDimension {
schema:validFrom "2021-01-20T23:59:59Z"^^xsd:dateTime ;
schema:validThrough "2022-01-20T23:59:59Z"^^xsd:dateTime ;
sh:property [ ] ;
dcterms:contributor [
schema:name "Jane Doe" ;
schema:email "[email protected]" ;
] ;
.
```
} => {
Expect Status 200
Expect Property schema:validThrough
Expect Property dcterms:contributor {
Expect Property schema:name "Jane Doe"
Expect Property schema:email "[email protected]"
}
}
}
}
6 changes: 6 additions & 0 deletions e2e-tests/shared-dimensions/term-sets.hydra
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ PREFIX schema: <http://schema.org/>
PREFIX qudt: <http://qudt.org/schema/qudt/>
PREFIX meta: <https://cube.link/meta/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX dcterms: <http://purl.org/dc/terms/>

ENTRYPOINT "dimension/"

HEADERS {
x-user "john-doe"
x-permission "pipelines:write"
x-email "[email protected]"
}

With Class hydra:Resource {
Expand Down Expand Up @@ -52,6 +54,10 @@ With Class hydra:Resource {
Expect Property schema:name
Expect Property qudt:scaleType
Expect Property meta:dataKind
Expect Property dcterms:contributor {
Expect Property schema:name "john-doe"
Expect Property schema:email "[email protected]"
}
}
}

Expand Down

0 comments on commit d0b216d

Please sign in to comment.