Logging soak, rebased w/ viper

ReadConfig as local
This commit is contained in:
jayunit100
2016-09-20 21:19:52 -04:00
parent cfecc2fa72
commit fe5429e921
3 changed files with 161 additions and 19 deletions

View File

@@ -79,6 +79,7 @@ type TestContextType struct {
NodeTestContextType
// Viper-only parameters. These will in time replace all flags.
// Example: Create a file 'e2e.json' with the following:
// "Cadvisor":{
// "MaxRetries":"6"
@@ -89,6 +90,11 @@ type TestContextType struct {
MaxRetries int
SleepDurationMS int
}
LoggingSoak struct {
Scale int
MilliSecondsBetweenWaves int
}
}
// NodeTestContextType is part of TestContextType, it is shared by all node e2e test.
@@ -205,7 +211,6 @@ func RegisterNodeFlags() {
// Enable viper configuration management of flags.
func ViperizeFlags() {
// TODO @jayunit100: Maybe a more elegant viper-flag integration for the future?
// For now, we layer it on top, because 'flag' deps of 'go test' make pflag wrappers
// fragile, seeming to force 'flag' to have deep awareness of pflag params.