w3c/ldp-testsuite — pull request #35 by fserena (2014-06-17 10:05:10+00:00)
Title: Allow sending domain-specific resources to servers

All test cases that send (POST or PUT) a resource to the server always use the same hard-coded set of triples (Bug model). This implies that the test suite can only be applied to servers without domain restrictions.

This modification facilitates customization of this dummy resource in order to avoid errors that actually are not. In case it is necessary to specify the resource representation to be used, it would be nice to provide a way to link it to the Test Suite so that it can be deserialized within the postContent() method (LDPTest class). If this resource is not provided, the TS could still use the hard-coded resource.

The resource representation would be stored in a file i.e. resource.ttl, so its content can be read from an InputStream and, in the end, deserialized into a model in replacement of the hard-coded one.