1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
@prefix test: <http://ontologi.es/doap-tests#> .
@prefix deps: <http://ontologi.es/doap-deps#>.
@prefix httph:<http://www.w3.org/2007/ont/httph#> .
@prefix http: <http://www.w3.org/2007/ont/http#> .
@prefix nfo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
@prefix : <http://example.org/test#> .
:test_list a test:FixtureTable ;
test:fixtures :public_writeread_unauthn_alt .
:public_writeread_unauthn_alt a test:AutomatedTest ;
test:purpose "More elaborate HTTP vocab for PUT then GET test"@en ;
test:test_script <http://example.org/httplist#http_req_res_list_unauthenticated> ;
test:params [
test:steps (
[
test:request :public_writeread_unauthn_alt_put_req ;
test:response_assertion :public_writeread_unauthn_alt_put_res
]
[
test:request :public_writeread_unauthn_alt_get_req ;
test:response_assertion :public_writeread_unauthn_alt_get_res
]
)
] .
:public_writeread_unauthn_alt_put_req a http:RequestMessage ;
http:method "PUT" ;
httph:content_type "text/turtle" ;
http:content "</public/foobar.ttl#dahut> a <http://example.org/Cryptid> ." ;
http:requestURI </public/foobar.ttl> .
:public_writeread_unauthn_alt_put_res a http:ResponseMessage ;
http:status 201 .
:public_writeread_unauthn_alt_get_req a http:RequestMessage ;
http:method "GET" ;
http:requestURI </public/foobar.ttl> .
:public_writeread_unauthn_alt_get_res a http:ResponseMessage ;
httph:accept_post "text/turtle", "application/ld+json" ;
httph:content_type "text/turtle" .
<http://example.org/httplist#http_req_res_list_unauthenticated> a nfo:SoftwareItem ;
deps:test-requirement "Internal::Fixture::HTTPList"^^deps:CpanId ;
nfo:definesFunction "http_req_res_list_unauthenticated" .
|