Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Formatter is the format configuration to write logs into text Formatter = logrus.TextFormatter{ DisableTimestamp: false, } // TestLogWriter is a buffer in which all logs generated by a test are // stored TestLogWriter bytes.Buffer // TestLogFileName is the file name to dump `TestLogWriter` content when // test finish TestLogFileName = "test-output.log" )
View Source
var CiliumTestConfig = CiliumTestConfigType{}
CiliumTestConfig holds the global configuration of commandline flags in the ginkgo-based testing environment.
Functions ¶
func TestLogWriterReset ¶ added in v1.5.0
func TestLogWriterReset()
TestLogWriterReset resets the current buffer
Types ¶
type CiliumTestConfigType ¶
type CiliumTestConfigType struct { Reprovision bool // HoldEnvironment leaves the test infrastructure in place on failure HoldEnvironment bool // PassCLIEnvironment passes through the environment invoking the gingko // tests. When false all subcommands are executed with an empty environment, // including PATH. PassCLIEnvironment bool SSHConfig string ShowCommands bool TestScope string SkipLogGathering bool CiliumImage string CiliumOperatorImage string ProvisionK8s bool Timeout time.Duration Kubeconfig string Registry string Benchmarks bool }
CiliumTestConfigType holds all of the configurable elements of the testsuite
func (*CiliumTestConfigType) ParseFlags ¶
func (c *CiliumTestConfigType) ParseFlags()
ParseFlags parses commandline flags relevant to testing.
Click to show internal directories.
Click to hide internal directories.