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

Lyo/LDPTestSuiteExploration

< Lyo
Revision as of 10:57, 24 March 2014 by Sspeiche.us.ibm.com (Talk | contribs) (References)

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