-
Notifications
You must be signed in to change notification settings - Fork 20
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
Create end to end tests #986
Comments
I don't see an easy way to initialize trustify with ds3 once and then run multiple tests against it. The solutions I found so far mention manually doing so using ctor, lazy_static or once_cell. Do we have a preferred way of doing something like this? I would like to see if we can do this all in cargo test, instead of spawning multiple processes/containers to do so (if we can get away with it). @ctron @jcrossley3 @helio-frota |
We do have something similar, maybe a bit more heavyweight: https://github.com/trustification/trustify-load-test-runs/ It's orchestrated through the |
the db populate is done here yeah I have to say that once we have things working with trustify-load-tests it turns really handy - compose run, compose down etc... |
Thanks for the inputs. We discussed it a bit and the idea is that we should try to reuse existing dataset test and work in iterations to get fully automated e2e suite.
|
Pulling in @carlosthe19916 to this discussion as he's already done some work toward facilitating e2e testing which we use to affirm the integrity each PR merge. |
Hi everyone, is the strategy the UI is currently using for executing e2e tests. What it does is:
Reuse the current gh workflows is as easy as this PR https://github.com/trustification/trustify/pull/857/files (I think Jim made it even simpler with trustify/.github/workflows/latest-release.yaml Lines 71 to 77 in 7292e9b
I am not sure exactly what kind of tests you guys have in mind but perhaps we could write tests at https://github.com/trustification/trustify-api-tests and let the current workflows to do the rest. We only pay attention to write tests because the whole infrastructure and the tasks for providing an instance of Trustify should be taken care by some work IMO to do proper e2e tests we have to have a real instance of Trustify simulating what the final user will do to instantiate Trustify (which in the UI case is done by the operator). |
We need to replicate guac end to end tests that covers correlation bugs found in v1
In my mind it would be ideal to start with dataset test and make it easy to add new test cases.
The text was updated successfully, but these errors were encountered: