Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
danet
goSDN
Commits
ac2bbb70
Commit
ac2bbb70
authored
Apr 19, 2021
by
Manuel Kieweg
🤷
Browse files
Merge branch 'fix-integration-tests' into 'master'
Fix integration tests See merge request cocsn/gosdn!145
parents
bfda7a9b
26f9e057
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/integration/cmdIntegration_test.go
View file @
ac2bbb70
...
...
@@ -16,8 +16,8 @@ import (
const
unreachable
=
"203.0.113.10:6030"
var
testAddress
=
"141.100.
70.171
:6030"
var
testAPIEndpoint
=
"http://
141.100.70.171:8080
/api"
var
testAddress
=
"141.100.
67.238
:6030"
var
testAPIEndpoint
=
"http://
gosdn-latest.apps.ocp.fbi.h-da.de
/api"
var
testUsername
=
"admin"
var
testPassword
=
"arista"
var
defaultPath
=
[]
string
{
"/system/config/hostname"
}
...
...
@@ -42,17 +42,17 @@ func testSetupIntegration() {
api
:=
os
.
Getenv
(
"GOSDN_TEST_API_ENDPOINT"
)
if
api
!=
""
{
testAPIEndpoint
=
api
log
.
Infof
(
"GOSDN_TEST_API_ENDPOINT set to %v"
,
testA
ddress
)
log
.
Infof
(
"GOSDN_TEST_API_ENDPOINT set to %v"
,
testA
PIEndpoint
)
}
u
:=
os
.
Getenv
(
"GOSDN_TEST_USER"
)
if
u
!=
""
{
testUsername
=
u
log
.
Infof
(
"GOSDN_TEST_USER set to %v"
,
test
Address
)
log
.
Infof
(
"GOSDN_TEST_USER set to %v"
,
test
Username
)
}
p
:=
os
.
Getenv
(
"GOSDN_TEST_PASSWORD"
)
if
p
!=
""
{
testPassword
=
p
log
.
Infof
(
"GOSDN_TEST_PASSWORD set to %v"
,
test
Address
)
log
.
Infof
(
"GOSDN_TEST_PASSWORD set to %v"
,
test
Password
)
}
gnmiMessages
=
map
[
string
]
pb
.
Message
{
...
...
@@ -78,8 +78,8 @@ func testSetupIntegration() {
opt
=
&
nucleus
.
GnmiTransportOptions
{
Config
:
gnmi
.
Config
{
Addr
:
testAddress
,
Username
:
"admin"
,
Password
:
"arista"
,
Username
:
testUsername
,
Password
:
testPassword
,
Encoding
:
gpb
.
Encoding_JSON_IETF
,
},
RespChan
:
make
(
chan
*
gpb
.
SubscribeResponse
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment