Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
ac2bbb70
Commit
ac2bbb70
authored
3 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Plain Diff
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
!145
Fix integration tests
Pipeline
#96739
failed
3 years ago
Stage: .pre
Stage: test
Stage: build
Stage: apply
Stage: deploy
Stage: .post
Changes
1
Pipelines
9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/integration/cmdIntegration_test.go
+7
-7
7 additions, 7 deletions
test/integration/cmdIntegration_test.go
with
7 additions
and
7 deletions
test/integration/cmdIntegration_test.go
+
7
−
7
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
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment