Skip to content

Commit

Permalink
Merge pull request quarkusio#40484 from stuartwdouglas/fix-test
Browse files Browse the repository at this point in the history
Fix test issue
  • Loading branch information
stuartwdouglas authored May 7, 2024
2 parents 9619c79 + 6a886d2 commit 5fbf0b6
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import static org.hamcrest.Matchers.emptyOrNullString;

import java.net.Inet4Address;
import java.net.UnknownHostException;

import org.junit.jupiter.api.Test;
Expand All @@ -20,13 +19,9 @@ public class DevUIRemoteCorsTest {

@Test
public void test() throws UnknownHostException {
String origin = Inet4Address.getLocalHost().toString();
if (origin.contains("/")) {
origin = "http://" + origin.split("/")[1] + ":8080";
}
String methods = "GET,POST";
RestAssured.given()
.header("Origin", origin)
.header("Origin", "http://evilsite.com")
.header("Access-Control-Request-Method", methods)
.when()
.options("q/dev-ui/configuration-form-editor").then()
Expand Down

0 comments on commit 5fbf0b6

Please sign in to comment.