From a3c0c5b31dfc813c88c5843641a0e2bd4c8ffa0f Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:17:04 -0400 Subject: [PATCH] chore: remove duplicate test method for verifying --from argument (#4307) --- .../cloud/tools/jib/cli/JarCommandTest.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java b/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java index d1c2bce75b..557b0ba703 100644 --- a/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java +++ b/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java @@ -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 {