e2e-testing icon indicating copy to clipboard operation
e2e-testing copied to clipboard

[Fleet] Add minimal test for input conditions for existing Linux policy conditions for data_streams we can validate

Open EricDavisX opened this issue 5 years ago • 1 comments

this is a side/sub-issue to https://github.com/elastic/e2e-testing/issues/424

  • I think we can do some minimal work in the Fleet mode agent, using what is existing in the policy and turned on / off for Linux and Windows as is.

check out the attached agent policy,

  • it has system.load that should only exist for linux. so we check if it exists, and verify
  • it has system.security that exists only for windows, so we check if it exists, and verify

If we ever support Windows we'll have a test diverging here we'd need to sort out.

action_store.yml.zip

api to call in fleet: GET to /api/fleet/data_streams which returns a structure as below copy/paste response:

so we should validate this exists: 14: {index: ".ds-metrics-system.load-default-2021.01.27-000001", dataset: "system.load",…} dashboards: [{id: "windows-01c54730-fee6-11e9-8405-516218e3d268",…},…] dataset: "system.load" index: ".ds-metrics-system.load-default-2021.01.27-000001" last_activity: "2021-01-27T20:41:34.786Z" namespace: "default" package: "system" package_version: "0.10.8" size_in_bytes: 3207835 type: "metrics"

and this does not: {index: ".ds-logs-system.security-default-2021.01.27-000001", dataset: "system.security",…} dashboards: [{id: "windows-01c54730-fee6-11e9-8405-516218e3d268",…},…] dataset: "system.security" index: ".ds-logs-system.security-default-2021.01.27-000001" last_activity: "2021-01-27T20:00:52.875Z" namespace: "default" package: "system" package_version: "0.10.8" size_in_bytes: 12957616 type: "logs"

EricDavisX avatar Jan 27 '21 21:01 EricDavisX

@IgorGuz2000 hi - here is another one you may choose to help work on?

EricDavisX avatar Jan 14 '22 19:01 EricDavisX