From 1718db1b142a60b80d70ed10c45e25b44a659c98 Mon Sep 17 00:00:00 2001 From: Meer Sawood Date: Tue, 31 Aug 2021 11:34:10 +0530 Subject: [PATCH] fixed e2e (#1279) --- integration-tests/data/package.json | 8 ++++---- integration-tests/features/component_analysis_v2.feature | 4 ++-- .../features/component_analysis_v2_batchcall.feature | 2 +- integration-tests/features/user_management.feature | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/integration-tests/data/package.json b/integration-tests/data/package.json index 19f9d4df8..98697b074 100644 --- a/integration-tests/data/package.json +++ b/integration-tests/data/package.json @@ -11,10 +11,10 @@ "url": "git://github.com/amirrajan/word-finder.git" }, "dependencies": { - "underscore" : "1.8.1", - "moment": "2.24.0", - "lodash": "4.17.11", - "request": "2.88.0" + "underscore": "1.8.1", + "moment": "2.24.0", + "lodash": "4.17.11", + "request": "2.88.0" }, "old_dependencies": { "babel-core": "^6.7.7", diff --git a/integration-tests/features/component_analysis_v2.feature b/integration-tests/features/component_analysis_v2.feature index 4d0611169..b97e876c5 100644 --- a/integration-tests/features/component_analysis_v2.feature +++ b/integration-tests/features/component_analysis_v2.feature @@ -21,9 +21,9 @@ Feature: Component analysis v2 API Examples: EPV | ecosystem | package | version | recommended-version | cve | score | severity | title | - | npm | ejs | 1.0.0 | 3.1.3 | SNYK-JS-EJS-10218 | 8.1 | high | Arbitrary Code Execution | + | npm | ejs | 1.0.0 | 3.1.6 | SNYK-JS-EJS-10218 | 8.1 | high | Arbitrary Code Execution | | npm | marked | 0.3.5 | 1.1.0 | SNYK-JS-MARKED-10377 | 7.5 | high | Cross-site Scripting (XSS) | - | npm | st | 0.2.4 | 2.0.0 | SNYK-JS-ST-10820 | 4.3 | medium | Open Redirect | + | npm | st | 0.2.4 | 3.0.0 | SNYK-JS-ST-10820 | 4.3 | medium | Open Redirect | | npm | npmconf | 0.0.24 | 2.1.3 | SNYK-JS-NPMCONF-12143 | 7.4 | high | Uninitialized Memory Exposure | | npm | moment | 2.15.1 | 2.27.0 | SNYK-JS-MOMENT-10841 | 3.7 | low | Regular Expression Denial of Service (ReDoS) | | npm | mongoose | 4.2.4 | 5.9.19 | SNYK-JS-MONGOOSE-10081 | 5.1 | medium | Remote Memory Exposure | diff --git a/integration-tests/features/component_analysis_v2_batchcall.feature b/integration-tests/features/component_analysis_v2_batchcall.feature index c81428626..3e1d33fea 100644 --- a/integration-tests/features/component_analysis_v2_batchcall.feature +++ b/integration-tests/features/component_analysis_v2_batchcall.feature @@ -11,7 +11,7 @@ Feature: Component analysis V2 Batch Call API And I should receive a valid JSON response Then I should be able to validate all the feilds or vulnerablities in the result And I should find package sequence 3.0.0 has no recommendation - And I should find package ejs 1.0.0 has 3.1.3 recommended version + And I should find package ejs 1.0.0 has 3.1.6 recommended version Then I should find snyk id SNYK-JS-EJS-10218 and 8.1 for package ejs and version 1.0.0 Then I should find snyk id SNYK-JS-ANGULAR-471882 for package angular and version 1.0.0 as private And I should not find any registered user fields diff --git a/integration-tests/features/user_management.feature b/integration-tests/features/user_management.feature index 8c60f78da..87f26e74a 100644 --- a/integration-tests/features/user_management.feature +++ b/integration-tests/features/user_management.feature @@ -96,7 +96,7 @@ Feature: User Management API And I should receive a valid JSON response Then I should be able to validate all the feilds or vulnerablities in the result with userid And I should find package sequence 3.0.0 has no recommendation - And I should find package ejs 1.0.0 has 3.1.3 recommended version + And I should find package ejs 1.0.0 has 3.1.6 recommended version Then I should find snyk id SNYK-JS-EJS-10218 and 8.1 for package ejs and version 1.0.0 Then I should find snyk id SNYK-JS-ANGULAR-471882 for package angular and version 1.0.0 as private Then I should find all the registered user fields in result @@ -116,7 +116,7 @@ Feature: User Management API And I should receive a valid JSON response Then I should be able to validate all the feilds or vulnerablities in the result And I should find package sequence 3.0.0 has no recommendation - And I should find package ejs 1.0.0 has 3.1.3 recommended version + And I should find package ejs 1.0.0 has 3.1.6 recommended version Then I should find snyk id SNYK-JS-EJS-10218 and 8.1 for package ejs and version 1.0.0 Then I should find snyk id SNYK-JS-ANGULAR-471882 for package angular and version 1.0.0 as private And I should not find any registered user fields