Skip to content
Snippets Groups Projects

Add basic application framework and example application to show interaction between events an NBI

Merged Ghost User requested to merge istaester/init-application-framework into develop
5 files
+ 353
12
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -148,7 +148,7 @@ func TestNodeService_Update(t *testing.T) {
{
name: "should update an existing node",
fields: fields{
store: store.NewGenericStore[Node](),
store: getTestStoreWithNodes(t, []Node{getTestNode()}),
},
args: args{
node: getTestNode(),
@@ -194,7 +194,7 @@ func TestNodeService_Delete(t *testing.T) {
{
name: "should delete an existing node",
fields: fields{
store: store.NewGenericStore[Node](),
store: getTestStoreWithNodes(t, []Node{getTestNode()}),
},
args: args{
node: getTestNode(),
@@ -209,7 +209,7 @@ func TestNodeService_Delete(t *testing.T) {
args: args{
node: getTestNode(),
},
wantErr: false,
wantErr: true,
},
}
for _, tt := range tests {
@@ -295,7 +295,7 @@ func TestNodeService_GetAll(t *testing.T) {
wantErr bool
}{
{
name: "should fail if a node does not exists",
name: "should get all stored nodes",
fields: fields{
store: getTestStoreWithNodes(t, []Node{getTestNode()}),
},
Loading