projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18858: Adds first/last name updates, with tests.
[arvados.git]
/
tools
/
sync-users
/
sync-users_test.go
diff --git
a/tools/sync-users/sync-users_test.go
b/tools/sync-users/sync-users_test.go
index 5c272b0da0808ad8f4c0828fbc6bf0db5899ef70..8b5385a32110786c0125896f5507e07a0309b8f5 100644
(file)
--- a/
tools/sync-users/sync-users_test.go
+++ b/
tools/sync-users/sync-users_test.go
@@
-312,9
+312,11
@@
func (s *TestSuite) TestUserCreationAndUpdate(c *C) {
c.Assert(foundUser.IsActive, Equals, r.Active)
c.Assert(foundUser.IsAdmin, Equals, (r.Active && r.Admin))
}
c.Assert(foundUser.IsActive, Equals, r.Active)
c.Assert(foundUser.IsAdmin, Equals, (r.Active && r.Admin))
}
- // User
active status switch
+ // User
update
for idx := range records {
records[idx].Active = !records[idx].Active
for idx := range records {
records[idx].Active = !records[idx].Active
+ records[idx].FirstName = records[idx].FirstName + "Updated"
+ records[idx].LastName = records[idx].LastName + "Updated"
}
tmpfile, err = MakeTempCSVFile(RecordsToStrings(records))
c.Assert(err, IsNil)
}
tmpfile, err = MakeTempCSVFile(RecordsToStrings(records))
c.Assert(err, IsNil)