@@ -142,16 +142,23 @@ func TestStackroxVulnImages(t *testing.T) {
142142 image : "quay.io/rhacs-eng/qa:rails-cve-2016-2098" ,
143143 expectedFeatures : []feature {
144144 {"rails" , "4.2.5.1" , []expectedVuln {
145- {name : "CVE-2016-2098" },
146- {name : "CVE-2016-6316" },
147- {name : "CVE-2016-6317" },
148145 {name : "CVE-2018-16476" , fixedBy : "4.2.11" },
149146 {name : "CVE-2019-5418" , fixedBy : "4.2.11.1" },
150147 {name : "CVE-2019-5419" , fixedBy : "4.2.11.1" },
151148 {name : "CVE-2019-5420" , fixedBy : "5.2.2.1" },
152149 },
153150 },
154151 },
152+ unexpectedVulns : []feature {
153+ {"rails" , "4.2.5.1" , []expectedVuln {
154+ // These three vulns should exist, but NVD set these to deferred.
155+ // Placing them here until they are no longer deferred.
156+ {name : "CVE-2016-2098" },
157+ {name : "CVE-2016-6316" },
158+ {name : "CVE-2016-6317" },
159+ },
160+ },
161+ },
155162 },
156163 {
157164 // docker.io/1and1internet/ubuntu-16-customerssh:latest
@@ -177,10 +184,6 @@ func TestStackroxVulnImages(t *testing.T) {
177184 {name : "CVE-2019-10086" , fixedBy : "" },
178185 },
179186 },
180- {"commons_fileupload" , "1.3.2" , []expectedVuln {
181- {name : "CVE-2016-1000031" , fixedBy : "" },
182- },
183- },
184187 {"guava" , "18.0" , []expectedVuln {
185188 {name : "CVE-2018-10237" , fixedBy : "24.1.1" },
186189 },
@@ -194,6 +197,12 @@ func TestStackroxVulnImages(t *testing.T) {
194197 {name : "CVE-2015-2512" },
195198 },
196199 },
200+ {"commons_fileupload" , "1.3.2" , []expectedVuln {
201+ // This vuln should exist, but NVD set it to deferred.
202+ // Placing it here until they are no longer deferred.
203+ {name : "CVE-2016-1000031" , fixedBy : "" },
204+ },
205+ },
197206 },
198207 },
199208 {
@@ -209,17 +218,17 @@ func TestStackroxVulnImages(t *testing.T) {
209218 {
210219 // docker.io/library/cassandra:latest
211220 image : "quay.io/rhacs-eng/qa:cassandra" ,
212- expectedFeatures : []feature {
213- {"logback" , "1.1.3" , []expectedVuln {
214- {name : "CVE-2017-5929" , fixedBy : "" },
215- },
216- },
217- },
218221 unexpectedVulns : []feature {
219222 {"slingshot" , "0.10.3" , []expectedVuln {
220223 {name : "CVE-2015-5711" },
221224 },
222225 },
226+ {"logback" , "1.1.3" , []expectedVuln {
227+ // This vuln should exist, but NVD set it to deferred.
228+ // Placing it here until they are no longer deferred.
229+ {name : "CVE-2017-5929" , fixedBy : "" },
230+ },
231+ },
223232 },
224233 },
225234 {
0 commit comments