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

[POC] HANA scale-up e2e tests with a real cluster #1337

Merged
merged 4 commits into from
Apr 26, 2023
Merged

Conversation

fabriziosestito
Copy link
Member

@fabriziosestito fabriziosestito commented Apr 17, 2023

This PR is a PoC that adds an automated test that spins up a HANA scale-up cluster.
The test involves running checks and comparing the output with the expected results.

It can be used as a base to script other automated tests or scenarios.

It uses Terraform to deploy a real infrastructure on AWS, ansible to deploy trento server and the agents, and cypress to run the e2e tests.
Destroying the infrastructure requires a workaround since the VPC is created with some dependencies that Terraform doesn't seem to be able to manage.
I've added a Cypress env variable to skip photofinish scenario loading at the beginning of the test, and to make the test skippable in the current e2e tests. Maybe in the future we should separate the test folders.
As for now, the action can be triggered by a workflow_dispatch event (manually) and only works with the rolling version of trento.
In the future, we could consider deploying a specific commit, generalize the version for another scenario, and use composite actions.

@fabriziosestito fabriziosestito changed the title WIP Add HANA scale-up e2e tests with a real cluster Apr 19, 2023
@fabriziosestito fabriziosestito force-pushed the e2e-gh-actions branch 2 times, most recently from e2be05c to 77fa296 Compare April 19, 2023 06:10
@fabriziosestito fabriziosestito changed the title Add HANA scale-up e2e tests with a real cluster [PoC] HANA scale-up e2e tests with a real cluster Apr 19, 2023
@fabriziosestito fabriziosestito changed the title [PoC] HANA scale-up e2e tests with a real cluster [POC] HANA scale-up e2e tests with a real cluster Apr 19, 2023
- name: Checkout terraform repo
uses: actions/checkout@v3
with:
repository: fabriziosestito/trento-e2e
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MEMO to self: change to main repo when decided which AMI to use

Copy link
Contributor

@arbulu89 arbulu89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @fabriziosestito
Really valuable
PD: I think unfortunately already got outdated with the latest changes on the trento-ansible project

Copy link
Contributor

@arbulu89 arbulu89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!
So this is only dispatched on demand, right?
Super cool

Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! 🚀

@fabriziosestito fabriziosestito merged commit f45d57c into main Apr 26, 2023
@fabriziosestito fabriziosestito deleted the e2e-gh-actions branch April 26, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants