X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7696fe3db2dcf03fe8b4528080100bec2196da91..8881d33b836850edbb8c874782d1243e952632bb:/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