From c729ab80d5b9856b75b706d27d6c2ce53b8c9812 Mon Sep 17 00:00:00 2001 From: abmccann-r7 Date: Tue, 10 Oct 2023 13:59:39 +0100 Subject: [PATCH 1/3] Version bump, add empty init.py file and help.md additions --- plugins/basename/.CHECKSUM | 6 +++--- plugins/basename/bin/komand_basename | 2 +- plugins/basename/help.md | 1 + plugins/basename/plugin.spec.yaml | 5 ++++- plugins/basename/setup.py | 2 +- plugins/basename/unit_test/__init__.py | 0 6 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 plugins/basename/unit_test/__init__.py diff --git a/plugins/basename/.CHECKSUM b/plugins/basename/.CHECKSUM index cecb62105e..e1a901c9fd 100644 --- a/plugins/basename/.CHECKSUM +++ b/plugins/basename/.CHECKSUM @@ -1,7 +1,7 @@ { - "spec": "500bd50e08b0609671e34fdccdbef0ac", - "manifest": "0948a7896ab3171c739ebe6e99bdee47", - "setup": "bbe0bf7368ede093db808e5a33737877", + "spec": "ed8c0b9d7bb5018dfbbcd255f8e90c25", + "manifest": "4df75eb1dd0bc7cca85a18b0ab50589b", + "setup": "0107162015af1bea589b9b2b8d0fba23", "schemas": [ { "identifier": "basename/schema.py", diff --git a/plugins/basename/bin/komand_basename b/plugins/basename/bin/komand_basename index a3171dbc47..72b1b846b8 100755 --- a/plugins/basename/bin/komand_basename +++ b/plugins/basename/bin/komand_basename @@ -6,7 +6,7 @@ from sys import argv Name = "Basename" Vendor = "rapid7" -Version = "1.1.1" +Version = "1.1.2" Description = "This plugin is used to get the last item of a file path or URL using Python's basename utility" diff --git a/plugins/basename/help.md b/plugins/basename/help.md index 5104253537..03f6dcd549 100644 --- a/plugins/basename/help.md +++ b/plugins/basename/help.md @@ -73,6 +73,7 @@ If the input doesn't contain a slash `/` in the path the result will be the orig # Version History +* 1.1.2 - Added `__init__.py` file to `unit_test` folder | Refreshed with new Tooling * 1.1.1 - Update SDK to version 5 * 1.1.0 - Add missing `title` in action Basename | Use input and output constants | Add example input and output | Changed `Exception` to `PluginException` | Added "f" strings * 1.0.2 - Update to use the `insightconnect-python-3-38-slim-plugin:4` Docker image | Update plugin.spec.yaml to include `cloud_ready` diff --git a/plugins/basename/plugin.spec.yaml b/plugins/basename/plugin.spec.yaml index 78981a85c6..4ecb2b78c2 100644 --- a/plugins/basename/plugin.spec.yaml +++ b/plugins/basename/plugin.spec.yaml @@ -4,7 +4,7 @@ products: [insightconnect] name: basename title: Basename description: This plugin is used to get the last item of a file path or URL using Python's basename utility -version: 1.1.1 +version: 1.1.2 vendor: rapid7 support: community supported_versions: ["Python 3.38"] @@ -20,6 +20,9 @@ resources: tags: - basename - utilities +key_features: ["Obtain basename of a file path or URL."] +references: ["[Python Basename](https://docs.python.org/2/library/os.path.html#os.path.basename)"] +requirements: [] hub_tags: use_cases: [data_utility] keywords: [basename, utilities, cloud_enabled] diff --git a/plugins/basename/setup.py b/plugins/basename/setup.py index 1471ec43a1..e618abf43b 100755 --- a/plugins/basename/setup.py +++ b/plugins/basename/setup.py @@ -3,7 +3,7 @@ setup(name="basename-rapid7-plugin", - version="1.1.1", + version="1.1.2", description="This plugin is used to get the last item of a file path or URL using Python's basename utility", author="rapid7", author_email="", diff --git a/plugins/basename/unit_test/__init__.py b/plugins/basename/unit_test/__init__.py new file mode 100644 index 0000000000..e69de29bb2 From 9c2084cce8b51dff83d2293a7929ae1320c83841 Mon Sep 17 00:00:00 2001 From: abmccann-r7 Date: Tue, 10 Oct 2023 16:52:00 +0100 Subject: [PATCH 2/3] Fixing helpValidator by adding links and changing capitalisation --- plugins/basename/.CHECKSUM | 2 +- plugins/basename/help.md | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/basename/.CHECKSUM b/plugins/basename/.CHECKSUM index e1a901c9fd..aa44c41ba6 100644 --- a/plugins/basename/.CHECKSUM +++ b/plugins/basename/.CHECKSUM @@ -1,5 +1,5 @@ { - "spec": "ed8c0b9d7bb5018dfbbcd255f8e90c25", + "spec": "3514afb32b3d83141a3e319f9c60cc9a", "manifest": "4df75eb1dd0bc7cca85a18b0ab50589b", "setup": "0107162015af1bea589b9b2b8d0fba23", "schemas": [ diff --git a/plugins/basename/help.md b/plugins/basename/help.md index 03f6dcd549..8fae0ce10a 100644 --- a/plugins/basename/help.md +++ b/plugins/basename/help.md @@ -1,10 +1,10 @@ # Description -This plugin is used to get the last item of a file path or URL using Python's basename utility +This plugin is used to get the last item of a file path or URL using Python's Basename utility # Key Features -* Obtain basename of a file path or URL. +* Obtain Basename of a file path or URL. # Requirements @@ -27,7 +27,7 @@ This plugin is used to get the last item of a file path or URL using Python's ba #### Basename -Get the basename of a path +Get the Basename of a path ##### Input @@ -84,6 +84,8 @@ If the input doesn't contain a slash `/` in the path the result will be the orig # Links +* [Python Basename](https://docs.python.org/3/library/os.path.html) + ## References -* [Python Basename](https://docs.python.org/2/library/os.path.html#os.path.basename) +* [Python Basename](https://docs.python.org/3/library/os.path.html) From 76170a8bb68ac02e0d60114bcb367bd595c07000 Mon Sep 17 00:00:00 2001 From: abmccann-r7 Date: Tue, 10 Oct 2023 16:56:01 +0100 Subject: [PATCH 3/3] fixing RegenerationValidator --- plugins/basename/.CHECKSUM | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/basename/.CHECKSUM b/plugins/basename/.CHECKSUM index aa44c41ba6..e1a901c9fd 100644 --- a/plugins/basename/.CHECKSUM +++ b/plugins/basename/.CHECKSUM @@ -1,5 +1,5 @@ { - "spec": "3514afb32b3d83141a3e319f9c60cc9a", + "spec": "ed8c0b9d7bb5018dfbbcd255f8e90c25", "manifest": "4df75eb1dd0bc7cca85a18b0ab50589b", "setup": "0107162015af1bea589b9b2b8d0fba23", "schemas": [