Skip to content

Commit

Permalink
chore: remove duplicate test method for verifying --from argument (#4307
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mpeddada1 authored Sep 9, 2024
1 parent ad27daf commit a3c0c5b
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,22 +323,6 @@ public void testSpringBootJar_packagedMode() throws IOException, InterruptedExce
new URL("http://" + HttpRequestTester.fetchDockerHostForHttpRequest() + ":8080"));
}

@Test
public void testJar_baseImageSpecified()
throws IOException, URISyntaxException, InterruptedException {
Path jarPath = Paths.get(Resources.getResource("jarTest/standard/noDependencyJar.jar").toURI());
Integer exitCode =
new CommandLine(new JibCli())
.execute(
"jar",
"--target=docker://cli-gcr-base",
"--from=gcr.io/google-appengine/openjdk:8",
jarPath.toString());
assertThat(exitCode).isEqualTo(0);
String output = new Command("docker", "run", "--rm", "cli-gcr-base").run();
assertThat(output).isEqualTo("Hello World");
}

public static void createJarFile(
String name, String className, String classPath, String mainClass)
throws IOException, URISyntaxException {
Expand Down

0 comments on commit a3c0c5b

Please sign in to comment.