Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Lyo/LDPTestSuiteExploration"

< Lyo
(References)
Line 30: Line 30:
  
 
== References ==
 
== References ==
 +
* [https://dvcs.w3.org/hg/ldpwg/raw-file/b3683634c29f/Test%20Cases/LDP%20Test%20Cases.html W3C LDP Test cases]
 
* [http://www.w3.org/2012/ldp/wiki/Testing W3C LDP Testing page]
 
* [http://www.w3.org/2012/ldp/wiki/Testing W3C LDP Testing page]

Revision as of 10:57, 24 March 2014

Page will gather various notes about how a LDP test suite may be implemented, with looking not just at the general needs of LDP server implementations but also how it can be leveraged for OSLC needs.

Options being explored

Sample test:

@Test(groups = { MUST }, dependsOnMethods = { "testCreateResource" } ) 
public void testResourceHasLdpLinkHeader() throws URISyntaxException {
	RestAssured.given()
		.header(ACCEPT, TEXT_TURTLE)
		.expect().statusCode(HttpStatus.SC_OK).header(LINK, LDPR_LINK_HEADER_VALUE)
		.when().get(new URI(uri));
}

Sample test:

frisby.create('MUST: Test Link header on LDPR')
      .addHeader('Accept', 'text/turtle')
      .head(resourceURI)
      .expectStatus(200)
      .expectHeaderContains('Link', '<http://www.w3.org/ns/ldp#Resource>; rel="type"')
      .toss();

References

Back to the top