Skip to content
Snippets Groups Projects

Resolve "Access to scrambled ports not working"

Merged Ghost User requested to merge 124-access-to-scrampled-ports-not-working into develop
Files
9
@@ -16,7 +16,7 @@ import (
@@ -16,7 +16,7 @@ import (
const unreachable = "203.0.113.10:6030"
const unreachable = "203.0.113.10:6030"
const testPath = "/system/config/hostname"
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 testAPIEndpoint = "gosdn-latest.apps.ocp.fbi.h-da.de"
var testUsername = "admin"
var testUsername = "admin"
var testPassword = "arista"
var testPassword = "arista"
@@ -29,16 +29,16 @@ func TestMain(m *testing.M) {
@@ -29,16 +29,16 @@ func TestMain(m *testing.M) {
}
}
func testSetupIntegration() {
func testSetupIntegration() {
viper.SetConfigFile(".k8s.toml")
if err := viper.ReadInConfig(); err != nil {
log.Error(err)
}
if os.Getenv("GOSDN_LOG") == "nolog" {
if os.Getenv("GOSDN_LOG") == "nolog" {
log.SetLevel(log.PanicLevel)
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 != "" {
if api != "" {
testAPIEndpoint = api
testAPIEndpoint = api
log.Infof("GOSDN_TEST_API_ENDPOINT set to %v", testAPIEndpoint)
log.Infof("GOSDN_TEST_API_ENDPOINT set to %v", testAPIEndpoint)
Loading