Skip to content

Commit

Permalink
[Improve][Rest api]add verifyHtmlResponse test case (#7919)
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx authored Oct 27, 2024
1 parent 23cc78b commit 72664f3
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 @@ -984,6 +984,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 72664f3

Please sign in to comment.