github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/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 (
     7  	Setenv                        = setenv
     8  	FindExecutable                = findExecutable
     9  	CheckToolsSeries              = checkToolsSeries
    10  	ArchiveAndSHA256              = archiveAndSHA256
    11  	WriteMetadataFiles            = &writeMetadataFiles
    12  	CurrentStreamsVersion         = currentStreamsVersion
    13  	MarshalToolsMetadataIndexJSON = marshalToolsMetadataIndexJSON
    14  )
    15  
    16  // SetSigningPublicKey sets a new public key for testing and returns the original key.
    17  func SetSigningPublicKey(key string) string {
    18  	oldKey := simplestreamsToolsPublicKey
    19  	simplestreamsToolsPublicKey = key
    20  	return oldKey
    21  }