-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix tests for adapting them to new API
- Loading branch information
Showing
8 changed files
with
267 additions
and
20 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
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
@prefix hmas: <https://purl.org/hmas/core/> . | ||
@prefix td: <https://www.w3.org/2019/wot/td#> . | ||
@prefix htv: <http://www.w3.org/2011/http#> . | ||
@prefix hctl: <https://www.w3.org/2019/wot/hypermedia#> . | ||
@prefix wotsec: <https://www.w3.org/2019/wot/security#> . | ||
@prefix dct: <http://purl.org/dc/terms/> . | ||
@prefix js: <https://www.w3.org/2019/wot/json-schema#> . | ||
@prefix saref: <https://w3id.org/saref#> . | ||
|
||
<http://localhost:8080/workspaces/sub> a td:Thing, hmas:Workspace; | ||
td:title "sub"; | ||
td:hasSecurityConfiguration [ a wotsec:NoSecurityScheme | ||
]; | ||
td:hasActionAffordance [ a td:ActionAffordance; | ||
td:name "makeArtifact"; | ||
td:hasForm [ | ||
htv:methodName "POST"; | ||
hctl:hasTarget <http://localhost:8080/workspaces/sub/artifacts/>; | ||
hctl:forContentType "application/json"; | ||
hctl:hasOperationType td:invokeAction | ||
]; | ||
td:hasInputSchema [ a js:ObjectSchema; | ||
js:properties [ a js:StringSchema; | ||
js:propertyName "artifactClass"; | ||
js:enum <http://example.org/Counter> | ||
], [ a js:ArraySchema; | ||
js:propertyName "initParams" | ||
], [ a js:StringSchema; | ||
js:propertyName "artifactName" | ||
]; | ||
js:required "artifactClass", "artifactName" | ||
] | ||
], [ a td:ActionAffordance; | ||
td:name "joinWorkspace"; | ||
td:hasForm [ | ||
htv:methodName "POST"; | ||
hctl:hasTarget <http://localhost:8080/workspaces/sub/join>; | ||
hctl:forContentType "application/json"; | ||
hctl:hasOperationType td:invokeAction | ||
] | ||
], [ a td:ActionAffordance; | ||
td:name "quitWorkspace"; | ||
td:hasForm [ | ||
htv:methodName "POST"; | ||
hctl:hasTarget <http://localhost:8080/workspaces/sub/leave>; | ||
hctl:forContentType "application/json"; | ||
hctl:hasOperationType td:invokeAction | ||
] | ||
], [ a td:ActionAffordance; | ||
td:name "focus"; | ||
td:hasForm [ | ||
htv:methodName "POST"; | ||
hctl:hasTarget <http://localhost:8080/workspaces/sub/focus>; | ||
hctl:forContentType "application/json"; | ||
hctl:hasOperationType td:invokeAction | ||
]; | ||
td:hasInputSchema [ a js:ObjectSchema; | ||
js:properties [ a js:StringSchema; | ||
js:propertyName "artifactName" | ||
], [ a js:StringSchema; | ||
js:propertyName "callbackIri" | ||
]; | ||
js:required "artifactName", "callbackIri" | ||
] | ||
], [ a td:ActionAffordance; | ||
td:name "createSubWorkspace"; | ||
td:hasForm [ | ||
htv:methodName "POST"; | ||
hctl:hasTarget <http://localhost:8080/workspaces/sub>; | ||
hctl:forContentType "application/json"; | ||
hctl:hasOperationType td:invokeAction | ||
] | ||
]; | ||
hmas:isContainedIn <http://localhost:8080/workspaces/test>; | ||
hmas:contains <http://localhost:8080/workspaces/sub/artifacts/c0>, <http://localhost:8080/workspaces/sub/agents/test_agent> . | ||
|
||
<http://localhost:8080/workspaces/test> a hmas:Workspace . | ||
|
||
<http://localhost:8080/workspaces/sub/artifacts/c0> a hmas:Artifact . | ||
|
||
<http://localhost:8080/workspaces/sub/agents/test_agent> a hmas:Artifact . |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@prefix hmas: <https://purl.org/hmas/core/> . | ||
@prefix td: <https://www.w3.org/2019/wot/td#> . | ||
@prefix htv: <http://www.w3.org/2011/http#> . | ||
@prefix hctl: <https://www.w3.org/2019/wot/hypermedia#> . | ||
@prefix wotsec: <https://www.w3.org/2019/wot/security#> . | ||
@prefix dct: <http://purl.org/dc/terms/> . | ||
@prefix js: <https://www.w3.org/2019/wot/json-schema#> . | ||
@prefix saref: <https://w3id.org/saref#> . | ||
|
||
<http://localhost:8080/workspaces/sub/agents/test_agent> a td:Thing, hmas:Artifact; | ||
td:title "test_agent"; | ||
td:hasSecurityConfiguration [ a wotsec:NoSecurityScheme | ||
] . | ||
|
||
<http://localhost:8080/workspaces/sub/agents/test_agent> hmas:isContainedIn <http://localhost:8080/workspaces/sub> . | ||
|
||
<http://localhost:8080/workspaces/sub> a hmas:Workspace . |
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@prefix td: <https://www.w3.org/2019/wot/td#> . | ||
@prefix htv: <http://www.w3.org/2011/http#> . | ||
@prefix hctl: <https://www.w3.org/2019/wot/hypermedia#> . | ||
@prefix wotsec: <https://www.w3.org/2019/wot/security#> . | ||
@prefix dct: <http://purl.org/dc/terms/> . | ||
@prefix js: <https://www.w3.org/2019/wot/json-schema#> . | ||
@prefix hmas: <https://purl.org/hmas/core/> . | ||
|
||
<http://localhost:8080/workspaces/test/agents/test> a td:Thing, hmas:Artifact; | ||
td:title "test"; | ||
td:hasSecurityConfiguration [ a wotsec:NoSecurityScheme | ||
] . |
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
Oops, something went wrong.