Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ public Environment findOne(String application, String profile, String label) {
}
String[] profiles = StringUtils.commaDelimitedListToStringArray(profile);
Environment environment = new Environment(application, profiles, label, null, null);
if (!config.startsWith("application")) {
config = "application," + config;
}
// the shared "application" is always included, duplicates are removed below
config = "application," + config;
List<String> applications = new ArrayList<>(
new LinkedHashSet<>(Arrays.asList(StringUtils.commaDelimitedListToStringArray(config))));
List<String> envs = new ArrayList<>(new LinkedHashSet<>(Arrays.asList(profiles)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import org.springframework.cloud.config.server.environment.EnvironmentRepository;
import org.springframework.cloud.config.server.environment.JdbcEnvironmentProperties;
Expand Down Expand Up @@ -61,13 +59,6 @@ protected EnvironmentRepositoryFixture fixture() {
return this.fixture;
}

@Override
@Test
@Disabled("TODO-issue: Shared application properties are skipped when the application name starts with application")
public void applicationNameStartingWithApplicationIncludesSharedFiles() throws Exception {
super.applicationNameStartingWithApplicationIncludesSharedFiles();
}

static class Fixture implements EnvironmentRepositoryFixture {

private final JdbcTemplate jdbc = new JdbcTemplate(database);
Expand Down
Loading