Skip to content

Commit

Permalink
Mimecast v2 Connection Test Fix (#3147)
Browse files Browse the repository at this point in the history
* Update SDK | Update connection test for task

* Update version
  • Loading branch information
ablakley-r7 authored Feb 19, 2025
1 parent bf21df0 commit e05f908
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions plugins/mimecast_v2/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"spec": "a075e9a45f8da26b40eae68c765d196e",
"manifest": "e0e42959bee1c96589545b1afb0b1f61",
"setup": "ea867af34e3163ba06ef9660ec9023fc",
"spec": "c7a3d4f63684574f9f41df7cb0ff9a68",
"manifest": "77d59430569721dbe1790202bb95a440",
"setup": "9c87c7459f7e1e8eaf44625e1316d046",
"schemas": [
{
"identifier": "connection/schema.py",
Expand Down
2 changes: 1 addition & 1 deletion plugins/mimecast_v2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.2.4
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.2.5

LABEL organization=rapid7
LABEL sdk=python
Expand Down
2 changes: 1 addition & 1 deletion plugins/mimecast_v2/bin/icon_mimecast_v2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from sys import argv

Name = "Mimecast V2"
Vendor = "rapid7"
Version = "1.0.0"
Version = "1.0.1"
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)"


Expand Down
1 change: 1 addition & 0 deletions plugins/mimecast_v2/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Example output:

# Version History

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

# Links
Expand Down
5 changes: 3 additions & 2 deletions plugins/mimecast_v2/icon_mimecast_v2/connection/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ def test_task(self):
try:
now_date = datetime.now(tz=timezone.utc).date()
self.api.get_siem_logs(log_type="receipt", query_date=now_date, page_size=1, max_threads=1, next_page=None)
self.logger.info("The connection test to Mimecast was successful.")
return {"success": True}
return_messsage = "The connection test to Mimecast was successful."
self.logger.info(return_messsage)
return {"success": True}, return_messsage
except PluginException as error:
return_message = ""
failed_message = "The connection test to Mimecast for has failed."
Expand Down
5 changes: 3 additions & 2 deletions plugins/mimecast_v2/plugin.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ links:
- "[Mimecast](http://mimecast.com)"
references:
- "[Mimecast API](https://www.mimecast.com/developer/documentation)"
version: 1.0.0
version: 1.0.1
connection_version: 1
supported_versions: ["Mimecast 2.0 API 2025-01-23"]
vendor: rapid7
support: rapid7
cloud_ready: true
sdk:
type: slim
version: 6.2.4
version: 6.2.5
user: nobody
status: []
resources:
Expand All @@ -38,6 +38,7 @@ hub_tags:
keywords: [mimecast, email, cloud_enabled]
features: []
version_history:
- "1.0.1 - Update SDK | Improve output for a successful connection test"
- "1.0.0 - Initial plugin"
connection:
client_id:
Expand Down
2 changes: 1 addition & 1 deletion plugins/mimecast_v2/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


setup(name="mimecast_v2-rapid7-plugin",
version="1.0.0",
version="1.0.1",
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)",
author="rapid7",
author_email="",
Expand Down

0 comments on commit e05f908

Please sign in to comment.