Skip to content
Snippets Groups Projects
Verified Commit bc33a947 authored by André Sterba's avatar André Sterba
Browse files

Fix nodes tests

parent 1e71c16b
No related branches found
No related tags found
1 merge request!557Draft: Refactor nucleus to remove hard dependencies on structs
Pipeline #163547 failed
...@@ -4,10 +4,10 @@ import ( ...@@ -4,10 +4,10 @@ import (
"reflect" "reflect"
"testing" "testing"
"code.fbi.h-da.de/danet/gosdn/application-framework/event"
"code.fbi.h-da.de/danet/gosdn/controller/conflict" "code.fbi.h-da.de/danet/gosdn/controller/conflict"
eventservice "code.fbi.h-da.de/danet/gosdn/controller/eventService" 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/model"
"code.fbi.h-da.de/danet/gosdn/controller/nucleus/domain/ports"
"code.fbi.h-da.de/danet/gosdn/controller/topology/store" "code.fbi.h-da.de/danet/gosdn/controller/topology/store"
"github.com/google/uuid" "github.com/google/uuid"
...@@ -46,7 +46,7 @@ func getTestStoreWithNodes(t *testing.T, nodes []Node) Store { ...@@ -46,7 +46,7 @@ func getTestStoreWithNodes(t *testing.T, nodes []Node) Store {
func TestNewNodeService(t *testing.T) { func TestNewNodeService(t *testing.T) {
type args struct { type args struct {
store Store store Store
eventService event.Service eventService ports.EventService
} }
tests := []struct { tests := []struct {
name string name string
...@@ -74,7 +74,7 @@ func TestNewNodeService(t *testing.T) { ...@@ -74,7 +74,7 @@ func TestNewNodeService(t *testing.T) {
func TestNodeService_EnsureExists(t *testing.T) { func TestNodeService_EnsureExists(t *testing.T) {
type fields struct { type fields struct {
store Store store Store
eventService event.Service eventService ports.EventService
} }
type args struct { type args struct {
node Node node Node
...@@ -132,7 +132,7 @@ func TestNodeService_EnsureExists(t *testing.T) { ...@@ -132,7 +132,7 @@ func TestNodeService_EnsureExists(t *testing.T) {
func TestNodeService_Update(t *testing.T) { func TestNodeService_Update(t *testing.T) {
type fields struct { type fields struct {
store Store store Store
eventService event.Service eventService ports.EventService
} }
type args struct { type args struct {
node Node node Node
...@@ -182,7 +182,7 @@ func TestNodeService_Update(t *testing.T) { ...@@ -182,7 +182,7 @@ func TestNodeService_Update(t *testing.T) {
func TestNodeService_Delete(t *testing.T) { func TestNodeService_Delete(t *testing.T) {
type fields struct { type fields struct {
store Store store Store
eventService event.Service eventService ports.EventService
} }
type args struct { type args struct {
node Node node Node
...@@ -232,7 +232,7 @@ func TestNodeService_Delete(t *testing.T) { ...@@ -232,7 +232,7 @@ func TestNodeService_Delete(t *testing.T) {
func TestNodeService_Get(t *testing.T) { func TestNodeService_Get(t *testing.T) {
type fields struct { type fields struct {
store Store store Store
eventService event.Service eventService ports.EventService
} }
type args struct { type args struct {
query model.Query query model.Query
...@@ -296,7 +296,7 @@ func TestNodeService_Get(t *testing.T) { ...@@ -296,7 +296,7 @@ func TestNodeService_Get(t *testing.T) {
func TestNodeService_GetAll(t *testing.T) { func TestNodeService_GetAll(t *testing.T) {
type fields struct { type fields struct {
store Store store Store
eventService event.Service eventService ports.EventService
} }
tests := []struct { tests := []struct {
name string name string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment