MicroShed / MicroShed/microshed-testing

WithExposedPorts fails integrationtests

Open
#306 1 comment 0 reactions 1 assignee Claimed by @KyleAure View on GitHub
is:bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.