core
core copied to clipboard
[tests-only][full-ci] Change oC selector for http requests before step execution (Parallel deployment)
Description
In this PR, I have implemented a way to run API tests with different matrices (server combination for Given-When-Then steps) for oc10-ocis parallel deployment setup.
For example, Given steps can be run with oC10 server, When steps with oCIS server and same goes for Then steps.
To achieve this feature, the function beforeEachStepChangeOCSelector
has been added which runs before every test step, determines the step type, and sets the server selector in the requests.
Server selector for each step type is set through env variables:
GIVEN_OC_SELECTOR
WHEN_OC_SELECTOR
THEN_OC_SELECTOR
Related Issue
Part of https://github.com/owncloud/ocis/issues/2932
Motivation and Context
How Has This Been Tested?
- test environment: CI
Screenshots (if appropriate):
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Database schema changes (next release will require increase of minor version instead of patch)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Technical debt
- [x] Tests only (no source changes)
Checklist:
- [ ] Code changes
- [ ] Unit tests added
- [ ] Acceptance tests added
- [ ] Documentation ticket raised:
- [ ] Changelog item, see TEMPLATE
~Blocked until https://github.com/owncloud/ocis/issues/2932#issuecomment-1144587011~
:boom: Acceptance tests pipeline apiProxySmoke-8-3-mariadb10.2-php7.4 failed. The build has been cancelled.
https://drone.owncloud.com/owncloud/core/36044/180
@saw-jan is this ready for review? or?
@saw-jan is this ready for review? or?
I thought to make it ready for review only after all the tests running in parallel deployment are looked through. Because some changes might need to be done.
As of now, tests for parallel deployment are not of higher priority. I will put this on the backlog.
tests are moved to oCIS repo: https://github.com/owncloud/ocis/pull/5280 So these changes should be done in oCIS now.