mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
[DSC-963] Fixed Sword tests
This commit is contained in:
@@ -47,7 +47,7 @@ import org.springframework.test.context.TestPropertySource;
|
|||||||
*/
|
*/
|
||||||
// Ensure the RDF endpoint IS ENABLED before any tests run.
|
// Ensure the RDF endpoint IS ENABLED before any tests run.
|
||||||
// This annotation overrides default DSpace config settings loaded into Spring Context
|
// This annotation overrides default DSpace config settings loaded into Spring Context
|
||||||
@TestPropertySource(properties = {"rdf.enabled = true"})
|
@TestPropertySource(properties = {"rdf.enabled = true", "server.servlet.context-path = /"})
|
||||||
public class RdfIT extends AbstractWebClientIntegrationTest {
|
public class RdfIT extends AbstractWebClientIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@@ -34,7 +34,7 @@ import org.springframework.test.context.TestPropertySource;
|
|||||||
*/
|
*/
|
||||||
// Ensure the SWORD SERVER IS ENABLED before any tests run.
|
// Ensure the SWORD SERVER IS ENABLED before any tests run.
|
||||||
// This annotation overrides default DSpace config settings loaded into Spring Context
|
// This annotation overrides default DSpace config settings loaded into Spring Context
|
||||||
@TestPropertySource(properties = {"sword-server.enabled = true"})
|
@TestPropertySource(properties = { "sword-server.enabled = true", "server.servlet.context-path = /" })
|
||||||
public class Swordv1IT extends AbstractWebClientIntegrationTest {
|
public class Swordv1IT extends AbstractWebClientIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@@ -34,7 +34,7 @@ import org.springframework.test.context.TestPropertySource;
|
|||||||
*/
|
*/
|
||||||
// Ensure the SWORDv2 SERVER IS ENABLED before any tests run.
|
// Ensure the SWORDv2 SERVER IS ENABLED before any tests run.
|
||||||
// This annotation overrides default DSpace config settings loaded into Spring Context
|
// This annotation overrides default DSpace config settings loaded into Spring Context
|
||||||
@TestPropertySource(properties = {"swordv2-server.enabled = true"})
|
@TestPropertySource(properties = {"swordv2-server.enabled = true", "server.servlet.context-path = /"})
|
||||||
public class Swordv2IT extends AbstractWebClientIntegrationTest {
|
public class Swordv2IT extends AbstractWebClientIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
Reference in New Issue
Block a user