Skip to content
Snippets Groups Projects
Commit ac2bbb70 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

Merge branch 'fix-integration-tests' into 'master'

Fix integration tests

See merge request cocsn/gosdn!145
parents bfda7a9b 26f9e057
No related branches found
No related tags found
1 merge request!145Fix integration tests
Pipeline #96739 failed
...@@ -16,8 +16,8 @@ import ( ...@@ -16,8 +16,8 @@ import (
const unreachable = "203.0.113.10:6030" const unreachable = "203.0.113.10:6030"
var testAddress = "141.100.70.171:6030" var testAddress = "141.100.67.238:6030"
var testAPIEndpoint = "http://141.100.70.171:8080/api" var testAPIEndpoint = "http://gosdn-latest.apps.ocp.fbi.h-da.de/api"
var testUsername = "admin" var testUsername = "admin"
var testPassword = "arista" var testPassword = "arista"
var defaultPath = []string{"/system/config/hostname"} var defaultPath = []string{"/system/config/hostname"}
...@@ -42,17 +42,17 @@ func testSetupIntegration() { ...@@ -42,17 +42,17 @@ func testSetupIntegration() {
api := os.Getenv("GOSDN_TEST_API_ENDPOINT") api := os.Getenv("GOSDN_TEST_API_ENDPOINT")
if api != "" { if api != "" {
testAPIEndpoint = api testAPIEndpoint = api
log.Infof("GOSDN_TEST_API_ENDPOINT set to %v", testAddress) log.Infof("GOSDN_TEST_API_ENDPOINT set to %v", testAPIEndpoint)
} }
u := os.Getenv("GOSDN_TEST_USER") u := os.Getenv("GOSDN_TEST_USER")
if u != "" { if u != "" {
testUsername = u testUsername = u
log.Infof("GOSDN_TEST_USER set to %v", testAddress) log.Infof("GOSDN_TEST_USER set to %v", testUsername)
} }
p := os.Getenv("GOSDN_TEST_PASSWORD") p := os.Getenv("GOSDN_TEST_PASSWORD")
if p != "" { if p != "" {
testPassword = p testPassword = p
log.Infof("GOSDN_TEST_PASSWORD set to %v", testAddress) log.Infof("GOSDN_TEST_PASSWORD set to %v", testPassword)
} }
gnmiMessages = map[string]pb.Message{ gnmiMessages = map[string]pb.Message{
...@@ -78,8 +78,8 @@ func testSetupIntegration() { ...@@ -78,8 +78,8 @@ func testSetupIntegration() {
opt = &nucleus.GnmiTransportOptions{ opt = &nucleus.GnmiTransportOptions{
Config: gnmi.Config{ Config: gnmi.Config{
Addr: testAddress, Addr: testAddress,
Username: "admin", Username: testUsername,
Password: "arista", Password: testPassword,
Encoding: gpb.Encoding_JSON_IETF, Encoding: gpb.Encoding_JSON_IETF,
}, },
RespChan: make(chan *gpb.SubscribeResponse), RespChan: make(chan *gpb.SubscribeResponse),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment