mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
test(search): assert CVEDiffListForImages nil-cve response fields
Agent-Logs-Url: https://github.com/project-zot/zot/sessions/693982ce-babb-4ab8-a58d-83494a0f8f9b Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8054651abe
commit
fe6203c027
@@ -752,9 +752,12 @@ func TestQueryResolverErrors(t *testing.T) {
|
||||
|
||||
qr := queryResolver{resolverConfig}
|
||||
|
||||
_, err := qr.CVEDiffListForImages(ctx, gql_generated.ImageInput{}, gql_generated.ImageInput{},
|
||||
result, err := qr.CVEDiffListForImages(ctx, gql_generated.ImageInput{}, gql_generated.ImageInput{},
|
||||
&gql_generated.PageInput{}, nil, nil)
|
||||
So(err, ShouldBeNil)
|
||||
So(result, ShouldNotBeNil)
|
||||
So(result.Minuend, ShouldNotBeNil)
|
||||
So(result.Subtrahend, ShouldNotBeNil)
|
||||
})
|
||||
|
||||
Convey("CVEListForImage nil cveinfo returns empty result", func() {
|
||||
|
||||
Reference in New Issue
Block a user