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

HttpServer in kubernetes #1140

Closed
hmmlopez opened this issue Apr 3, 2024 · 3 comments
Closed

HttpServer in kubernetes #1140

hmmlopez opened this issue Apr 3, 2024 · 3 comments

Comments

@hmmlopez
Copy link

hmmlopez commented Apr 3, 2024

Citrus Version
Latest

Question
We have an application (SUT) running in Kubernetes (OpenShift) that is calling some backends using http. How can we setup some test that are sending (httpClient) messages to the SUT deployed in OpenShift, and mock the backend endpoints with HttpServer in CitrusFramework?

What I've tried so far
When starting the application locally I can easily test it just pointing the backend endpoints to the localhost httpserver port of citrusframework. But how can I achieve the same when deployed in Openshift?

Additional information
We are running our pipeline in Jenkins, which deploys our application (SUT) with AWX and then should be able to run the integration test (inside or outside kubernetes). Now it’s running the integration test (not citrusframework) outside kubernetes by checking out some code and run it. As httpserver we are using a deployed wiremock server in kubernetes for the backend mocking.

@bbortt
Copy link
Collaborator

bbortt commented Apr 3, 2024

you're looking for the https://github.com/citrusframework/citrus-simulator. you'd have to start the simulator in a second container, side by side with your SUT. there, I think it lacks the following features (which I planned to implement for quit a while):

  • loading simulations at runtime

or wiremock, which offers a container image as well.

a "back-link" into the pipeline is not possible - not due to constraints from citrusframework/citrus, but simply because of the nature of build systems. generally speaking. of course, in some setups, exposing build pipelines might be possible.

@bbortt
Copy link
Collaborator

bbortt commented May 29, 2024

any news @hmmlopez? did you find what you're looking fore?

@hmmlopez
Copy link
Author

I went ahead with wiremock, but it would be nice if citrus-simulator has that functionality.

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

No branches or pull requests

2 participants