~smoser/ubuntu/precise/juju-core/cloud-tools

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/testing/environ.go

  • Committer: Scott Moser
  • Date: 2014-02-26 16:17:47 UTC
  • mfrom: (24.1.5 trusty-proposed)
  • Revision ID: smoser@ubuntu.com-20140226161747-dk6h7wp288370ave
* New upstream point release (LP: #1271941, #834930, #1240667, #1274210):
  - https://launchpad.net/juju-core/trunk/1.17.3
* No change rebuild with gccgo-4.9 as default gccgo. 
* d/control,rules,juju-core.{postinst,prerm}.in: Drop build of gccgo built
  binaries for architectures supported by golang gc.
* d/juju-core.postinst.in: Drop --force option when installing alternatives.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
        "launchpad.net/juju-core/environs/config"
14
14
        "launchpad.net/juju-core/juju/osenv"
15
15
        "launchpad.net/juju-core/testing/testbase"
 
16
        "launchpad.net/juju-core/utils/ssh"
16
17
)
17
18
 
18
19
// FakeAuthKeys holds the authorized key used for testing
19
20
// purposes in FakeConfig. It is valid for parsing with the utils/ssh
20
21
// authorized-key utilities.
21
 
const FakeAuthKeys = `ssh-rsa BBBB jo@bloggs.com`
 
22
const FakeAuthKeys = `ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQDP8fPSAMFm2PQGoVUks/FENVUMww1QTK6m++Y2qX9NGHm43kwEzxfoWR77wo6fhBhgFHsQ6ogE/cYLx77hOvjTchMEP74EVxSce0qtDjI7SwYbOpAButRId3g/Ef4STz8= joe@0.1.2.4`
 
23
 
 
24
func init() {
 
25
        _, err := ssh.ParseAuthorisedKey(FakeAuthKeys)
 
26
        if err != nil {
 
27
                panic("FakeAuthKeys does not hold a valid authorized key: " + err.Error())
 
28
        }
 
29
}
22
30
 
23
31
// FakeConfig() returns an environment configuration for a
24
32
// fake provider with all required attributes set.