MicroShed / MicroShed/microshed-testing
WithExposedPorts fails integrationtests
- Dominant language
- Java
- Stars
- 68
- Forks
- 25
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 6
Description
**Describe the bug**
The integration test JaxrsJsonIT, running in GA, fails once the property: .withExposedPorts(9080,9443) is set. In the log I see the readynessprobe is trying to contact the app via the https port, but that will not work as nothing is set for https traffic.
**To Reproduce**
Add:
` @Container
public static ApplicationContainer app = new ApplicationContainer()
.withExposedPorts(9080,9443)
.withAppContextRoot("/myservice")
.withReadinessPath("/myservice/app/people");`
In JaxrsJsonIT classfile of sample app jaxrs-json and run CI.
**Expected behavior**
The exposedports should be mapped correctly to the app. Might be wrong setup of the testclass. Needs triage.
**System information:**
- OS: Linux
- Java Version: 11
- MicroShed Testing Version: 0.9.2
Contributor guide
Assessment
This issue has not been assessed yet.