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 (
"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 event.Service
eventService ports.EventService
}
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 event.Service
eventService ports.EventService
}
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 event.Service
eventService ports.EventService
}
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 event.Service
eventService ports.EventService
}
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 event.Service
eventService ports.EventService
}
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 event.Service
eventService ports.EventService
}
tests := []struct {
name string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment