Skip to content

Commit

Permalink
Merge pull request #156 from reshmabidikar/work-for-154
Browse files Browse the repository at this point in the history
Fix for ci failure
  • Loading branch information
reshmabidikar authored Feb 27, 2024
2 parents faf0f2a + bee573d commit deff2f5
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 deff2f5

Please sign in to comment.