Skip to content

Commit e05f908

Browse files
authored
Mimecast v2 Connection Test Fix (#3147)
* Update SDK | Update connection test for task * Update version
1 parent bf21df0 commit e05f908

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

plugins/mimecast_v2/.CHECKSUM

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"spec": "a075e9a45f8da26b40eae68c765d196e",
3-
"manifest": "e0e42959bee1c96589545b1afb0b1f61",
4-
"setup": "ea867af34e3163ba06ef9660ec9023fc",
2+
"spec": "c7a3d4f63684574f9f41df7cb0ff9a68",
3+
"manifest": "77d59430569721dbe1790202bb95a440",
4+
"setup": "9c87c7459f7e1e8eaf44625e1316d046",
55
"schemas": [
66
{
77
"identifier": "connection/schema.py",

plugins/mimecast_v2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.2.4
1+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.2.5
22

33
LABEL organization=rapid7
44
LABEL sdk=python

plugins/mimecast_v2/bin/icon_mimecast_v2

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 = "Mimecast V2"
88
Vendor = "rapid7"
9-
Version = "1.0.0"
9+
Version = "1.0.1"
1010
Description = "[Mimecast](https://www.mimecast.com) is a set of cloud services designed to provide next generation protection against advanced email-borne threats such as malicious URLs, malware, impersonation attacks, as well as internally generated threats, with a focus on email security. This plugin utilizes the [Mimecast API](https://www.mimecast.com/developer/documentation)"
1111

1212

plugins/mimecast_v2/help.md

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

104104
# Version History
105105

106+
* 1.0.1 - Update SDK | Improve output for a successful connection test
106107
* 1.0.0 - Initial plugin
107108

108109
# Links

plugins/mimecast_v2/icon_mimecast_v2/connection/connection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ def test_task(self):
3030
try:
3131
now_date = datetime.now(tz=timezone.utc).date()
3232
self.api.get_siem_logs(log_type="receipt", query_date=now_date, page_size=1, max_threads=1, next_page=None)
33-
self.logger.info("The connection test to Mimecast was successful.")
34-
return {"success": True}
33+
return_messsage = "The connection test to Mimecast was successful."
34+
self.logger.info(return_messsage)
35+
return {"success": True}, return_messsage
3536
except PluginException as error:
3637
return_message = ""
3738
failed_message = "The connection test to Mimecast for has failed."

plugins/mimecast_v2/plugin.spec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ links:
1515
- "[Mimecast](http://mimecast.com)"
1616
references:
1717
- "[Mimecast API](https://www.mimecast.com/developer/documentation)"
18-
version: 1.0.0
18+
version: 1.0.1
1919
connection_version: 1
2020
supported_versions: ["Mimecast 2.0 API 2025-01-23"]
2121
vendor: rapid7
2222
support: rapid7
2323
cloud_ready: true
2424
sdk:
2525
type: slim
26-
version: 6.2.4
26+
version: 6.2.5
2727
user: nobody
2828
status: []
2929
resources:
@@ -38,6 +38,7 @@ hub_tags:
3838
keywords: [mimecast, email, cloud_enabled]
3939
features: []
4040
version_history:
41+
- "1.0.1 - Update SDK | Improve output for a successful connection test"
4142
- "1.0.0 - Initial plugin"
4243
connection:
4344
client_id:

plugins/mimecast_v2/setup.py

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

44

55
setup(name="mimecast_v2-rapid7-plugin",
6-
version="1.0.0",
6+
version="1.0.1",
77
description="[Mimecast](https://www.mimecast.com) is a set of cloud services designed to provide next generation protection against advanced email-borne threats such as malicious URLs, malware, impersonation attacks, as well as internally generated threats, with a focus on email security. This plugin utilizes the [Mimecast API](https://www.mimecast.com/developer/documentation)",
88
author="rapid7",
99
author_email="",

0 commit comments

Comments
 (0)