[ARVADOS] updated: 2.1.0-1282-gc534e74c5

Git user git at public.arvados.org
Thu Sep 2 20:07:01 UTC 2021


Summary of changes:
 lib/controller/integration_test.go | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

       via  c534e74c5c83f546c65e901f9c93ae2fdfae8d08 (commit)
      from  7aa1380f8dbca657b347df513baca513c10650ba (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit c534e74c5c83f546c65e901f9c93ae2fdfae8d08
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Thu Sep 2 17:06:38 2021 -0300

    18076: Improves test.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/lib/controller/integration_test.go b/lib/controller/integration_test.go
index d2d852cfe..7cad7d5f7 100644
--- a/lib/controller/integration_test.go
+++ b/lib/controller/integration_test.go
@@ -670,15 +670,17 @@ func (s *IntegrationSuite) TestStaleCachedUserRecord(c *check.C) {
 
 	// Make sure LoginCluster is properly configured
 	for cls := range s.testClusters {
-		c.Check(
-			s.testClusters[cls].Config.Clusters[cls].Login.LoginCluster,
-			check.Equals, "z1111",
-			check.Commentf("incorrect LoginCluster config on cluster %q", cls))
+		if cls == "z1111" || cls == "z3333" {
+			c.Check(
+				s.testClusters[cls].Config.Clusters[cls].Login.LoginCluster,
+				check.Equals, "z1111",
+				check.Commentf("incorrect LoginCluster config on cluster %q", cls))
+		}
 	}
 
 	// Create some users, request them on the federated cluster so they're cached.
 	var users []arvados.User
-	for userNr := range []int{0, 1} {
+	for userNr := 0; userNr < 2; userNr++ {
 		_, _, _, user := s.testClusters["z1111"].UserClients(
 			rootctx1,
 			c,
@@ -688,7 +690,7 @@ func (s *IntegrationSuite) TestStaleCachedUserRecord(c *check.C) {
 		c.Assert(user.Username, check.Not(check.Equals), "")
 		users = append(users, user)
 
-		lst, err := conn3.UserList(rootctx1, arvados.ListOptions{Limit: math.MaxInt64})
+		lst, err := conn3.UserList(rootctx1, arvados.ListOptions{Limit: -1})
 		c.Assert(err, check.Equals, nil)
 		userFound := false
 		for _, fedUser := range lst.Items {
@@ -725,7 +727,7 @@ func (s *IntegrationSuite) TestStaleCachedUserRecord(c *check.C) {
 	c.Assert(err, check.Equals, nil)
 
 	// Re-request the list on the federated cluster & check for updates
-	lst, err := conn3.UserList(rootctx1, arvados.ListOptions{Limit: math.MaxInt64})
+	lst, err := conn3.UserList(rootctx1, arvados.ListOptions{Limit: -1})
 	c.Assert(err, check.Equals, nil)
 	var user0Found, user1Found bool
 	for _, user := range lst.Items {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list