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

Bugfix: cannot start http server #13

Merged

Conversation

turing85
Copy link
Contributor

@turing85 turing85 commented Sep 5, 2024

Resolves #2.

Add container descriptor handler for spring boot's meta inf.

The server cannot be started because the spring NamespaceHandler cannot be found. Adding the container descriptor handler resolves the issue.

This is the workaround mentioned in #2 (comment), moved to the default descriptors.

The server cannot be started because the spring `NamespaceHandler` cannot be found. Adding the container descriptor handler resolves the issue.

This is the workaround mentioned in citrusframework#2 (comment), moved to the default descriptors.
We want to copy the logs from the citrus container before the maven execution fails. This makes it necessary to split the execution and verification of the citrus tests into different maven phases, so we can "move" the execution of docker:copy, docker:stop and docker:remove "between" test execution and test verification.
In the current implementation, citrus-remote:test and docker:copy are executed within the same stage. This makes the order of execution dependent on the plugin order within the pom.xml. By providing a separate stage (post-integration-test), the only critical part is that docker:copy is executed before docker:stop and docker:remove. This makes the order of execution still dependent on the order in which the executions in the docker plugin are defined, but only within the same plugin.
Copy link

github-actions bot commented Sep 5, 2024

🚦Reports 🚦

Reports will be posted here as they get available.

🥳 Citrus Tests passed

Passed Failed Skipped
✅ 1 ❌ 0 ⚠️ 0

You can see the report here.

@turing85 turing85 mentioned this pull request Sep 6, 2024
@christophd christophd merged commit 891af02 into citrusframework:main Sep 6, 2024
3 checks passed
@turing85 turing85 deleted the bugfix/cannot-start-http-server branch September 6, 2024 08:33
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

Successfully merging this pull request may close these issues.

HTTP server cannot be started due to Context intialization failure
2 participants