Skip to content

Commit

Permalink
Address the review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Thevakumar-Luheerathan committed Oct 9, 2023
1 parent 8646506 commit a7352c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
*/
public class MavenCustomRepoTest {

private static final String org = "luheerathan";
private static final String org = "bctestorg";
private static final String packagename = "pact";
private static final String version = "0.2.0";
private static final String GITHUB_REPO_ID = "github1";
Expand All @@ -62,7 +62,6 @@ public class MavenCustomRepoTest {
private Path actualHomeDirectoryClone;
private Map<String, String> envVariables;


@BeforeClass()
public void setUp() throws IOException {
TestUtils.setupDistributions();
Expand Down Expand Up @@ -124,7 +123,6 @@ public void testPullBalaGithub() throws IOException, InterruptedException {
.resolve(GITHUB_REPO_ID).resolve("bala").resolve(org).resolve(packagename).resolve(version);
Assert.assertTrue(Files.exists(packagePath.resolve("any")));
deleteFiles(this.actualHomeDirectory.resolve("repositories").resolve(GITHUB_REPO_ID), false);

}

@Test(description = "Build a package offline using a module from Github packages",
Expand All @@ -136,7 +134,7 @@ public void testBuildBalaGithubOffline() throws IOException, InterruptedExceptio
.resolve("test-resolution"),
args, this.envVariables);
String buildErrors = getString(build.getErrorStream());
Assert.assertTrue(buildErrors.contains("cannot resolve module 'luheerathan/pact as _'"));
Assert.assertTrue(buildErrors.contains("cannot resolve module '" + org + "/pact as _'"));
}

@Test(description = "Build a package Online using a module from Github packages",
Expand All @@ -156,7 +154,6 @@ public void testBuildBalaGithubOnline() throws IOException, InterruptedException
Assert.assertTrue(buildOutput.contains("Generating executable\n\ttarget/bin/test.jar"));
}


@AfterClass
private void cleanup() throws IOException {
deleteFiles(actualHomeDirectory, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class MavenCustomRepoTestUtils {

/**
* Create Settings.toml inside the home repository.
*
* @param dirPath folder path to the settings toml
* @throws IOException i/o exception when writing to file
*/
static void createSettingToml(Path dirPath) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
jsjj
jsjj
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@ version = "0.1.0"
[build-options]
observabilityIncluded = true


[[dependency]]
org = "luheerathan"
name = "pact"
version = "0.2.0"
repository="github1"




0 comments on commit a7352c4

Please sign in to comment.