diff --git a/test/suites/auth.sh b/test/suites/auth.sh index cbd721443ab3..44ae67d0a768 100644 --- a/test/suites/auth.sh +++ b/test/suites/auth.sh @@ -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: test-user@example.com name: '"'"' '"'"' @@ -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 @@ -283,6 +285,10 @@ fine_grained: true" LXD_CONF="${LXD_CONF6}" gen_cert_and_key "client" token="$(lxc auth identity create tls/test-user6 --quiet)" LXD_CONF="${LXD_CONF6}" lxc_remote remote add tls "${token}" + ## TO REMOVE + tlsInfo=$(LXD_CONF="${LXD_CONF6}" lxc auth identity info tls:) + echo "${tlsInfo}" + ## TO REMOVE ! LXD_CONF="${LXD_CONF6}" lxc auth identity info tls: | grep 'fine_grained: true' || false # Cleanup