Skip to content

Commit

Permalink
add verifyHtmlResponse test case
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx committed Oct 26, 2024
1 parent 18dcca3 commit 13e73fc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,31 @@ public void testGetThreadDump() {
});
}

@Test
public void verifyHtmlResponseBasic() {
Arrays.asList(node2, node1)
.forEach(
instance -> {
ports.forEach(
(key, value) -> {
given().get(
HOST
+ value
+ node1Config
.getEngineConfig()
.getHttpConfig()
.getContextPath())
.then()
.statusCode(200)
.contentType(containsString("text/html"))
.body(containsString("<html"))
.body(
containsString(
"<title>Seatunnel Engine UI</title>"));
});
});
}

@AfterEach
void afterClass() {
if (engineClient != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ seatunnel:
namespace: /tmp/seatunnel/checkpoint_snapshot/
http:
enable-http: false
port: 8080
context-path: /seatunnel
port: 8080
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ seatunnel:
metric:
enabled: false
http:
port: 8080
context-path: /seatunnel
enable-http: true
port: 8080

0 comments on commit 13e73fc

Please sign in to comment.