-
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
[ci] run server integration tests #81698
[ci] run server integration tests #81698
Conversation
50ac6ea
to
2a58bb2
Compare
2a58bb2
to
8834218
Compare
…-server-integration-tests-in-ci
…ky test, reduce further
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Pinging @elastic/kibana-operations (Team:Operations) |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Do you have an example of the tests that are running now? I did a quick search for |
@jbudz When I look at https://kibana-ci.elastic.co/job/elastic+kibana+pipeline-pull-request/85587/testReport/ I see Looks like most tests are using the |
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.
? matches[1] + matches[3].replace('/', '') | ||
: kibanaUrl.replace('/', ''); | ||
const url = new URL(this.resolveUrl('/')); | ||
url.username = ''; |
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.
Nice! 👍
`${this.kibanaUrlNoAuth}${path}`, | ||
init as FetchRequestInit | ||
) as unknown) as Promise<Response>; | ||
requestWithApiKey(path: string, init?: RequestInit) { |
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.
It would be great if KbnClient could also support what this method is doing it. I had found that there is no way to add custom set of headers to .request()
, thus why we created this subclass. Our use case was for a utility that create "fake" agents in Fleet, whose APIs only accept API keys
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.
Yeah, definitely something we can add to the KbnClient
class, mind logging an issue which outlines the desire and assign me? Simply being able to add headers or disable auth for a specific request seems like a pretty simple param change to the KbnClient
but I'm not 100% sure.
Co-authored-by: spalger <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: spalger <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: spalger <[email protected]> Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # packages/kbn-dev-utils/src/index.ts # x-pack/plugins/security_solution/scripts/endpoint/kbn_client_with_api_key_support.ts # x-pack/plugins/security_solution/scripts/endpoint/resolver_generator_script.ts # x-pack/plugins/security_solution/scripts/endpoint/trusted_apps/index.ts
Co-authored-by: spalger <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: spalger <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: spalger <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
In #81320 @restrry discovered that we aren't running the test/server_integration suite of tests on CI. This adds a step to execute these tests once the OSS version of Kibana is built.
Enabling these tests required fixing the
KbnClient
class to use certificate authorities correctly, which gave me the opportunity to improve the arguments to that class a little, but led to a few more changes than ideal. Hopefully the folks from @elastic/siem and @elastic/endpoint-management don't mind the way I've updated their uses of theKbnClient
.