Skip to content

Commit

Permalink
test/auth: remove check for access_entitlements: [] since we added …
Browse files Browse the repository at this point in the history
…`omitempty` field annotation

Signed-off-by: Gabriel Mougard <[email protected]>
  • Loading branch information
gabrielmougard committed Jan 31, 2025
1 parent cfdfae3 commit ce7b04e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/suites/auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ 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='access_entitlements: []
authentication_method: oidc
expectedOIDCInfo='authentication_method: oidc
type: OIDC client
id: [email protected]
name: '"'"' '"'"'
Expand All @@ -153,8 +152,7 @@ fine_grained: true'

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

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

0 comments on commit ce7b04e

Please sign in to comment.