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
|
@prefix test: <http://ontologi.es/doap-tests#> .
@prefix deps: <http://ontologi.es/doap-deps#>.
@prefix dc: <http://purl.org/dc/terms/> .
@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 ( :invalid_url ).
:invalid_url a test:AutomatedTest ;
test:purpose "Test for content on external URL that is invalid"@en ;
test:test_script <http://example.org/httplist#http_req_res_list_unauthenticated> ;
test:params [
test:steps (
[
test:request :invalid_url_req ;
test:response_assertion :invalid_url_res
]
)
] .
:invalid_url_req a http:RequestMessage ;
http:method "PUT" ;
httph:content_type "text/turtle" ;
http:content <http://example.invalid./dahut> ;
http:requestURI </public/foobar.ttl> .
:invalid_url_res a http:ResponseMessage ;
http:status 500 .
<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" .
|