~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/state/user_internal_test.go

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
func (s *internalUserSuite) TestCreateInitialUserOp(c *gc.C) {
18
18
        tag := names.NewUserTag("AdMiN")
19
 
        op := createInitialUserOp(nil, tag, "abc")
 
19
        op := createInitialUserOp(nil, tag, "abc", "salt")
20
20
        c.Assert(op.Id, gc.Equals, "admin")
21
21
 
22
22
        doc := op.Insert.(*userDoc)
23
23
        c.Assert(doc.DocID, gc.Equals, "admin")
24
24
        c.Assert(doc.Name, gc.Equals, "AdMiN")
 
25
        c.Assert(doc.PasswordSalt, gc.Equals, "salt")
25
26
}
26
27
 
27
28
func (s *internalUserSuite) TestCaseNameVsId(c *gc.C) {