Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure: HealthIT.testIfServicesAreDown #137

Open
leochr opened this issue Nov 25, 2024 · 1 comment
Open

Test failure: HealthIT.testIfServicesAreDown #137

leochr opened this issue Nov 25, 2024 · 1 comment

Comments

@leochr
Copy link
Member

leochr commented Nov 25, 2024

One of the test is failing in the CD pipeline. The container image can't be updated as a result.

[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   HealthIT.testIfServicesAreDown:45 Response code is not matching http://localhost:9080/health ==> expected: <503> but was: <200>
[INFO] 
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
@leochr
Copy link
Member Author

leochr commented Nov 25, 2024

The following error is the root cause of the test failure, as per the following logs:

java.io.FileNotFoundException: /workspace/app/sample-getting-started/resources/CustomConfigSource.json (No such file or directory)
	at java.base/java.io.FileInputStream.open([FileInputStream.java:219](http://fileinputstream.java:219/))
	at java.base/java.io.FileInputStream.<init>([FileInputStream.java:157](http://fileinputstream.java:157/))
	at java.base/java.io.FileReader.<init>([FileReader.java:75](http://filereader.java:75/))
	at it.io.openliberty.sample.health.HealthUtilIT.changeProperty([HealthUtilIT.java:68](http://healthutilit.java:68/))

The CustomConfigSource.json was moved recently (in PR #128). The reference to it in the tests should also be changed. I'll open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant