build: expose current jt808 docker port
This commit is contained in:
@@ -23,6 +23,16 @@ class WoodpeckerPipelineTest {
|
||||
assertThat(countOccurrences(pipeline, "- name: docker-build-")).isEqualTo(1);
|
||||
}
|
||||
|
||||
@Test
|
||||
void dockerImageExposesOnlyCurrentProductionPorts() throws IOException {
|
||||
String dockerfile = Files.readString(repositoryRoot().resolve("Dockerfile"));
|
||||
|
||||
assertThat(dockerfile)
|
||||
.contains("EXPOSE 20100 20200 20300 20400 20500 32960 808")
|
||||
.doesNotContain("10808")
|
||||
.doesNotContain("8089");
|
||||
}
|
||||
|
||||
private static int countOccurrences(String value, String needle) {
|
||||
int count = 0;
|
||||
int from = 0;
|
||||
|
||||
Reference in New Issue
Block a user