elastic / package-spec

EPR package specifications
Other
17 stars 70 forks source link

Fix dataset in compliance test #752

Closed jsoriano closed 3 months ago

jsoriano commented 3 months ago

- is not allowed in datasets since https://github.com/elastic/kibana/pull/182925

Fixes issue found in https://buildkite.com/elastic/package-spec/builds/664#018f9c74-ef57-4b56-b8ad-9b390d847bae:

Step a policy is created with "basic_input" package, "test" template, "test" input, "logfile" input type and dataset "spec.input-test": failed to create package policy: request failed with status 400, body: {"statusCode":400,"error":"Bad Request","message":"Package policy is invalid: inputs.logfile.streams.basic_input.test.vars.data_stream.dataset: Dataset contains invalid characters"}

We may consider adding validation for these fields in the test config files as a follow up.

elasticmachine commented 3 months ago

:green_heart: Build Succeeded

cc @jsoriano