Skip to content

Workaround release notes #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/test/java/io/gardenlinux/glvd/GlvdControllerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public void shouldGetCveDetailsWithContextsForKernelCveIsResolved() {
.body("details.kernelLtsVersion[0]", equalTo("6.6"))
.body("details.kernelLtsVersion[1]", equalTo("6.12"))
// This CVE is not fixed in any kernel, so all are vulnerable
.body("details.isVulnerable", is(List.of(true, true, true, true, true, true, true, true)))
.body("details.isVulnerable", is(List.of(true, true, true, true, true, true, true)))
// Is explicitly marked as "resolved"
.body("contexts.resolved", hasItems(true));
}
Expand Down Expand Up @@ -275,6 +275,16 @@ public void shouldGenerateEmptyPatchReleaseNotesForDistWithNoSourcePackages() {
.body("packageList", empty());
}

@Test
public void reproduceIssue153() {
// Reproducer for https://github.com/gardenlinux/glvd/issues/153
given(this.spec).accept("application/json")
.when().port(this.port).get("/v1/patchReleaseNotes/1443.20")
.then().statusCode(200)
.body("version", equalTo("1443.20"))
.body("packageList", empty());
}

@Test
public void shouldReportExpectedTriagesForGardenlinuxVersion() {
given(this.spec).accept("application/json")
Expand Down
5 changes: 3 additions & 2 deletions src/test/resources/test-data/01-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--

-- Dumped from database version 17.4 (Debian 17.4-1.pgdg120+2)
-- Dumped by pg_dump version 17.4 (Debian 17.4-1.pgdg120+2)
-- Dumped by pg_dump version 17.5 (Debian 17.5-1)

SET statement_timeout = 0;
SET lock_timeout = 0;
Expand Down Expand Up @@ -640,4 +640,5 @@ ALTER TABLE ONLY public.debsrc

--
-- PostgreSQL database dump complete
--
--

Loading
Loading