-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): fix contributor assertions
- Loading branch information
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ ENTRYPOINT "dimension/technologies" | |
HEADERS { | ||
x-user "john-doe" | ||
x-permission "pipelines:write" | ||
x-email "[email protected]" | ||
} | ||
|
||
With Class meta:SharedDimension { | ||
|
@@ -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 { | ||
|
@@ -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]" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 { | ||
|
@@ -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]" | ||
} | ||
} | ||
} | ||
|
||
|