Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Marlon Pina Tojal <marlont@backbase.com>
  • Loading branch information
Marlon Pina Tojal authored and nscuro committed May 17, 2024
1 parent 2791f5a commit f23829b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,13 @@ public void testWithPackageWithTrivyPropertiesWithDistroWithoutOS() {
new TrivyAnalysisTask().inform(analysisEvent);

assertThat(qm.getAllVulnerabilities(component)).anySatisfy(vuln -> {
assertThat(vuln.getVulnId()).isEqualTo("CVE-2024-32021");
assertThat(vuln.getVulnId()).isEqualTo("CVE-2024-32002");
assertThat(vuln.getSource()).isEqualTo(Vulnerability.Source.NVD.name());

// NB: Can't assert specific values here, as we're testing against
// a moving target. These values may change over time. We do proper
// assertions in TrivyAnalyzerTaskTest.
assertThat(vuln.getTitle()).isBlank();
assertThat(vuln.getTitle()).isNotBlank();
assertThat(vuln.getDescription()).isNotBlank();
assertThat(vuln.getCreated()).isNotNull();
assertThat(vuln.getPublished()).isNotNull();
Expand Down

0 comments on commit f23829b

Please sign in to comment.