-
Notifications
You must be signed in to change notification settings - Fork 148
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
Extract creating of ESS deployment for integration tests in a separate mage target #4931
Comments
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
I'm trying to extract an independent
The only solution I found is to delegate stack provisioning to the @blakerouse @cmacknz @rdner I would appreciate your ideas. Do you happen to know an easier way to achieve that? |
Do not move I don't see any OGC specific things in Another option would be to add a |
Thanks for the advice!
I mostly mean the State. It keeps both: instances and stacks states. I think it makes sense to decouple the states to make the ESS stack provisioner independent |
As we agreed on the Eng Prod Office hours I migrated the ESS provisioning logic to terraform. It now looks much simpler. To test it I'm running the integration tests directly on BK agents. It's a bit out of scope but it's easier to test the terraform this way. For not the ESS stack is created and destroyed as planned. However, the tests are failing due to batching misconfiguration. Now I'm trying to run integration tests with a simple |
Integration tests are running on BK agents. I have a problem with sudo tests. The agent hung up when I switched the user to the root. Solving that |
Had to create Basic custom VM images for elastic-agent to add |
The ESS deployment creation is extracted to a different script file. And it's proven that the terraform managed deployment works for integration tests. The deployment is being successfully deleted after the tests execution. We can wrap the script into a mage target or use some golang terraform API. |
Describe the enhancement:
There should be a separate mage target for creation of the ESS deployment that we use for integration testing.
Describe a specific use case for the enhancement or feature:
We should be able to do it separately to running the actual tests, so we are more flexible with how we run the tests.
What is the definition of done?
There is a mage target that runs an ESS deployment according to the integration test requirements.
StatefulProvisioner
ServerlessProvisioner
InstanceProvisioner
The text was updated successfully, but these errors were encountered: