...

Package configtest

import "github.com/hyperledger/fabric/core/config/configtest"
Overview
Index

Overview ▾

func AddDevConfigPath

func AddDevConfigPath(v *viper.Viper) error

AddDevConfigPath adds the DevConfigDir to the viper path.

func GetDevConfigDir

func GetDevConfigDir() (string, error)

GetDevConfigDir gets the path to the default configuration that is maintained with the source tree. This should only be used in a test/development context.

func GetDevMspDir

func GetDevMspDir() (string, error)

GetDevMspDir gets the path to the sampleconfig/msp tree that is maintained with the source tree. This should only be used in a test/development context.

func SetDevFabricConfigPath

func SetDevFabricConfigPath(t *testing.T) (cleanup func())