[Spaces] Moved tests to agnostic setup#200606
Conversation
|
/ci |
9 similar comments
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
8fedf64 to
f6def7f
Compare
|
/ci |
2df08a0 to
1464f66
Compare
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7634[❌] x-pack/test/spaces_api_integration/deployment_agnostic/stateful.config_trial.ts: 0/10 tests passed. |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7635[❌] x-pack/test/spaces_api_integration/deployment_agnostic/stateful.config_trial.ts: 0/1 tests passed. |
|
/ci |
|
/сi |
06a8199 to
e82dcfe
Compare
There was a problem hiding this comment.
Important
We have a shared test suite for basic/trial licenses, which includes tests for both authorized and unauthorized users. Decoupling these tests is a complex and time-consuming task that requires careful consideration to avoid ending up with a significant amount of duplicated test code for different licenses.
Our custom service for RoleScopedSupertest takes it into account license and user passed/not passed to adjust needed supertest accordingly.
There was a problem hiding this comment.
Note
sharedtype changed to event-annotation-group SO
isolatedtype changed to url SO
I failed to change sharedtype to index-pattern SO type since I was getting a lot of missing references errors, probably it was due to the fact that index-pattern was migrated to the multiple namespace from 8.0.0
There was a problem hiding this comment.
Interesting. I wonder if they were just missing some information. There is an index pattern in the data file, and it contains this:
"migrationVersion": {
"index-pattern": "8.0.0"
},
There was a problem hiding this comment.
agent.auth(this.user.username!, this.user.password!);Needed to suppress the eslint error for this line in our custom test service, the promise is awaited in the tests itself and adding a catch block breaks some of the test cases
eslint-disable line gets removed because this rule runs dynamically
x-pack/test/spaces_api_integration/common/services/test_data_loader.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Note
Decided to not add complexity to the custom roleScopedSupertest to accommodate this use case, so made it in place.
There was a problem hiding this comment.
Note
There are no machine_learning_admin, machine_learning_user and monitoring_user roles in serverless.
We could rather move it to it's own test only for stateful or define custom roles, would like to have suggestions on this one 🙂
5e7de03 to
23bc295
Compare
Added in 23bc295 |
| } = copyToSpaceTestSuiteFactory(context); | ||
|
|
||
| describe('copy to spaces', () => { | ||
| this.tags('skipMKI'); |
There was a problem hiding this comment.
Hello there, what's the reason for these 4 skip on mki tags?
I ask as this PR is about being agnostic but it looks liek 4 suites are not agnostic.
Is there an issue on this already?
There was a problem hiding this comment.
This test suite uses custom roles and custom roles cannot be provisioned for MKI in the FTR yet.
That was agreed that we would disable it for now
There was a problem hiding this comment.
Ok, so can we have a link to the issue for this just above this line?
If not, I'm afraid it will never be followed-up and remain skipped.
We've way too many test gaps already :(
There was a problem hiding this comment.
I will link the issue in the comment
There was a problem hiding this comment.
@wayneseymour is there anything else? I'm waiting only for your approval 🙂
jeramysoucy
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the updates!
|
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
## Summary Moved space tests to deployment agnostic setup. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios __Closes: https://github.com/elastic/kibana/issues/194584__ --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
## Summary Moved space tests to deployment agnostic setup. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios __Closes: https://github.com/elastic/kibana/issues/194584__ --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
Moved space tests to deployment agnostic setup.
Checklist
Closes: #194584