From 2cc303b3c39029897715cdca938a5b21b0cf47cb Mon Sep 17 00:00:00 2001 From: cdmikechen Date: Fri, 28 Jul 2023 22:28:30 +0800 Subject: [PATCH] remove cookies --- .../apache/submarine/server/AbstractSubmarineServerTest.java | 1 - .../test/java/org/apache/submarine/AbstractSubmarineIT.java | 3 --- 2 files changed, 4 deletions(-) diff --git a/submarine-server/server-core/src/test/java/org/apache/submarine/server/AbstractSubmarineServerTest.java b/submarine-server/server-core/src/test/java/org/apache/submarine/server/AbstractSubmarineServerTest.java index 5c0e400e6b..4535e08445 100644 --- a/submarine-server/server-core/src/test/java/org/apache/submarine/server/AbstractSubmarineServerTest.java +++ b/submarine-server/server-core/src/test/java/org/apache/submarine/server/AbstractSubmarineServerTest.java @@ -263,7 +263,6 @@ protected static PostMethod httpPost(String path, String request, String mediaTy PostMethod postMethod = new PostMethod(URL + path); postMethod.setRequestBody(request); postMethod.setRequestHeader("Content-type", mediaType); - //postMethod.getParams().setCookiePolicy(CookiePolicy.IGNORE_COOKIES); if (userAndPasswordAreNotBlank(user, pwd)) { postMethod.setRequestHeader("Authorization", "Bearer " + createToken(user, pwd)); diff --git a/submarine-test/test-e2e/src/test/java/org/apache/submarine/AbstractSubmarineIT.java b/submarine-test/test-e2e/src/test/java/org/apache/submarine/AbstractSubmarineIT.java index c407756c45..9cb127acc3 100644 --- a/submarine-test/test-e2e/src/test/java/org/apache/submarine/AbstractSubmarineIT.java +++ b/submarine-test/test-e2e/src/test/java/org/apache/submarine/AbstractSubmarineIT.java @@ -23,12 +23,9 @@ import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.StringUtils; import org.openqa.selenium.By; -import org.openqa.selenium.JavascriptExecutor; -import org.openqa.selenium.Keys; import org.openqa.selenium.NoSuchElementException; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; -import org.openqa.selenium.TimeoutException; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.ExpectedConditions;