Repository navigation
test(e2e): align e2e assertions with current admission behavior - #27
Merged
Merged
Conversation
bakito
force-pushed
the
e2e
branch
2 times, most recently
from
November 22, 2026 13:19
bfa6cfa to
120d3f7
Compare
bakito
marked this pull request as ready for review
November 22, 2026 13:55
Signed-off-by: bakito <github@bakito.ch>
Signed-off-by: bakito <github@bakito.ch>
oliverbaehler
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings the e2e suite in line with how admission currently behaves, and runs the impersonation specs that don't need Capsule in the standalone suite too.
Changes
Align assertions with current admission behavior
patchLifecyclePhaseFromso a test can move a permit from any starting phase. The delete-active test now moves the permit fromActivetoExpired, not fromRequested.Wider standalone coverage
describeGlobalTemplateImpersonation/describeNamespacedTemplateImpersonation. Each is registered twice:configlabel), including the Tenant-based specsstandalonelabel), only the specs that use plain namespaces and explicit ServiceAccounts, guarded byexpectCapsuleAPIsAbsentActivationstage, and that a retry recovers it.grantResourcePermitRequesterRole. The standalone chart doesn't add theresource-permits-requesterrole toadmin, so requesters get an explicit RoleBinding.expectCapsuleAPIsAbsent.Tooling
task e2e:deleteto remove the e2e Kind cluster left behind by an interrupted run.task e2enow prints the path of its temporary kubeconfig, so you can reach the test cluster while a run is in progress (e.g.KUBECONFIG=<path> kubectl get pods -A).go mod tidy: drop stalego.sumchecksums left after the capsule v0.15.2 and dependency upgrades.Testing
task e2e(standalone)task e2e E2E_MODE=capsule E2E_FILTER=resource-permit