X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c64732191fe3a14a5919759af8568130d21b1db3..9ede4c0a5cdadd5f1b5664950146626b794a6921:/lib/controller/integration_test.go diff --git a/lib/controller/integration_test.go b/lib/controller/integration_test.go index b7bda3dd16..9f5d12598b 100644 --- a/lib/controller/integration_test.go +++ b/lib/controller/integration_test.go @@ -690,6 +690,7 @@ func (s *IntegrationSuite) TestFederatedApiClientAuthHandling(c *check.C) { }, ) c.Assert(err, check.IsNil) + c.Assert(resp.APIClientID, check.Not(check.Equals), 0) newTok := resp.TokenV2() c.Assert(newTok, check.Not(check.Equals), "") @@ -704,6 +705,14 @@ func (s *IntegrationSuite) TestFederatedApiClientAuthHandling(c *check.C) { ) c.Assert(err, check.IsNil) c.Assert(curUser.UUID, check.Equals, user.UUID) + + // Request the ApiClientAuthorization list using the new token + _, userClient, _ := s.testClusters["z3333"].ClientsWithToken(newTok) + var acaLst arvados.APIClientAuthorizationList + err = userClient.RequestAndDecode( + &acaLst, "GET", "arvados/v1/api_client_authorizations", nil, nil, + ) + c.Assert(err, check.IsNil) } // Test for bug #18076