Skip to content

Commit

Permalink
Fix for ci failure
Browse files Browse the repository at this point in the history
  • Loading branch information
reshmabidikar committed Feb 27, 2024
1 parent 9b91f22 commit bee573d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public UrlResolverFactory(final KpmProperties kpmProperties) {
// add something like "/content/repositories" at this point.
private String getValidUrlIfSonatype(final String url) {
return url.contains("oss.sonatype.org") ?
String.format("%s/content/repositories/%s", kpmProperties.getNexusUrl(), kpmProperties.getNexusRepository()) :
String.format("%scontent/repositories/%s", kpmProperties.getNexusUrl(), kpmProperties.getNexusRepository()) :
url;
}

Expand All @@ -56,7 +56,7 @@ public UriResolver getVersionsProviderUrlResolver() {
final AuthenticationMethod authMethod = AuthenticationMethod.valueOf(kpmProperties.getNexusAuthMethod().toUpperCase());
switch (authMethod) {
case NONE:
String baseUrl = getValidUrlIfSonatype(kpmProperties.getNexusUrl() + "/" + kpmProperties.getNexusRepository());
String baseUrl = getValidUrlIfSonatype(kpmProperties.getNexusUrl() + kpmProperties.getNexusRepository());
return new NoneUriResolver(baseUrl);

case BASIC:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public void beforeMethod() {
@Test(groups = "slow")
public void testGetAvailablePlugins() {
// Get plugin info from actual, default, killbill plugins_directory.yml. See DefaultPluginsDirectoryDAO
GetAvailablePluginsModel result = pluginManager.getAvailablePlugins("0.18.0", true);
Assert.assertEquals(result.getKillbillArtifactsVersion().getKillbill(), "0.18.0");
GetAvailablePluginsModel result = pluginManager.getAvailablePlugins("0.24.0", true);
Assert.assertEquals(result.getKillbillArtifactsVersion().getKillbill(), "0.24.0");
Assert.assertFalse(result.getAvailablePlugins().isEmpty());

try {
Expand Down

0 comments on commit bee573d

Please sign in to comment.