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
e1f5eb1c
Commit
e1f5eb1c
authored
1 year ago
by
Neil-Jocelyn Schark
Committed by
Neil-Jocelyn Schark
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
hopefully fix application tests
parent
ea35e978
No related branches found
No related tags found
1 merge request
!773
Resolve "Investigate GitLab-CI services don't reach each other"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab/ci/.test.yml
+1
-1
1 addition, 1 deletion
.gitlab/ci/.test.yml
integration-tests/application_tests/application_test.go
+6
-3
6 additions, 3 deletions
integration-tests/application_tests/application_test.go
with
7 additions
and
4 deletions
.gitlab/ci/.test.yml
+
1
−
1
View file @
e1f5eb1c
...
...
@@ -12,7 +12,7 @@ integration-test-gosdn:
INTEGRATION_TEST_TARGET_A
:
gnmi-target_A:7030
INTEGRATION_TEST_TARGET_B
:
gnmi-target_B:7030
INTEGRATION_TEST_RABBITMQ_HOSTNAME
:
rabbitmq
INTEGRATION_TEST_CONTROLLER_URL
:
gosdn
INTEGRATION_TEST_CONTROLLER_URL
:
gosdn
:55055
services
:
-
name
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/mongo:7
alias
:
mongo
...
...
This diff is collapsed.
Click to expand it.
integration-tests/application_tests/application_test.go
+
6
−
3
View file @
e1f5eb1c
...
...
@@ -12,7 +12,6 @@ import (
tpb
"code.fbi.h-da.de/danet/gosdn/api/go/gosdn/transport"
"code.fbi.h-da.de/danet/gosdn/application-framework/event"
integration_test_utils
"code.fbi.h-da.de/danet/gosdn/integration-tests/integrationTestUtils"
"github.com/sirupsen/logrus"
"google.golang.org/grpc"
)
...
...
@@ -67,9 +66,13 @@ func TestMain(m *testing.M) {
rabbitMQAddress
=
envVarRabbitmq
}
logrus
.
Infof
(
"RabbitMQ address: %s"
,
rabbitMQAddress
)
controllerUrl
:=
"localhost:55055"
controllerEnv
:=
os
.
Getenv
(
"INTEGRATION_TEST_CONTROLLER_URL"
)
if
controllerEnv
!=
""
{
controllerUrl
=
controllerEnv
}
application
=
NewApplication
(
ctx
,
conn
,
":55055"
,
topics
,
rabbitMQAddress
)
application
=
NewApplication
(
ctx
,
conn
,
controllerUrl
,
topics
,
rabbitMQAddress
)
eventTypeCallbackTuples
:=
[]
event
.
TypeToCallbackTuple
{
{
...
...
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