Skip to content

Conversation

@ldematte
Copy link
Contributor

Backport of #124429

…ke 2) (elastic#124429)

Writing tests for elastic#123861, turns out that elastic#124195 is not enough.
We really need new IT test cases for "always allowed" actions: in order to be sure they are allowed, we need to setup the plugin with no policy.
This PR adds test cases for that, plus the support for writing test functions that accept one Environment parameter: many test paths we test and allow/deny are relative to paths in Environment, so it's useful to have access to it (see readAccessConfigDirectory as an example)
@ldematte ldematte added >test Issues or PRs that are addressing/adding tests backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v8.18.1 :Core/Infra/Entitlements Entitlements infrastructure labels Mar 13, 2025
@ldematte ldematte changed the title [Entitlements] Add support for IT tests of always allowed actions (take 2) (#124429) [8.18][Entitlements] Add support for IT tests of always allowed actions (take 2) (#124429) Mar 13, 2025
@elasticsearchmachine elasticsearchmachine merged commit c0afff1 into elastic:8.18 Mar 13, 2025
15 checks passed
@ldematte ldematte deleted the backport/8.18/entitlements/test-always-allowed-actions-2 branch March 13, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Core/Infra/Entitlements Entitlements infrastructure >test Issues or PRs that are addressing/adding tests v8.18.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants