Skip to content

Commit

Permalink
fix: broken Integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
  • Loading branch information
zvigrinberg committed Jul 7, 2024
1 parent 00f5b59 commit b61215f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/it/end-to-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ suite('Integration Tests', () => {
let pomPath = `test/it/test_manifests/${packageManager}/${manifestName}`
let providedDataForStack = await index.stackAnalysis(pomPath)
console.log(JSON.stringify(providedDataForStack,null , 4))
let providers = ["osv-nvd"]
let providers = ["osv"]
providers.forEach(provider => expect(extractTotalsGeneralOrFromProvider(providedDataForStack, provider)).greaterThan(0))
//TO DO - if sources doesn't exists, add "scanned" instead
// python transitive count for stack analysis is awaiting fix in exhort backend
Expand Down Expand Up @@ -104,7 +104,7 @@ suite('Integration Tests', () => {
}
finally
{
parsedStatusFromHtmlOsvNvd = reportParsedFromHtml.providers["osv-nvd"].status
parsedStatusFromHtmlOsvNvd = reportParsedFromHtml.providers["osv"].status
expect(parsedStatusFromHtmlOsvNvd.code).equals(200)
parsedScannedFromHtml = reportParsedFromHtml.scanned
expect( typeof html).equals("string")
Expand All @@ -128,7 +128,7 @@ suite('Integration Tests', () => {

expect(analysisReport.scanned.total).greaterThan(0)
expect(analysisReport.scanned.transitive).equal(0)
let providers = ["osv-nvd"]
let providers = ["osv"]
providers.forEach(provider => expect(extractTotalsGeneralOrFromProvider(analysisReport,provider)).greaterThan(0))
providers.forEach(provider => expect(analysisReport.providers[provider].status.code).equals(200))
}).timeout(20000);
Expand Down

0 comments on commit b61215f

Please sign in to comment.