github.com/mattyw/juju@v0.0.0-20140610034352-732aecd63861/environs/tools/export_test.go (about)

     1  // Copyright 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package tools
     5  
     6  var Setenv = setenv
     7  
     8  var FindExecutable = findExecutable
     9  
    10  var CheckToolsSeries = checkToolsSeries
    11  
    12  // SetSigningPublicKey sets a new public key for testing and returns the original key.
    13  func SetSigningPublicKey(key string) string {
    14  	oldKey := simplestreamsToolsPublicKey
    15  	simplestreamsToolsPublicKey = key
    16  	return oldKey
    17  }