Skip to content
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

Fix some type issues in x-pack/test #167343

Merged
merged 12 commits into from
Sep 27, 2023
Prev Previous commit
Next Next commit
chore(typecheck): Fix type errors re: no intersection between partial…
… types
delanni committed Sep 27, 2023

Verified

This commit was signed with the committer’s verified signature.
commit 40057c264b60cb2167f530d5f457747d7de26fe7
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
// We intentionally make some fields start with a capital letter to test that the query bar is case-insensitive/case-sensitive
const data = [
{
'@timestamp': '1695819664234',
resource: { id: chance.guid(), name: `kubelet`, sub_type: 'lower case sub type' },
result: { evaluation: chance.integer() % 2 === 0 ? 'passed' : 'failed' },
rule: {
@@ -38,6 +39,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
cluster_id: 'Upper case cluster id',
},
{
'@timestamp': '1695819673242',
resource: { id: chance.guid(), name: `Pod`, sub_type: 'Upper case sub type' },
result: { evaluation: chance.integer() % 2 === 0 ? 'passed' : 'failed' },
rule: {
@@ -54,6 +56,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
cluster_id: 'Another Upper case cluster id',
},
{
'@timestamp': '1695819676242',
resource: { id: chance.guid(), name: `process`, sub_type: 'another lower case type' },
result: { evaluation: 'passed' },
rule: {
@@ -70,6 +73,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
cluster_id: 'lower case cluster id',
},
{
'@timestamp': '1695819680202',
resource: { id: chance.guid(), name: `process`, sub_type: 'Upper case type again' },
result: { evaluation: 'failed' },
rule: {