projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18858: Fixes positional argument retrieval on sync-users & sync-groups.
[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 1e5f688b05e6aee95e1fcee7e29abfde61f3f9cc..e5cbb77d16603818372fa56f3f700821ba5eec25 100644
(file)
--- a/
tools/sync-users/sync-users_test.go
+++ b/
tools/sync-users/sync-users_test.go
@@
-102,7
+102,7
@@
func (s *TestSuite) TestParseFlagsWithoutPositionalArgument(c *C) {
}
func (s *TestSuite) TestParseFlagsWrongUserID(c *C) {
}
func (s *TestSuite) TestParseFlagsWrongUserID(c *C) {
- os.Args = []string{"cmd", "-user-id
=
nickname", "/tmp/somefile.csv"}
+ os.Args = []string{"cmd", "-user-id
", "
nickname", "/tmp/somefile.csv"}
err := ParseFlags(&ConfigParams{})
c.Assert(err, NotNil)
c.Assert(err, ErrorMatches, ".*user ID must be one of:.*")
err := ParseFlags(&ConfigParams{})
c.Assert(err, NotNil)
c.Assert(err, ErrorMatches, ".*user ID must be one of:.*")
@@
-122,7
+122,7
@@
func (s *TestSuite) TestParseFlagsWithPositionalArgument(c *C) {
func (s *TestSuite) TestParseFlagsWithOptionalFlags(c *C) {
cfg := ConfigParams{}
func (s *TestSuite) TestParseFlagsWithOptionalFlags(c *C) {
cfg := ConfigParams{}
- os.Args = []string{"cmd", "-verbose", "-deactivate-unlisted", "-user-id
=
username", "/tmp/somefile.csv"}
+ os.Args = []string{"cmd", "-verbose", "-deactivate-unlisted", "-user-id
", "
username", "/tmp/somefile.csv"}
err := ParseFlags(&cfg)
c.Assert(err, IsNil)
c.Assert(cfg.Path, Equals, "/tmp/somefile.csv")
err := ParseFlags(&cfg)
c.Assert(err, IsNil)
c.Assert(cfg.Path, Equals, "/tmp/somefile.csv")