-
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
Migrate CSP usage collector to kibana_usage_collection
plugin
#75536
Changes from 5 commits
0eaae43
a803061
cc84404
f6dec8b
4b449e4
7c1fc0b
516315b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,10 +39,6 @@ export default function ({ getService }) { | |
expect(body.status.overall.state).to.be('green'); | ||
|
||
expect(body.status.statuses).to.be.an('array'); | ||
const kibanaPlugin = body.status.statuses.find((s) => { | ||
return s.id.indexOf('plugin:kibana') === 0; | ||
}); | ||
expect(kibanaPlugin.state).to.be('green'); | ||
Comment on lines
-42
to
-45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing the It's also likely we'll adapt and enhance these tests once we finish the status API migration anyway. |
||
|
||
expect(body.metrics.collection_interval_in_millis).to.be.a('number'); | ||
|
||
|
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.
The
scripts/telemetry_check.js
was kinda picky on the syntax I had to use here: I was not allowed to directly callusageCollection.makeUsageCollector(createCspCollector(http))
and I was forced to manually specify the<Usage>
type that is already implicitly defined when callingmakeUsageCollector
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... we are working on improving it to be more developer-friendly. Thank you for sharing your frustration about this 🙂
cc/ @Bamieh