Skip to content

Commit a3c0c5b

Browse files
authored
chore: remove duplicate test method for verifying --from argument (#4307)
1 parent ad27daf commit a3c0c5b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -323,22 +323,6 @@ public void testSpringBootJar_packagedMode() throws IOException, InterruptedExce
323323
new URL("http://" + HttpRequestTester.fetchDockerHostForHttpRequest() + ":8080"));
324324
}
325325

326-
@Test
327-
public void testJar_baseImageSpecified()
328-
throws IOException, URISyntaxException, InterruptedException {
329-
Path jarPath = Paths.get(Resources.getResource("jarTest/standard/noDependencyJar.jar").toURI());
330-
Integer exitCode =
331-
new CommandLine(new JibCli())
332-
.execute(
333-
"jar",
334-
"--target=docker://cli-gcr-base",
335-
"--from=gcr.io/google-appengine/openjdk:8",
336-
jarPath.toString());
337-
assertThat(exitCode).isEqualTo(0);
338-
String output = new Command("docker", "run", "--rm", "cli-gcr-base").run();
339-
assertThat(output).isEqualTo("Hello World");
340-
}
341-
342326
public static void createJarFile(
343327
String name, String className, String classPath, String mainClass)
344328
throws IOException, URISyntaxException {

0 commit comments

Comments
 (0)