@@ -194,7 +194,7 @@ func TestMarkOutdatedAcknowledgements(t *testing.T) {
194194
195195func TestGetProjectList_IgnoresProject (t * testing.T ) {
196196 mockClient := & mockClient {}
197- mockClient .On ("GetProjectList" , []string {"group/to/scan" }).Return ([]repository.Project {{Name : "Hello World" , RepoUrl : "https://gitlab.com/group/to/scan.git " , Repository : repository .Gitlab }}, nil )
197+ mockClient .On ("GetProjectList" , []string {"group/to/scan" }).Return ([]repository.Project {{Path : "path/of/project " , Repository : repository .Gitlab }}, nil )
198198
199199 mockRepoService := & mockRepoService {}
200200 mockRepoService .On ("Provide" , repository .Gitlab ).Return (mockClient )
@@ -204,11 +204,11 @@ func TestGetProjectList_IgnoresProject(t *testing.T) {
204204 // The ignored list contains the project path, so it should be filtered out
205205 projects , warn := svc .(* sheriffService ).getProjectList (
206206 []config.ProjectLocation {{Type : repository .Gitlab , Path : "group/to/scan" }},
207- []config.ProjectLocation {{Type : repository .Gitlab , Path : "group/to/scan " }},
207+ []config.ProjectLocation {{Type : repository .Gitlab , Path : "path/of/project " }},
208208 )
209209 assert .Nil (t , warn )
210210 assert .Empty (t , projects )
211- mockClient .AssertNotCalled (t , "GetProjectList" , []string {"group/to/scan " })
211+ mockClient .AssertNotCalled (t , "GetProjectList" , []string {"path/of/project " })
212212}
213213
214214type mockRepoService struct {
0 commit comments