deploy: align jt808 launchctl port
This commit is contained in:
@@ -107,6 +107,22 @@ class PortainerComposeResourceLimitsTest {
|
||||
.doesNotContain("/api/event-history/records");
|
||||
}
|
||||
|
||||
@Test
|
||||
void localLaunchctlJt808UsesCurrentHttpPort() throws IOException {
|
||||
Path launchctl = repositoryRoot().resolve("deploy/local/launchctl");
|
||||
String jt808Template = Files.readString(launchctl.resolve("com.lingniu.jt808.plist.template"));
|
||||
String readme = Files.readString(launchctl.resolve("README.md"));
|
||||
|
||||
assertThat(jt808Template)
|
||||
.contains("<key>HTTP_PORT</key>\n <string>20400</string>")
|
||||
.doesNotContain("20482");
|
||||
assertThat(readme)
|
||||
.contains("`jt808-ingest-app`: TCP `808`,HTTP `20400`")
|
||||
.contains("curl -sS http://127.0.0.1:20400/actuator/health")
|
||||
.contains("JT808 ingest: `http://127.0.0.1:20400/swagger-ui/index.html`")
|
||||
.doesNotContain("20482");
|
||||
}
|
||||
|
||||
@Test
|
||||
void operationRunbooksDescribeTdengineRawJsonHotPath() throws IOException {
|
||||
Path operations = repositoryRoot().resolve("docs/operations");
|
||||
|
||||
Reference in New Issue
Block a user