insightconnect-plugin-runtime 6.3.6__py3-none-any.whl → 6.3.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -187,26 +187,18 @@ class ConnectionTestException(Exception):
187
187
  self.data = str(data) if data else ""
188
188
 
189
189
  def __str__(self):
190
+ str_rep = f"Connection test failed! {self.cause} {self.assistance}"
190
191
  if self.data:
191
- return "Connection test failed!\n\n{cause} {assistance} Response was: {data}".format(
192
- cause=self.cause, assistance=self.assistance, data=self.data
193
- )
194
- else:
195
- return "Connection test failed!\n\n{cause} {assistance}".format(
196
- cause=self.cause, assistance=self.assistance
197
- )
192
+ str_rep += f" Response was: {self.data}"
193
+ return str_rep
198
194
 
199
195
 
200
196
  class PluginException(ConnectionTestException):
201
197
  def __str__(self):
198
+ str_repr = f"An error occurred during plugin execution! {self.cause} {self.assistance}"
202
199
  if self.data:
203
- return "An error occurred during plugin execution!\n\n{cause} {assistance} Response was: {data}".format(
204
- cause=self.cause, assistance=self.assistance, data=self.data
205
- )
206
- else:
207
- return "An error occurred during plugin execution!\n\n{cause} {assistance}".format(
208
- cause=self.cause, assistance=self.assistance
209
- )
200
+ str_repr += f" Response was {self.data}"
201
+ return str_repr
210
202
 
211
203
 
212
204
  class APIException(PluginException):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: insightconnect-plugin-runtime
3
- Version: 6.3.6
3
+ Version: 6.3.8
4
4
  Summary: InsightConnect Plugin Runtime
5
5
  Home-page: https://github.com/rapid7/komand-plugin-sdk-python
6
6
  Author: Rapid7 Integrations Alliance
@@ -32,6 +32,7 @@ Requires-Dist: opentelemetry-sdk==1.34.0
32
32
  Requires-Dist: opentelemetry-instrumentation-flask==0.55b0
33
33
  Requires-Dist: opentelemetry-exporter-otlp-proto-http==1.34.0
34
34
  Requires-Dist: opentelemetry-instrumentation-requests==0.55b0
35
+ Requires-Dist: urllib3==2.5.0
35
36
  Dynamic: author
36
37
  Dynamic: author-email
37
38
  Dynamic: classifier
@@ -225,6 +226,8 @@ contributed. Black is installed as a test dependency and the hook can be initial
225
226
  after cloning this repository.
226
227
 
227
228
  ## Changelog
229
+ * 6.3.8 - Update exception string representation methods to remove newline characters
230
+ * 6.3.7 - Addressed vulnerability in 'urllib3' (removed from `requirements.txt` as it's a dependency of `botocore`)
228
231
  * 6.3.6 - Added required dependency to plugin runtime
229
232
  * 6.3.5 - Added `monitor_task_delay` decorator to detect processing delays
230
233
  * 6.3.4 - Addressed vulnerabilities within the slim and non-slim Python images (bumping packages)
@@ -3,7 +3,7 @@ insightconnect_plugin_runtime/action.py,sha256=8gsOONf7mzY83O3DNjCBIafk7C7acnf7m
3
3
  insightconnect_plugin_runtime/cli.py,sha256=Pb-Janu-XfRlSXxPHh30OIquljWptrhhS51C3clJqh4,8939
4
4
  insightconnect_plugin_runtime/connection.py,sha256=4bHHV2B0UFGsAtvLu1fiYQRwx7fissUakHPUyjLQO0E,2340
5
5
  insightconnect_plugin_runtime/dispatcher.py,sha256=ru7njnyyWE1-oD-VbZJ-Z8tELwvDf69rM7Iezs4rbnw,1774
6
- insightconnect_plugin_runtime/exceptions.py,sha256=Pvcdkx81o6qC2qU661x-DzNjuIMP82x52nPMSEqEo4s,8491
6
+ insightconnect_plugin_runtime/exceptions.py,sha256=LeZR2H_seHIUALLwnKyH5W7PX3VNa-lOTxJ0vZJra8I,8068
7
7
  insightconnect_plugin_runtime/helper.py,sha256=xGiskPd4vHr_k7BNEb3_7gPxm8sB85A7_5N31S-0RE4,33994
8
8
  insightconnect_plugin_runtime/metrics.py,sha256=hf_Aoufip_s4k4o8Gtzz90ymZthkaT2e5sXh5B4LcF0,3186
9
9
  insightconnect_plugin_runtime/plugin.py,sha256=Yf4LNczykDVc31F9G8uuJ9gxEsgmxmAr0n4pcZzichM,26393
@@ -70,7 +70,7 @@ tests/unit/test_custom_encoder.py,sha256=KLYyVOTq9MEkZXyhVHqjm5LVSW6uJS4Davgghsw
70
70
  tests/unit/test_endpoints.py,sha256=Ef0f6EudnAA_o6jZJ7rvgwgQHHswPuBEiyyo1D7BWMc,11523
71
71
  tests/unit/test_exceptions.py,sha256=Y4F-ij8WkEJkUU3mPvxlEchqE9NCdxDvR8bJzPVVNao,5328
72
72
  tests/unit/test_helpers.py,sha256=ym1tFi1VSKmdPaHEAlMEl1S7Ibu9-LrqZ2oqJv7bfbE,18685
73
- tests/unit/test_metrics.py,sha256=PjjTrB9w7uQ2Q5UN-893-SsH3EGJuBseOMHSD1I004s,7979
73
+ tests/unit/test_metrics.py,sha256=8Uj26ZubZJ9AMETzmkt06j1SubUyl9UqWiBBJRYRx4s,7973
74
74
  tests/unit/test_oauth.py,sha256=nbFG0JH1x04ExXqSe-b5BGdt_hJs7DP17eUa6bQzcYI,2093
75
75
  tests/unit/test_plugin.py,sha256=ZTNAZWwZhDIAbxkVuWhnz9FzmojbijgMmsLWM2mXQI0,4160
76
76
  tests/unit/test_schema.py,sha256=swWZPRo_Q4M6VHte-srmxcV2wH-XS7pgmNRxpaL0Qrg,642
@@ -79,7 +79,7 @@ tests/unit/test_server_spec.py,sha256=je97BaktgK0Fiz3AwFPkcmHzYtOJJNqJV_Fw5hrvqX
79
79
  tests/unit/test_trigger.py,sha256=E53mAUoVyponWu_4IQZ0IC1gQ9lakBnTn_9vKN2IZfg,1692
80
80
  tests/unit/test_variables.py,sha256=OUEOqGYZA3Nd5oKk5GVY3hcrWKHpZpxysBJcO_v5gzs,291
81
81
  tests/unit/utils.py,sha256=hcY0A2H_DMgCDXUTvDtCXMdMvRjLQgTaGcTpATb8YG0,2236
82
- insightconnect_plugin_runtime-6.3.6.dist-info/METADATA,sha256=m6s9IdaVg70xBaNguO4hTK0v5q4hjngcbc1W6j7qmiU,16773
83
- insightconnect_plugin_runtime-6.3.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- insightconnect_plugin_runtime-6.3.6.dist-info/top_level.txt,sha256=AJtyJOpiFzHxsbHUICTcUKXyrGQ3tZxhrEHsPjJBvEA,36
85
- insightconnect_plugin_runtime-6.3.6.dist-info/RECORD,,
82
+ insightconnect_plugin_runtime-6.3.8.dist-info/METADATA,sha256=_-zzVCmTzI4obWINV6suioKU5KJzx8c8pNLSFvUmSMM,17005
83
+ insightconnect_plugin_runtime-6.3.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
+ insightconnect_plugin_runtime-6.3.8.dist-info/top_level.txt,sha256=AJtyJOpiFzHxsbHUICTcUKXyrGQ3tZxhrEHsPjJBvEA,36
85
+ insightconnect_plugin_runtime-6.3.8.dist-info/RECORD,,
@@ -22,7 +22,7 @@ class BuildErrorBlobTest(unittest.TestCase):
22
22
  expected = {
23
23
  "cause": "not_found",
24
24
  "known": True,
25
- "message": "An error occurred during plugin execution!\n\nInvalid or unreachable endpoint "
25
+ "message": "An error occurred during plugin execution! Invalid or unreachable endpoint "
26
26
  "provided. Verify the URLs or endpoints in your configuration are correct.",
27
27
  }
28
28
 
@@ -237,7 +237,7 @@ class BuildTest(unittest.TestCase):
237
237
  "error": {
238
238
  "cause": "not_found",
239
239
  "known": True,
240
- "message": "An error occurred during plugin execution!\n\nInvalid or "
240
+ "message": "An error occurred during plugin execution! Invalid or "
241
241
  "unreachable endpoint provided. Verify the URLs or endpoints in your configuration are correct.",
242
242
  },
243
243
  "inputs": ["type"],