Skip to content

Commit

Permalink
Adding unit tests + snyk vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
rmurray-r7 committed Nov 20, 2024
1 parent dd4a739 commit 135397b
Show file tree
Hide file tree
Showing 45 changed files with 670 additions and 104 deletions.
12 changes: 6 additions & 6 deletions plugins/redis/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"spec": "26ec465ad678c031feb5630dbbc52c5a",
"manifest": "9bd2e18ba974d692067c68666b0f6b58",
"setup": "7a35f74c2f09fd47854184525fc022c7",
"spec": "e7f620b0384a972f398c48517675bb8b",
"manifest": "bcbee882883b3bbc53d23c28bd6b860d",
"setup": "c8ba0398d017459776ab5d8547c2cec8",
"schemas": [
{
"identifier": "delete/schema.py",
"hash": "386fe4ffdd554d1fb0a496a236ccda92"
},
{
"identifier": "get/schema.py",
"hash": "fa7e9712a440e26c1d376336f48b8339"
"hash": "2418731519a2321c938a28e583e704af"
},
{
"identifier": "hash_get/schema.py",
Expand Down Expand Up @@ -45,11 +45,11 @@
},
{
"identifier": "set/schema.py",
"hash": "68c01da8a0ade66abe0976837036aa99"
"hash": "f66301278673270476bc92beb2e90fe3"
},
{
"identifier": "connection/schema.py",
"hash": "0ac54ef147901f5446083fc96b7f572c"
"hash": "9eaaa3df08bbb42bb41cddb928260b07"
}
]
}
4 changes: 3 additions & 1 deletion plugins/redis/bin/komand_redis
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ from sys import argv
Name = "Redis"
Vendor = "rapid7"
Version = "1.0.2"
Description = "The Redis plugin allows you to add, update, and manage data in a Redis database"
Description = "Redis is an in-memory data structure project implementing a distributed, in-memory key-value database with optional durability. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indexes.\nThis package allows you to interact with the [Redis](https://redis.io/) database API"


def main():
Expand All @@ -23,6 +23,8 @@ def main():
monkey.patch_all()

import insightconnect_plugin_runtime
import sys
sys.path.append(os.path.abspath("../"))
from komand_redis import connection, actions, triggers, tasks

class ICONRedis(insightconnect_plugin_runtime.Plugin):
Expand Down
Loading

0 comments on commit 135397b

Please sign in to comment.