Skip to content
Snippets Groups Projects
Commit 58f0aaf4 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

removed SBI name from mock queries as it can't be used anyway

parent bbedf774
Branches
Tags
1 merge request!338Draft: Resolve "Database PND store is missing option to search by name"
Checking pipeline status
...@@ -32,8 +32,7 @@ func TestSbiService_Get(t *testing.T) { ...@@ -32,8 +32,7 @@ func TestSbiService_Get(t *testing.T) {
sbiService, mockSbi := getSbiTestStores(t, sbiID) sbiService, mockSbi := getSbiTestStores(t, sbiID)
sbi, err := sbiService.Get(store.Query{ sbi, err := sbiService.Get(store.Query{
ID: mockSbi.ID(), ID: mockSbi.ID(),
Name: mockSbi.Name(),
}) })
if err != nil { if err != nil {
t.Error("could not get sbi") t.Error("could not get sbi")
...@@ -50,8 +49,7 @@ func TestSbiService_Delete(t *testing.T) { ...@@ -50,8 +49,7 @@ func TestSbiService_Delete(t *testing.T) {
sbiService, mockSbi := getSbiTestStores(t, sbiID) sbiService, mockSbi := getSbiTestStores(t, sbiID)
sbi, err := sbiService.Get(store.Query{ sbi, err := sbiService.Get(store.Query{
ID: mockSbi.ID(), ID: mockSbi.ID(),
Name: mockSbi.Name(),
}) })
if err != nil { if err != nil {
t.Error("could not get sbi") t.Error("could not get sbi")
...@@ -70,8 +68,7 @@ func TestSbiService_GetAll(t *testing.T) { ...@@ -70,8 +68,7 @@ func TestSbiService_GetAll(t *testing.T) {
sbiService, mockSbi := getSbiTestStores(t, sbiID) sbiService, mockSbi := getSbiTestStores(t, sbiID)
_, err := sbiService.Get(store.Query{ _, err := sbiService.Get(store.Query{
ID: mockSbi.ID(), ID: mockSbi.ID(),
Name: mockSbi.Name(),
}) })
if err != nil { if err != nil {
t.Error("could not get sbi") t.Error("could not get sbi")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment