Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.

Commit e7044f3

Browse files
committed
changes for release 2.0.0
1 parent 7f992e5 commit e7044f3

File tree

144 files changed

+37925
-47462
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+37925
-47462
lines changed

.viperlightignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Empty .viperlightignore created - none existed

.viperlightrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"failOn":"low","all":true}

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.0.0] - 2022-05-13
9+
10+
### Added
11+
12+
- The capability to ingest Subreddit comments using the Reddit API
13+
14+
### Updated
15+
16+
- CDK version 1.152.0
17+
- AWS SDK version 2.1127.0
18+
- Amazon QuickSight dashboard to support NLP analysis on Subreddit comments
19+
820
## [1.7.1] - 2022-03-29
921

1022
### Updated

NOTICE.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ pytest-cov - MIT license
3838
pytest - MIT license
3939
requests - Apache-2.0
4040
sinon - BSD license
41-
tenacity under the Apache License Version 2.0
41+
snoowrap - MIT license
42+
tenacity - Apache-2.0
4243
ts-jest - MIT license
4344
ts-node - MIT license
4445
twitter-lite - MIT License

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ The solution is deployed using a CloudFormation template with a lambda backed cu
8383
│   ├── ingestion-consumer [lambda function that consumes messages from Amazon Kinesis Data Streams]
8484
│   ├── ingestion-custom [lambda function that reads files from Amazon S3 bucket and pushes data to Amazon Kinesis Data Streams]
8585
│   ├── ingestion-producer [lambda function that makes Twitter API call and pushes data to Amazon Kinesis Data Stream]
86+
│   ├── ingestion-reddit [lambda function that makes Reddit API call to retrieve comments from subreddits of interest and pushes data to Amazon Kinesis Data Stream]
8687
│   ├── ingestion-youtube [lambda function that ingests comments from YouTube videos and pushes data to Amazon Kinesis Data Streams]
8788
│   ├── integration [lambda function that publishes inference outputs to Amazon Events Bridge]
8889
│ ├── layers [lambda layer function library for Node and Python layers]

source/images/architecture.png

70 KB
Loading
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
moto==3.0.7
2-
pytest==6.2.5
1+
moto==3.1.7
2+
pytest==7.1.2
33
pytest-cov==3.0.0
44
botocore
55
mock==4.0.3
6-
responses==0.16.0
6+
responses==0.20.0

source/lambda/capture_news_feed/test/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import boto3
1818
import pytest
1919
from botocore.stub import Stubber
20-
from moto.dynamodb2 import mock_dynamodb2
20+
from moto.dynamodb import mock_dynamodb
2121
from shared_util import custom_boto_config
2222

2323

source/lambda/capture_news_feed/test/test_config_ddb_helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
import boto3
1919
from boto3.dynamodb.conditions import Attr, Key
2020
from botocore.exceptions import EndpointConnectionError
21-
from moto import mock_dynamodb2
21+
from moto import mock_dynamodb
2222
from shared_util import custom_boto_config, service_helper
2323
from util import ddb_helper
2424

2525

26-
@mock_dynamodb2
26+
@mock_dynamodb
2727
def ddb_setup(table_name):
2828
# ddb = boto3.resource("dynamodb", config=custom_boto_config.init())
2929
ddb = service_helper.get_service_resource("dynamodb")
@@ -39,7 +39,7 @@ def ddb_setup(table_name):
3939
return ddb
4040

4141

42-
@mock_dynamodb2
42+
@mock_dynamodb
4343
class TestConfigDDBHelper(unittest.TestCase):
4444
def setUp(self):
4545
self.table_name = os.environ["DDB_CONFIG_TABLE_NAME"]

source/lambda/capture_news_feed/test/test_lambda.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import mock
2424
import pytest
2525
from botocore import stub
26-
from moto import mock_dynamodb2, mock_kinesis, mock_sts
26+
from moto import mock_dynamodb, mock_kinesis, mock_sts
2727
from shared_util import custom_boto_config
2828

2929

@@ -186,7 +186,7 @@ def lambda_event_bus_event():
186186

187187

188188
@mock_sts
189-
@mock_dynamodb2
189+
@mock_dynamodb
190190
def test_invoke_lambda_for_ddb_config(get_event_bus_stubber):
191191
lambda_event = create_cw_schedule_event()
192192
create_ddb_table_for_US_en()
@@ -215,7 +215,7 @@ def test_invoke_lambda_for_ddb_config(get_event_bus_stubber):
215215

216216

217217
@mock_sts
218-
@mock_dynamodb2
218+
@mock_dynamodb
219219
@mock.patch.dict(os.environ, {"CONFIG_PARAM": '{"country":"US", "language":"en"}'})
220220
@mock.patch.dict(os.environ, {"SEARCH_QUERY": "fakequery"})
221221
def test_invoke_lambda_for_json_str(get_event_bus_stubber):
@@ -245,7 +245,7 @@ def test_invoke_lambda_for_json_str(get_event_bus_stubber):
245245

246246

247247
@mock_sts
248-
@mock_dynamodb2
248+
@mock_dynamodb
249249
def test_invoke_lambda_for_ddb_config_with_failed_count(get_event_bus_stubber):
250250
lambda_event = create_cw_schedule_event()
251251
create_ddb_table_for_US_en()
@@ -274,7 +274,7 @@ def test_invoke_lambda_for_ddb_config_with_failed_count(get_event_bus_stubber):
274274

275275

276276
@mock_sts
277-
@mock_dynamodb2
277+
@mock_dynamodb
278278
@mock_kinesis
279279
def test_invoke_process_config_handler():
280280
lambda_event = create_event_bus_consumer_event()

0 commit comments

Comments
 (0)