launchpad.net/~rogpeppe/juju-core/500-errgo-fix@v0.0.0-20140213181702-000000002356/environs/imagemetadata/export_test.go (about) 1 // Copyright 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package imagemetadata 5 6 // SetSigningPublicKey sets a new public key for testing and returns the original key. 7 func SetSigningPublicKey(key string) string { 8 oldKey := simplestreamsImagesPublicKey 9 simplestreamsImagesPublicKey = key 10 return oldKey 11 }