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
bc33a947
Verified
Commit
bc33a947
authored
1 year ago
by
André Sterba
Browse files
Options
Downloads
Patches
Plain Diff
Fix nodes tests
parent
1e71c16b
No related branches found
No related tags found
1 merge request
!557
Draft: Refactor nucleus to remove hard dependencies on structs
Pipeline
#163547
failed
1 year ago
Stage: build
Stage: test
Stage: analyze
Stage: integration-test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controller/topology/nodes/nodeService_test.go
+7
-7
7 additions, 7 deletions
controller/topology/nodes/nodeService_test.go
with
7 additions
and
7 deletions
controller/topology/nodes/nodeService_test.go
+
7
−
7
View file @
bc33a947
...
...
@@ -4,10 +4,10 @@ import (
"reflect"
"testing"
"code.fbi.h-da.de/danet/gosdn/application-framework/event"
"code.fbi.h-da.de/danet/gosdn/controller/conflict"
eventservice
"code.fbi.h-da.de/danet/gosdn/controller/eventService"
"code.fbi.h-da.de/danet/gosdn/controller/nucleus/domain/model"
"code.fbi.h-da.de/danet/gosdn/controller/nucleus/domain/ports"
"code.fbi.h-da.de/danet/gosdn/controller/topology/store"
"github.com/google/uuid"
...
...
@@ -46,7 +46,7 @@ func getTestStoreWithNodes(t *testing.T, nodes []Node) Store {
func
TestNewNodeService
(
t
*
testing
.
T
)
{
type
args
struct
{
store
Store
eventService
e
vent
.
Service
eventService
ports
.
E
ventService
}
tests
:=
[]
struct
{
name
string
...
...
@@ -74,7 +74,7 @@ func TestNewNodeService(t *testing.T) {
func
TestNodeService_EnsureExists
(
t
*
testing
.
T
)
{
type
fields
struct
{
store
Store
eventService
e
vent
.
Service
eventService
ports
.
E
ventService
}
type
args
struct
{
node
Node
...
...
@@ -132,7 +132,7 @@ func TestNodeService_EnsureExists(t *testing.T) {
func
TestNodeService_Update
(
t
*
testing
.
T
)
{
type
fields
struct
{
store
Store
eventService
e
vent
.
Service
eventService
ports
.
E
ventService
}
type
args
struct
{
node
Node
...
...
@@ -182,7 +182,7 @@ func TestNodeService_Update(t *testing.T) {
func
TestNodeService_Delete
(
t
*
testing
.
T
)
{
type
fields
struct
{
store
Store
eventService
e
vent
.
Service
eventService
ports
.
E
ventService
}
type
args
struct
{
node
Node
...
...
@@ -232,7 +232,7 @@ func TestNodeService_Delete(t *testing.T) {
func
TestNodeService_Get
(
t
*
testing
.
T
)
{
type
fields
struct
{
store
Store
eventService
e
vent
.
Service
eventService
ports
.
E
ventService
}
type
args
struct
{
query
model
.
Query
...
...
@@ -296,7 +296,7 @@ func TestNodeService_Get(t *testing.T) {
func
TestNodeService_GetAll
(
t
*
testing
.
T
)
{
type
fields
struct
{
store
Store
eventService
e
vent
.
Service
eventService
ports
.
E
ventService
}
tests
:=
[]
struct
{
name
string
...
...
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