Commit 74f0c68
committed
Fix SimpleJson binary scan tests - remove watch logic
Root cause: Tests were using testXrayBinaryScanWithWatch which creates
a watch for BUILDS (watchParams.Builds.Type = WatchBuildAll). This watch
doesn't apply to BINARY scans, causing empty scan results.
TestXrayBinaryScanJson (line 94) works fine because it scans binaries
WITHOUT watches and expects only vulnerabilities (no violations).
Changes:
- TestXrayBinaryScanSimpleJson: Use testXrayMultipleBinariesScan instead of testXrayBinaryScanWithWatch
- TestXrayBinaryScanSimpleJsonWithProgress: Same change
- Removed 'Violations: 1' from expectations (violations require watches)
- Now expect only Vulnerabilities: 1, Licenses: 1 (same as Json test)
These tests now work like TestXrayBinaryScanJson but output SimpleJson
format instead of Json format.1 parent 88f9172 commit 74f0c68
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
| 104 | + | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | | - | |
| 173 | + | |
173 | 174 | | |
174 | | - | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| |||
0 commit comments