-
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
[Telemetry] Use soClient
in FTRs
#155175
[Telemetry] Use soClient
in FTRs
#155175
Conversation
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.
Removed because it's a duplicate to test/api_integration/apis/telemetry/opt_in.ts
and there's no different behaviour in X-Pack
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.
Removed because it's a duplicate to test/api_integration/apis/telemetry/telemetry_optin_notice_seen.ts
and there's no different behaviour in X-Pack
if (err.response?.status === 404) { | ||
return {}; | ||
} |
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.
This is the hardest part of our SO client... handling 404s... 😜
Pinging @elastic/kibana-core (Team:Core) |
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.
LGTM, nice cleanup!
|
||
import { TelemetrySavedObjectAttributes } from '@kbn/telemetry-plugin/server/saved_objects'; | ||
import SuperTest from 'supertest'; | ||
import { KbnClient } from '@kbn/test'; |
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.
NIT can be imported as a type
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @afharo |
Summary
Use the Saved Objects client in the FTRs instead of writing to
.kibana
via ES client.Doing it now because it facilitates the efforts in #154888
Checklist
For maintainers