From aa47157c8ec3df5a6d16e3866b095c8f91026465 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Wed, 29 Jan 2025 10:06:00 +0100 Subject: dashboard/app: change coverage links It will simplify the json API links. --- dashboard/app/coverage_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dashboard/app/coverage_test.go') diff --git a/dashboard/app/coverage_test.go b/dashboard/app/coverage_test.go index ef8321c9f..c4945ab09 100644 --- a/dashboard/app/coverage_test.go +++ b/dashboard/app/coverage_test.go @@ -29,7 +29,7 @@ func TestFileCoverage(t *testing.T) { name: "empty db", covDB: func(t *testing.T) spannerclient.SpannerClient { return emptyCoverageDBFixture(t, 1) }, fileProv: func(t *testing.T) covermerger.FileVersProvider { return staticFileProvider(t) }, - url: "/test2/graph/coverage/file?dateto=2025-01-31&period=month" + + url: "/test2/coverage/file?dateto=2025-01-31&period=month" + "&commit=c0e75905caf368e19aab585d20151500e750de89&filepath=virt/kvm/kvm_main.c", wantInRes: []string{"1 line1"}, }, @@ -37,7 +37,7 @@ func TestFileCoverage(t *testing.T) { name: "regular db", covDB: func(t *testing.T) spannerclient.SpannerClient { return coverageDBFixture(t) }, fileProv: func(t *testing.T) covermerger.FileVersProvider { return staticFileProvider(t) }, - url: "/test2/graph/coverage/file?dateto=2025-01-31&period=month" + + url: "/test2/coverage/file?dateto=2025-01-31&period=month" + "&commit=c0e75905caf368e19aab585d20151500e750de89&filepath=virt/kvm/kvm_main.c", wantInRes: []string{ "4 1 line1", @@ -48,7 +48,7 @@ func TestFileCoverage(t *testing.T) { name: "multimanager db", covDB: func(t *testing.T) spannerclient.SpannerClient { return multiManagerCovDBFixture(t) }, fileProv: func(t *testing.T) covermerger.FileVersProvider { return staticFileProvider(t) }, - url: "/test2/graph/coverage/file?dateto=2025-01-31&period=month" + + url: "/test2/coverage/file?dateto=2025-01-31&period=month" + "&commit=c0e75905caf368e19aab585d20151500e750de89&filepath=virt/kvm/kvm_main.c" + "&manager=special-cc-manager&unique-only=1", wantInRes: []string{ -- cgit mrf-deployment