Skip to content
Snippets Groups Projects
Commit b36faa46 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

Merge branch 'unified-storage-architecture' into 'develop'

typos

See merge request cocsn/gosdn!105
parents e083ddcb cca74259
No related branches found
No related tags found
2 merge requests!105typos,!90Develop
Pipeline #66196 passed with warnings
......@@ -3,7 +3,6 @@ package nucleus
import (
pb "code.fbi.h-da.de/cocsn/gosdn/api/proto"
"context"
"github.com/google/uuid"
"google.golang.org/protobuf/types/known/emptypb"
"reflect"
"testing"
......@@ -57,7 +56,6 @@ func Test_server_AddDevice(t *testing.T) {
UnimplementedGrpcCliServer pb.UnimplementedGrpcCliServer
core *Core
logConnections []*logConnection
devices map[uuid.UUID]Device
}
type args struct {
ctx context.Context
......@@ -78,7 +76,6 @@ func Test_server_AddDevice(t *testing.T) {
UnimplementedGrpcCliServer: tt.fields.UnimplementedGrpcCliServer,
core: tt.fields.core,
logConnections: tt.fields.logConnections,
devices: tt.fields.devices,
}
got, err := s.AddDevice(tt.args.ctx, tt.args.in)
if (err != nil) != tt.wantErr {
......@@ -97,7 +94,6 @@ func Test_server_BroadcastLog(t *testing.T) {
UnimplementedGrpcCliServer pb.UnimplementedGrpcCliServer
core *Core
logConnections []*logConnection
devices map[uuid.UUID]Device
}
type args struct {
log *pb.LogReply
......@@ -115,7 +111,6 @@ func Test_server_BroadcastLog(t *testing.T) {
UnimplementedGrpcCliServer: tt.fields.UnimplementedGrpcCliServer,
core: tt.fields.core,
logConnections: tt.fields.logConnections,
devices: tt.fields.devices,
}
})
}
......@@ -126,7 +121,6 @@ func Test_server_CreateLogStream(t *testing.T) {
UnimplementedGrpcCliServer pb.UnimplementedGrpcCliServer
core *Core
logConnections []*logConnection
devices map[uuid.UUID]Device
}
type args struct {
req *emptypb.Empty
......@@ -146,7 +140,6 @@ func Test_server_CreateLogStream(t *testing.T) {
UnimplementedGrpcCliServer: tt.fields.UnimplementedGrpcCliServer,
core: tt.fields.core,
logConnections: tt.fields.logConnections,
devices: tt.fields.devices,
}
if err := s.CreateLogStream(tt.args.req, tt.args.stream); (err != nil) != tt.wantErr {
t.Errorf("CreateLogStream() error = %v, wantErr %v", err, tt.wantErr)
......@@ -160,7 +153,6 @@ func Test_server_CreatePND(t *testing.T) {
UnimplementedGrpcCliServer pb.UnimplementedGrpcCliServer
core *Core
logConnections []*logConnection
devices map[uuid.UUID]Device
}
type args struct {
ctx context.Context
......@@ -181,7 +173,6 @@ func Test_server_CreatePND(t *testing.T) {
UnimplementedGrpcCliServer: tt.fields.UnimplementedGrpcCliServer,
core: tt.fields.core,
logConnections: tt.fields.logConnections,
devices: tt.fields.devices,
}
got, err := s.CreatePND(tt.args.ctx, tt.args.in)
if (err != nil) != tt.wantErr {
......@@ -200,7 +191,6 @@ func Test_server_GetAllPNDs(t *testing.T) {
UnimplementedGrpcCliServer pb.UnimplementedGrpcCliServer
core *Core
logConnections []*logConnection
devices map[uuid.UUID]Device
}
type args struct {
ctx context.Context
......@@ -221,7 +211,6 @@ func Test_server_GetAllPNDs(t *testing.T) {
UnimplementedGrpcCliServer: tt.fields.UnimplementedGrpcCliServer,
core: tt.fields.core,
logConnections: tt.fields.logConnections,
devices: tt.fields.devices,
}
got, err := s.GetAllPNDs(tt.args.ctx, tt.args.in)
if (err != nil) != tt.wantErr {
......@@ -240,7 +229,6 @@ func Test_server_GetAllSBINames(t *testing.T) {
UnimplementedGrpcCliServer pb.UnimplementedGrpcCliServer
core *Core
logConnections []*logConnection
devices map[uuid.UUID]Device
}
type args struct {
ctx context.Context
......@@ -261,7 +249,6 @@ func Test_server_GetAllSBINames(t *testing.T) {
UnimplementedGrpcCliServer: tt.fields.UnimplementedGrpcCliServer,
core: tt.fields.core,
logConnections: tt.fields.logConnections,
devices: tt.fields.devices,
}
got, err := s.GetAllSBINames(tt.args.ctx, tt.args.in)
if (err != nil) != tt.wantErr {
......@@ -280,7 +267,6 @@ func Test_server_HandleDeviceGetRequest(t *testing.T) {
UnimplementedGrpcCliServer pb.UnimplementedGrpcCliServer
core *Core
logConnections []*logConnection
devices map[uuid.UUID]Device
}
type args struct {
ctx context.Context
......@@ -301,7 +287,6 @@ func Test_server_HandleDeviceGetRequest(t *testing.T) {
UnimplementedGrpcCliServer: tt.fields.UnimplementedGrpcCliServer,
core: tt.fields.core,
logConnections: tt.fields.logConnections,
devices: tt.fields.devices,
}
got, err := s.HandleDeviceGetRequest(tt.args.ctx, tt.args.in)
if (err != nil) != tt.wantErr {
......@@ -320,7 +305,6 @@ func Test_server_SayHello(t *testing.T) {
UnimplementedGrpcCliServer pb.UnimplementedGrpcCliServer
core *Core
logConnections []*logConnection
devices map[uuid.UUID]Device
}
type args struct {
ctx context.Context
......@@ -341,7 +325,6 @@ func Test_server_SayHello(t *testing.T) {
UnimplementedGrpcCliServer: tt.fields.UnimplementedGrpcCliServer,
core: tt.fields.core,
logConnections: tt.fields.logConnections,
devices: tt.fields.devices,
}
got, err := s.SayHello(tt.args.ctx, tt.args.in)
if (err != nil) != tt.wantErr {
......@@ -360,7 +343,6 @@ func Test_server_Shutdown(t *testing.T) {
UnimplementedGrpcCliServer pb.UnimplementedGrpcCliServer
core *Core
logConnections []*logConnection
devices map[uuid.UUID]Device
}
type args struct {
ctx context.Context
......@@ -381,7 +363,6 @@ func Test_server_Shutdown(t *testing.T) {
UnimplementedGrpcCliServer: tt.fields.UnimplementedGrpcCliServer,
core: tt.fields.core,
logConnections: tt.fields.logConnections,
devices: tt.fields.devices,
}
got, err := s.Shutdown(tt.args.ctx, tt.args.in)
if (err != nil) != tt.wantErr {
......@@ -393,4 +374,4 @@ func Test_server_Shutdown(t *testing.T) {
}
})
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment