Skip to content

Commit

Permalink
test/suites: Test identity deletion.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing committed Oct 3, 2024
1 parent 14b08ad commit 94ff84e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/suites/auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ EOF
# Perform access check compatibility with project feature flags
auth_project_features

# The OIDC identity should be able to delete themselves without any permissions.
lxc auth identity group remove oidc/[email protected] test-group
lxc_remote auth identity info oidc: | grep -Fq 'effective_permissions: []'
lxc_remote auth identity delete oidc:oidc/[email protected]
! lxc auth identity list --format csv | grep -Fq '[email protected]' || false

# Cleanup
lxc auth group delete test-group
lxc auth identity-provider-group delete test-idp-group
Expand Down

0 comments on commit 94ff84e

Please sign in to comment.