Skip to content

Commit

Permalink
test/auth: Add check for entitlements
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Mougard <[email protected]>
  • Loading branch information
gabrielmougard committed Jan 10, 2025
1 parent 63faf91 commit 4717e1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/suites/auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ test_authorization() {
lxc auth identity list --format csv | grep -Fq "tls,Client certificate,test-user,${tls_identity_fingerprint},test-group"

# Test `lxc auth identity info`
expectedOIDCInfo='authentication_method: oidc
expectedOIDCInfo='entitlements: []
authentication_method: oidc
type: OIDC client
id: [email protected]
name: '"'"' '"'"'
Expand All @@ -152,7 +153,8 @@ fine_grained: true'

[ "$(lxc auth identity info oidc:)" = "${expectedOIDCInfo}" ]

expectedTLSInfo="authentication_method: tls
expectedTLSInfo="entitlements: []
authentication_method: tls
type: Client certificate
id: ${tls_identity_fingerprint}
name: test-user
Expand Down

0 comments on commit 4717e1f

Please sign in to comment.