Open picandocodigo opened 10 months ago
@picandocodigo thanks for putting all these new YAML tests together, this iwll be a game changer for us!
I think this proposal makes sense for many reasons:
teardown
instead of having a clean-up phase at the end of each tests. This will drastically improve the speed of testing and also the consistency, since the tests will become more isolated, without tedious cascading effects that we had in the past. :+1: stack
and serverless
but I think we should also tag the versions for the stack release (i.e. as we have today). That said, potentially we'll need to create a separate repository for the stack
tests, even because the serverless
test will have a different versioning system (i.e. API version). I'm not sure about this, I think we need to discuss more.I think we need also to tag
or release
the tests with the stack number version (e.g. 8.12.1).
Given this project, we've talked about doing the same for the Elasticsearch Stack clients: write our own YAML tests instead of depending on the Elasticsearch ones.
This would give us several advantages:
teardown
on each test, there's no need to have a clean-up phase. This is constantly being updated and in a lot of cases has been the cause for the clients build braking. It would save a lot of execution time: deleting only necessary artifacts created for the test, not having toget
lists of artifacts and delete one by one, and I'm sure we'll see our integration tests build take less time. We would also run less tests, but the cleanup phase is run after every single test on the current architecture. It would also save developer time, not having to update the clean-up phase every time something changes, tests should have their own clean-up.tests
as is, and use it for the "common" tests, tests that will run both in Stack and Serverless.stack
.serverless
.catch
,headers
and potentially other features from the previous test set. The current tests are already usingdo
,match
,set
,gt
,gte
,lt
,lte
,is_true
,setup
andteardown
.