elastic / package-spec

EPR package specifications
Other
17 stars 70 forks source link

Add support for policy test definitions #751

Closed jsoriano closed 3 months ago

jsoriano commented 3 months ago

What does this PR do?

Add definitions for policy tests. These tests can be used to check that for a given user configuration the expected policies are generated.

Why is it important?

Cover the gap of testing the package policies generated for a given configuration. This is kind of tested in system tests, but these new tests will allow to check the expected policies and more easily add more test cases, without needing a fully running system.

Checklist

Related issues

jsoriano commented 3 months ago

CI failure unrelated, to be fixed in https://github.com/elastic/package-spec/pull/752.

elasticmachine commented 3 months ago

:green_heart: Build Succeeded

History

cc @jsoriano