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
2 files
+ 6
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -61,7 +61,7 @@ func TestGetRole(t *testing.T) {
ctx context.Context
addr string
name string
uuid uuid.UUID
id uuid.UUID
}
tests := []struct {
name string
@@ -75,6 +75,7 @@ func TestGetRole(t *testing.T) {
ctx: context.TODO(),
addr: testAPIEndpoint,
name: "adminTestRole",
id: uuid.Nil,
},
want: &apb.GetRoleResponse{
Status: apb.Status_STATUS_OK,
@@ -91,6 +92,7 @@ func TestGetRole(t *testing.T) {
ctx: context.TODO(),
addr: testAPIEndpoint,
name: "not role",
id: uuid.Nil,
},
want: nil,
wantErr: true,
@@ -98,7 +100,7 @@ func TestGetRole(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := GetRole(tt.args.ctx, tt.args.addr, tt.args.name, tt.args.uuid)
got, err := GetRole(tt.args.ctx, tt.args.addr, tt.args.name, tt.args.id)
if (err != nil) != tt.wantErr {
t.Errorf("GetRole() error = %v, wantErr %v", err, tt.wantErr)
return
Loading