Skip to content

Commit 32b2be3

Browse files
Fix BootstrapTests to its previous state as path user.dir + "/../scripts/boot/uaa.yml" correctly navigates from the uaa subdirectory up to the project root, then into scripts/boot/, so no need to use the classpath (which was not being loaded correctly and was making some tests to fail as this is some config needed for tests)
1 parent 80fbee6 commit 32b2be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uaa/src/test/java/org/cloudfoundry/identity/uaa/login/BootstrapTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private static SamlIdentityProviderDefinition providerByAlias(
122122
private static ConfigurableApplicationContext getServletContext(
123123
final String profiles,
124124
final String uaaYamlPath) {
125-
System.setProperty("LOGIN_CONFIG_URL", "classpath:uaa.yml");
125+
System.setProperty("LOGIN_CONFIG_URL", "file:" + System.getProperty("user.dir") + "/../scripts/boot/uaa.yml");
126126
System.setProperty("UAA_CONFIG_URL", "classpath:" + uaaYamlPath);
127127

128128
abstractRefreshableWebApplicationContext.setServletContext(mockServletContext);

0 commit comments

Comments
 (0)