-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Spaces] Moved tests to agnostic setup #200606
base: main
Are you sure you want to change the base?
[Spaces] Moved tests to agnostic setup #200606
Conversation
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
/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 |
efed4f7
to
585fcec
Compare
06a8199
to
e82dcfe
Compare
…kibana into space-deployment-agnostic
) { | ||
const license = config.get('esTestCluster.license'); | ||
|
||
if (!user || license !== 'trial') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
@@ -139,7 +139,7 @@ | |||
"id": "conflict_2_default", | |||
"originId": "conflict_2", | |||
"references": [], | |||
"type": "sharedtype", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
@@ -34,5 +34,11 @@ module.exports = { | |||
'@typescript-eslint/no-floating-promises': 'error', | |||
}, | |||
}, | |||
{ | |||
files: ['*spaces_api_integration/common/services/basic_auth_supertest.ts'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agent.auth(this.user.username!, this.user.password!);
Needed to suppress the eslint error for this line in out custom test service, the promise is awaited in the tests itself and adding a catch
block breaks some of the test cases
💔 Build Failed
Failed CI Steps
Test Failures
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
Summary
Summarize your PR. If it involves visual changes include a screenshot or gif.
Checklist