Skip to content
Snippets Groups Projects

Process response overhaul

Merged Ghost User requested to merge process-response-overhaul into develop
9 files
+ 43
62
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -16,7 +16,7 @@ import (
const unreachable = "203.0.113.10:6030"
const testPath = "/system/config/hostname"
var testAddress = testIP + ":" + testPort
var testAddress = "141.100.70.170:6030"
var testAPIEndpoint = "gosdn-latest.apps.ocp.fbi.h-da.de"
var testUsername = "admin"
var testPassword = "arista"
@@ -29,16 +29,16 @@ func TestMain(m *testing.M) {
}
func testSetupIntegration() {
viper.SetConfigFile(".k8s.toml")
if err := viper.ReadInConfig(); err != nil {
log.Error(err)
}
if os.Getenv("GOSDN_LOG") == "nolog" {
log.SetLevel(log.PanicLevel)
}
api := viper.GetString("GOSDN_TEST_API_ENDPOINT")
addr := os.Getenv("GOSDN_TEST_ENDPOINT")
if addr != "" {
testAddress = addr
log.Infof("GOSDN_TEST_ENDPOINT set to %v", testAddress)
}
api := os.Getenv("GOSDN_TEST_API_ENDPOINT")
if api != "" {
testAPIEndpoint = api
log.Infof("GOSDN_TEST_API_ENDPOINT set to %v", testAPIEndpoint)
Loading