Fix e2e tests following oauth2 scopes

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
Ludovic Vielle
2026-06-23 19:17:18 +02:00
parent 20b9321de3
commit 897ca031e2
2 changed files with 19 additions and 19 deletions

View File

@@ -53,7 +53,7 @@ func TestOAuth2_PrbCLIDeviceFlowWithAPIScopes(t *testing.T) {
require.Equal(t, 200, pollRaw.StatusCode, "token poll body: %s", string(pollRaw.Body))
require.NotNil(t, tokenResp)
require.NotEmpty(t, tokenResp.AccessToken)
assert.Contains(t, tokenResp.Scope, "v1:org:read")
assert.Contains(t, tokenResp.Scope, "v1:org")
const getOrganizationQuery = `
query GetOrganization($id: ID!) {