~fwereade/juju-core/unit-remove-depart-scopes

« back to all changes in this revision

Viewing changes to state/apiserver/client/api_test.go

  • Committer: William Reade
  • Date: 2013-11-07 17:30:38 UTC
  • mfrom: (2032.1.6 juju-core)
  • Revision ID: fwereade@gmail.com-20131107173038-d0a72q96dujotc0z
merge parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
}
94
94
 
95
95
func defaultPassword(e apiAuthenticator) string {
96
 
        return e.Tag() + " password"
 
96
        return e.Tag() + " password-1234567890"
97
97
}
98
98
 
99
99
type setStatuser interface {
124
124
        _, info, err := s.APIConn.Environ.StateInfo()
125
125
        c.Assert(err, gc.IsNil)
126
126
        info.Tag = tag
127
 
        info.Password = fmt.Sprintf("%s password", tag)
 
127
        // Must match defaultPassword()
 
128
        info.Password = fmt.Sprintf("%s password-1234567890", tag)
128
129
        // Set this always, so that the login attempts as a machine will
129
130
        // not fail with ErrNotProvisioned; it's not used otherwise.
130
131
        info.Nonce = "fake_nonce"