Skip to content

Commit 1b70886

Browse files
committed
InsightVM - Updated dependencies | Updated SDK to latest version (6.4.3)
1 parent 9b9b4bf commit 1b70886

29 files changed

+70
-65
lines changed

plugins/rapid7_insightvm/.CHECKSUM

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"spec": "f59b63ac4d08b521f9bc2d645c920960",
3-
"manifest": "610650a75f0cbf3529548f57a5a653d6",
4-
"setup": "6310a78894925f0ba3ff220d76286e2d",
2+
"spec": "658ae1bdc352de9e087990318ec02670",
3+
"manifest": "8e8ff7efdd0d803733499624717d74f0",
4+
"setup": "93aa4d3c9bb4dd2af071f4e35eb2673b",
55
"schemas": [
66
{
77
"identifier": "add_scan_engine_pool_engine/schema.py",

plugins/rapid7_insightvm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-plugin:6.3.10 AS builder
1+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-plugin:6.4.3 AS builder
22

33
WORKDIR /python/src
44

@@ -11,7 +11,7 @@ ADD . /python/src
1111
RUN pip install .
1212
RUN pip uninstall -y setuptools
1313

14-
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-plugin:6.3.10
14+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-plugin:6.4.3
1515

1616
LABEL organization=rapid7
1717
LABEL sdk=python

plugins/rapid7_insightvm/bin/komand_rapid7_insightvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from sys import argv
66

77
Name = "Rapid7 InsightVM Console"
88
Vendor = "rapid7"
9-
Version = "8.0.13"
9+
Version = "8.0.14"
1010
Description = "InsightVM is a powerful vulnerability management tool which finds, prioritizes, and remediates vulnerabilities. This plugin uses an orchestrator to get top remediations, scan results and start scans"
1111

1212

plugins/rapid7_insightvm/help.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4012,6 +4012,7 @@ Example output:
40124012

40134013
# Version History
40144014

4015+
* 8.0.14 - Updated dependencies | Updated SDK to latest version (6.4.3)
40154016
* 8.0.13 - Resolved Snyk Vulnerability | Updated SDK to latest version (6.3.10)
40164017
* 8.0.12 - Resolved Snyk Vulnerabilities | Updated SDK to latest version (6.3.4)
40174018
* 8.0.11 - Updated the cache storage path and replaced the external function with internal implementation | Updated SDK to the latest version (6.2.6)

plugins/rapid7_insightvm/plugin.spec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Rapid7 InsightVM Console
66
description: InsightVM is a powerful vulnerability management tool which finds, prioritizes,
77
and remediates vulnerabilities. This plugin uses an orchestrator to get top remediations,
88
scan results and start scans
9-
version: 8.0.13
9+
version: 8.0.14
1010
connection_version: 8
1111
supported_versions: [Rapid7 InsightVM API v3 2022-05-25]
1212
fedramp_ready: true
@@ -15,7 +15,7 @@ support: rapid7
1515
status: []
1616
sdk:
1717
type: full
18-
version: 6.3.10
18+
version: 6.4.3
1919
user: root
2020
custom_cmd:
2121
- RUN apk add --no-cache --virtual .build-deps make gcc libc-dev libffi-dev openssl-dev libxml2-dev libxslt-dev
@@ -30,6 +30,7 @@ links:
3030
references:
3131
- '[InsightVM API 3](https://help.rapid7.com/insightvm/en-us/api/index.html)'
3232
version_history:
33+
- 8.0.14 - Updated dependencies | Updated SDK to latest version (6.4.3)
3334
- 8.0.13 - Resolved Snyk Vulnerability | Updated SDK to latest version (6.3.10)
3435
- 8.0.12 - Resolved Snyk Vulnerabilities | Updated SDK to latest version (6.3.4)
3536
- 8.0.11 - Updated the cache storage path and replaced the external function with internal implementation | Updated SDK to the latest version (6.2.6)
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# List third-party dependencies here, separated by newlines.
22
# All dependencies must be version-pinned, eg. requests==1.2.0
33
# See: https://pip.pypa.io/en/stable/user_guide/#requirements-files
4-
aiohttp==3.12.14
4+
aiohttp==3.13.3
55
defusedxml==0.7.1
66
datetime==5.5
7-
python-dateutil==2.9.0
87
parameterized==0.9.0
9-
pytest==8.3.4
10-
freezegun==1.5.1
8+
pytest==9.0.2
9+
freezegun==1.5.5

plugins/rapid7_insightvm/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name="rapid7_insightvm-rapid7-plugin",
7-
version="8.0.13",
7+
version="8.0.14",
88
description="InsightVM is a powerful vulnerability management tool which finds, prioritizes, and remediates vulnerabilities. This plugin uses an orchestrator to get top remediations, scan results and start scans",
99
author="rapid7",
1010
author_email="",

plugins/rapid7_insightvm/unit_test/test_asset_vulnerability_solution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setUpClass(cls) -> None:
3030
]
3131
]
3232
)
33-
def test_asset_vulnerability_solution(self, mock_get, name, asset_id, vulnerability_ids, expected):
33+
def test_asset_vulnerability_solution(self, mock_get, name, asset_id, vulnerability_ids, expected) -> None:
3434
actual = self.action.run({Input.ASSET_ID: asset_id, Input.VULNERABILITY_IDS: vulnerability_ids})
3535
self.assertEqual(actual, expected)
3636

@@ -56,7 +56,7 @@ def test_asset_vulnerability_solution(self, mock_get, name, asset_id, vulnerabil
5656
)
5757
def test_asset_vulnerability_solution_bad(
5858
self, mock_get, name, asset_id, vulnerability_ids, cause, assistance, data
59-
):
59+
) -> None:
6060
with self.assertRaises(PluginException) as error:
6161
self.action.run({Input.ASSET_ID: asset_id, Input.VULNERABILITY_IDS: vulnerability_ids})
6262
self.assertEqual(error.exception.cause, cause)

plugins/rapid7_insightvm/unit_test/test_async_requests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212

1313
class MockResponse:
14-
def __init__(self):
14+
def __init__(self) -> None:
1515
self.status = 200
1616

17-
async def text(self):
17+
async def text(self) -> str:
1818
return '{"test_key": "test_value"}'
1919

2020
async def json(self):
@@ -27,7 +27,7 @@ async def request(self, url, method, **kwargs):
2727

2828

2929
class TestAsyncRequests(TestCase):
30-
def test_async_request(self):
30+
def test_async_request(self) -> None:
3131
loop = asyncio.new_event_loop()
3232

3333
asyc_obj = async_requests.AsyncRequests("user", "pass", False)

plugins/rapid7_insightvm/unit_test/test_convert_date_to_iso8601.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TestCreateException(TestCase):
2525
["02-05-2022 12:34:56", "02-05-2022 12:34:56", "2022-02-05T12:34:56.000000Z"],
2626
]
2727
)
28-
def test_convert_date_to_iso8601(self, name, date, expected):
28+
def test_convert_date_to_iso8601(self, name, date, expected) -> None:
2929
actual = convert_date_to_iso8601(date)
3030
self.assertEqual(actual, expected)
3131

@@ -45,7 +45,7 @@ def test_convert_date_to_iso8601(self, name, date, expected):
4545
],
4646
]
4747
)
48-
def test_convert_date_to_iso8601_bad(self, name, date, cause, assistance):
48+
def test_convert_date_to_iso8601_bad(self, name, date, cause, assistance) -> None:
4949
with self.assertRaises(PluginException) as e:
5050
convert_date_to_iso8601(date)
5151
self.assertEqual(e.exception.cause, cause)

0 commit comments

Comments
 (0)