Skip to content

Commit

Permalink
feat: hidden-graph
Browse files Browse the repository at this point in the history
fix e2e-tests
  • Loading branch information
mchlrch committed Mar 14, 2024
1 parent b380cca commit c33daf9
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 16 deletions.
3 changes: 2 additions & 1 deletion e2e-tests/csv-source/delete.hydra
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ With Class api:EntryPoint {
<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
rdfs:label "Delete Source Test Project" ;
dcterms:identifier "delete-csv-test-cube" ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 201
Expand Down
3 changes: 2 additions & 1 deletion e2e-tests/csv-source/get-csv.hydra
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ With Class api:EntryPoint {
<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
rdfs:label "GetCSV Test Project" ;
dcterms:identifier "get-csv-test-cube" ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 201
Expand Down
3 changes: 2 additions & 1 deletion e2e-tests/csv-source/upload.hydra
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ With Class api:EntryPoint {
<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
rdfs:label "Upload Test Project" ;
dcterms:identifier "upload-test-cube" ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 201
Expand Down
27 changes: 18 additions & 9 deletions e2e-tests/cube-projects/create-invalid.hydra
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ With Class api:EntryPoint {
prefix schema: <http://schema.org/>

<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 400
Expand All @@ -32,7 +33,8 @@ With Class api:EntryPoint {
prefix cc: <https://cube-creator.zazuko.com/vocab#>
prefix schema: <http://schema.org/>
<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/Foo> ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 400
Expand All @@ -48,7 +50,8 @@ With Class api:EntryPoint {

<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
rdfs:label "" ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 400
Expand All @@ -65,7 +68,8 @@ With Class api:EntryPoint {
<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
rdfs:label "Test Project" ;
cc:namespace <http://example.com/test-cube> ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 400
Expand All @@ -84,7 +88,8 @@ With Class api:EntryPoint {
<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
rdfs:label "Test Project" ;
dcterms:identifier "ubd/28" ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 400
Expand All @@ -103,7 +108,8 @@ With Class api:EntryPoint {
<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
rdfs:label "Test Project" ;
dcterms:identifier "example/px-cube" ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 400
Expand All @@ -123,7 +129,8 @@ With Class api:EntryPoint {
rdfs:label "Test Project" ;
CubeProject:sourceCube <https://environment.ld.admin.ch/foen/ubd/28> ;
CubeProject:sourceEndpoint <http://db.cube-creator.lndo.site/px-cube> ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 400
Expand All @@ -143,7 +150,8 @@ With Class api:EntryPoint {
rdfs:label "Test Project" ;
CubeProject:sourceCube <https://environment.ld.admin.ch/foen/example/px-cube> ;
CubeProject:sourceEndpoint <http://db.cube-creator.lndo.site/px-cube> ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 400
Expand All @@ -163,7 +171,8 @@ With Class api:EntryPoint {
rdfs:label "Test Project" ;
CubeProject:sourceCube <https://environment.ld.admin.ch/bafu/example/px2> ;
CubeProject:sourceEndpoint <http://db.cube-creator.lndo.site/px-cube> ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 400
Expand Down
7 changes: 5 additions & 2 deletions e2e-tests/cube-projects/create.hydra
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ With Class api:EntryPoint {
<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
rdfs:label "Test Project" ;
dcterms:identifier "test-cube" ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 201
Expand All @@ -41,6 +42,7 @@ With Class api:EntryPoint {
Expect Property schema:maintainer
Expect Property dcterms:identifier
Expect Property cc:export
Expect Property cc:isHiddenCube
Expect Link cc:projectDetails {
Expect Property schema:hasPart
}
Expand Down Expand Up @@ -73,7 +75,8 @@ With Class api:EntryPoint {
<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
rdfs:label "Test Project" ;
dcterms:identifier "test-cube" ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 400
Expand Down
3 changes: 2 additions & 1 deletion e2e-tests/cube-projects/delete.hydra
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ With Class api:EntryPoint {
<> cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
rdfs:label "Deleted Test Project" ;
dcterms:identifier "delete-test-cube" ;
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> .
schema:maintainer <https://cube-creator.lndo.site/organization/bafu> ;
cc:isHiddenCube true .
```
} => {
Expect Status 201
Expand Down
3 changes: 2 additions & 1 deletion e2e-tests/cube-projects/update.hydra
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ With Class cc:CubeProject {
cc:dataset <cube-project/ubd/dataset> ;
cc:jobCollection <cube-project/ubd/jobs> ;
cc:latestPublishedRevision 1 ;
cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> .
cc:projectSourceKind <https://cube-creator.zazuko.com/vocab#projectSourceKind/CSV> ;
cc:isHiddenCube true .
```
} => {
Expect Status 200
Expand Down

0 comments on commit c33daf9

Please sign in to comment.