newrelic-lambda-cli 0.9.3__tar.gz → 0.9.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/PKG-INFO +5 -4
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/README.md +4 -2
- newrelic_lambda_cli-0.9.5/newrelic_lambda_cli/cliutils.py +37 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/subscriptions.py +2 -2
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/utils.py +8 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/PKG-INFO +5 -4
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/requires.txt +0 -1
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/setup.py +1 -3
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/tests/test_functions.py +3 -3
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/tests/test_integrations.py +7 -13
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/tests/test_layers.py +4 -4
- newrelic_lambda_cli-0.9.3/newrelic_lambda_cli/cliutils.py +0 -38
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/CODE_OF_CONDUCT.md +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/CONTRIBUTING.md +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/LICENSE +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/MANIFEST.in +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/THIRD_PARTY_NOTICES.md +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/__init__.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/api.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/__init__.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/decorators.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/functions.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/integrations.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/layers.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/otel_ingestions.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/subscriptions.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/functions.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/integrations.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/layers.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/otel_ingestions.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/permissions.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/templates/import-template.yaml +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/templates/license-key-secret.yaml +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/templates/nr-lambda-integration-role.yaml +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/types.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/SOURCES.txt +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/dependency_links.txt +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/entry_points.txt +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/not-zip-safe +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/top_level.txt +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/pyproject.toml +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/setup.cfg +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/tests/test_api.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/tests/test_new_relic_gql.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/tests/test_permissions.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/tests/test_subscriptions.py +0 -0
- {newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: newrelic-lambda-cli
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
4
4
|
Summary: A CLI to install the New Relic AWS Lambda integration and layers.
|
|
5
5
|
Home-page: https://github.com/newrelic/newrelic-lambda-cli
|
|
6
6
|
Author: New Relic
|
|
@@ -11,14 +11,13 @@ License-File: LICENSE
|
|
|
11
11
|
Requires-Dist: boto3<5
|
|
12
12
|
Requires-Dist: click>=7.1.2
|
|
13
13
|
Requires-Dist: colorama
|
|
14
|
-
Requires-Dist: emoji<3,>=2
|
|
15
14
|
Requires-Dist: gql<3,>=2
|
|
16
15
|
Requires-Dist: requests<3
|
|
17
16
|
Requires-Dist: tabulate
|
|
18
17
|
|
|
19
18
|
[](https://opensource.newrelic.com/oss-category/#community-plus)
|
|
20
19
|
|
|
21
|
-
# newrelic-lambda-cli [](https://github.com/newrelic/newrelic-lambda-cli/actions/workflows/build-test-release.yml) [](https://codecov.io/gh/newrelic/newrelic-lambda-cli)
|
|
22
21
|
|
|
23
22
|
A CLI to install the New Relic AWS Lambda integration and layers.
|
|
24
23
|
|
|
@@ -64,6 +63,7 @@ A CLI to install the New Relic AWS Lambda integration and layers.
|
|
|
64
63
|
* nodejs16.x
|
|
65
64
|
* nodejs18.x
|
|
66
65
|
* nodejs20.x
|
|
66
|
+
* nodejs22.x
|
|
67
67
|
* provided
|
|
68
68
|
* provided.al2
|
|
69
69
|
* provided.al2023
|
|
@@ -73,6 +73,7 @@ A CLI to install the New Relic AWS Lambda integration and layers.
|
|
|
73
73
|
* python3.10
|
|
74
74
|
* python3.11
|
|
75
75
|
* python3.12
|
|
76
|
+
* python3.13
|
|
76
77
|
* ruby3.2
|
|
77
78
|
* ruby3.3
|
|
78
79
|
|
|
@@ -377,7 +378,7 @@ Using these together will auto format your git commits.
|
|
|
377
378
|
## Running Tests
|
|
378
379
|
|
|
379
380
|
```bash
|
|
380
|
-
|
|
381
|
+
pytest tests
|
|
381
382
|
```
|
|
382
383
|
|
|
383
384
|
## Troubleshooting
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[](https://opensource.newrelic.com/oss-category/#community-plus)
|
|
2
2
|
|
|
3
|
-
# newrelic-lambda-cli [](https://github.com/newrelic/newrelic-lambda-cli/actions/workflows/build-test-release.yml) [](https://codecov.io/gh/newrelic/newrelic-lambda-cli)
|
|
4
4
|
|
|
5
5
|
A CLI to install the New Relic AWS Lambda integration and layers.
|
|
6
6
|
|
|
@@ -46,6 +46,7 @@ A CLI to install the New Relic AWS Lambda integration and layers.
|
|
|
46
46
|
* nodejs16.x
|
|
47
47
|
* nodejs18.x
|
|
48
48
|
* nodejs20.x
|
|
49
|
+
* nodejs22.x
|
|
49
50
|
* provided
|
|
50
51
|
* provided.al2
|
|
51
52
|
* provided.al2023
|
|
@@ -55,6 +56,7 @@ A CLI to install the New Relic AWS Lambda integration and layers.
|
|
|
55
56
|
* python3.10
|
|
56
57
|
* python3.11
|
|
57
58
|
* python3.12
|
|
59
|
+
* python3.13
|
|
58
60
|
* ruby3.2
|
|
59
61
|
* ruby3.3
|
|
60
62
|
|
|
@@ -359,7 +361,7 @@ Using these together will auto format your git commits.
|
|
|
359
361
|
## Running Tests
|
|
360
362
|
|
|
361
363
|
```bash
|
|
362
|
-
|
|
364
|
+
pytest tests
|
|
363
365
|
```
|
|
364
366
|
|
|
365
367
|
## Troubleshooting
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
import click
|
|
4
|
+
|
|
5
|
+
from click.exceptions import Exit
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def done(message):
|
|
9
|
+
"""Prints a done message to the terminal"""
|
|
10
|
+
click.echo(f"✔️ {message} ✔️")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def failure(message, exit=False):
|
|
14
|
+
"""Prints a failure message to the terminal"""
|
|
15
|
+
click.secho(
|
|
16
|
+
f"✘ {message}",
|
|
17
|
+
fg="red",
|
|
18
|
+
err=True,
|
|
19
|
+
)
|
|
20
|
+
if exit:
|
|
21
|
+
raise Exit(1)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def success(message):
|
|
25
|
+
"""Prints a success message to the terminal"""
|
|
26
|
+
click.secho(
|
|
27
|
+
f"✔️ {message}",
|
|
28
|
+
fg="green",
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def warning(message):
|
|
33
|
+
"""Prints a warning message to the terminal"""
|
|
34
|
+
click.secho(
|
|
35
|
+
f"⚠️ {message}",
|
|
36
|
+
fg="blue",
|
|
37
|
+
)
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/subscriptions.py
RENAMED
|
@@ -100,8 +100,8 @@ def create_log_subscription(input, function_name):
|
|
|
100
100
|
destination = get_newrelic_log_ingestion_function(input.session, input.stackname)
|
|
101
101
|
if destination is None:
|
|
102
102
|
failure(
|
|
103
|
-
"Could not find newrelic-log-ingestion function. Is the New Relic AWS "
|
|
104
|
-
"integration installed?"
|
|
103
|
+
"Could not find newrelic-log-ingestion function in stack: %s. Is the New Relic AWS "
|
|
104
|
+
"integration installed?" % input.stackname
|
|
105
105
|
)
|
|
106
106
|
return False
|
|
107
107
|
destination_arn = destination["Configuration"]["FunctionArn"]
|
|
@@ -40,6 +40,10 @@ RUNTIME_CONFIG = {
|
|
|
40
40
|
"Handler": "newrelic-lambda-wrapper.handler",
|
|
41
41
|
"LambdaExtension": True,
|
|
42
42
|
},
|
|
43
|
+
"nodejs22.x": {
|
|
44
|
+
"Handler": "newrelic-lambda-wrapper.handler",
|
|
45
|
+
"LambdaExtension": True,
|
|
46
|
+
},
|
|
43
47
|
"provided": {"LambdaExtension": True},
|
|
44
48
|
"provided.al2": {"LambdaExtension": True},
|
|
45
49
|
"provided.al2023": {"LambdaExtension": True},
|
|
@@ -67,6 +71,10 @@ RUNTIME_CONFIG = {
|
|
|
67
71
|
"Handler": "newrelic_lambda_wrapper.handler",
|
|
68
72
|
"LambdaExtension": True,
|
|
69
73
|
},
|
|
74
|
+
"python3.13": {
|
|
75
|
+
"Handler": "newrelic_lambda_wrapper.handler",
|
|
76
|
+
"LambdaExtension": True,
|
|
77
|
+
},
|
|
70
78
|
"ruby3.2": {
|
|
71
79
|
"Handler": "newrelic_lambda_wrapper.handler",
|
|
72
80
|
"LambdaExtension": True,
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: newrelic-lambda-cli
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
4
4
|
Summary: A CLI to install the New Relic AWS Lambda integration and layers.
|
|
5
5
|
Home-page: https://github.com/newrelic/newrelic-lambda-cli
|
|
6
6
|
Author: New Relic
|
|
@@ -11,14 +11,13 @@ License-File: LICENSE
|
|
|
11
11
|
Requires-Dist: boto3<5
|
|
12
12
|
Requires-Dist: click>=7.1.2
|
|
13
13
|
Requires-Dist: colorama
|
|
14
|
-
Requires-Dist: emoji<3,>=2
|
|
15
14
|
Requires-Dist: gql<3,>=2
|
|
16
15
|
Requires-Dist: requests<3
|
|
17
16
|
Requires-Dist: tabulate
|
|
18
17
|
|
|
19
18
|
[](https://opensource.newrelic.com/oss-category/#community-plus)
|
|
20
19
|
|
|
21
|
-
# newrelic-lambda-cli [](https://github.com/newrelic/newrelic-lambda-cli/actions/workflows/build-test-release.yml) [](https://codecov.io/gh/newrelic/newrelic-lambda-cli)
|
|
22
21
|
|
|
23
22
|
A CLI to install the New Relic AWS Lambda integration and layers.
|
|
24
23
|
|
|
@@ -64,6 +63,7 @@ A CLI to install the New Relic AWS Lambda integration and layers.
|
|
|
64
63
|
* nodejs16.x
|
|
65
64
|
* nodejs18.x
|
|
66
65
|
* nodejs20.x
|
|
66
|
+
* nodejs22.x
|
|
67
67
|
* provided
|
|
68
68
|
* provided.al2
|
|
69
69
|
* provided.al2023
|
|
@@ -73,6 +73,7 @@ A CLI to install the New Relic AWS Lambda integration and layers.
|
|
|
73
73
|
* python3.10
|
|
74
74
|
* python3.11
|
|
75
75
|
* python3.12
|
|
76
|
+
* python3.13
|
|
76
77
|
* ruby3.2
|
|
77
78
|
* ruby3.3
|
|
78
79
|
|
|
@@ -377,7 +378,7 @@ Using these together will auto format your git commits.
|
|
|
377
378
|
## Running Tests
|
|
378
379
|
|
|
379
380
|
```bash
|
|
380
|
-
|
|
381
|
+
pytest tests
|
|
381
382
|
```
|
|
382
383
|
|
|
383
384
|
## Troubleshooting
|
|
@@ -6,7 +6,7 @@ README = open(os.path.join(os.path.dirname(__file__), "README.md"), "r").read()
|
|
|
6
6
|
|
|
7
7
|
setup(
|
|
8
8
|
name="newrelic-lambda-cli",
|
|
9
|
-
version="0.9.
|
|
9
|
+
version="0.9.5",
|
|
10
10
|
python_requires=">=3.3",
|
|
11
11
|
description="A CLI to install the New Relic AWS Lambda integration and layers.",
|
|
12
12
|
long_description=README,
|
|
@@ -19,13 +19,11 @@ setup(
|
|
|
19
19
|
"boto3<5",
|
|
20
20
|
"click>=7.1.2",
|
|
21
21
|
"colorama",
|
|
22
|
-
"emoji>=2,<3",
|
|
23
22
|
"gql>=2,<3",
|
|
24
23
|
"requests<3",
|
|
25
24
|
"tabulate",
|
|
26
25
|
],
|
|
27
26
|
setup_requires=["pytest-runner"],
|
|
28
|
-
tests_require=["moto", "pytest", "requests"],
|
|
29
27
|
entry_points={
|
|
30
28
|
"console_scripts": ["newrelic-lambda = newrelic_lambda_cli.cli:main"]
|
|
31
29
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import boto3
|
|
2
2
|
from unittest import mock
|
|
3
|
-
from moto import
|
|
3
|
+
from moto import mock_aws
|
|
4
4
|
from unittest.mock import MagicMock
|
|
5
5
|
|
|
6
6
|
from newrelic_lambda_cli.functions import get_aliased_functions, list_functions
|
|
@@ -8,7 +8,7 @@ from newrelic_lambda_cli.functions import get_aliased_functions, list_functions
|
|
|
8
8
|
from .conftest import layer_install
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
@
|
|
11
|
+
@mock_aws
|
|
12
12
|
@mock.patch("newrelic_lambda_cli.functions.list_functions", autospec=True)
|
|
13
13
|
def test_get_aliased_functions(mock_list_functions, aws_credentials):
|
|
14
14
|
"""
|
|
@@ -60,7 +60,7 @@ def test_get_aliased_functions(mock_list_functions, aws_credentials):
|
|
|
60
60
|
]
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
@
|
|
63
|
+
@mock_aws
|
|
64
64
|
def test_list_functions(aws_credentials):
|
|
65
65
|
session = boto3.Session(region_name="us-east-1")
|
|
66
66
|
assert list(list_functions(session)) == []
|
|
@@ -2,12 +2,7 @@ from __future__ import absolute_import
|
|
|
2
2
|
|
|
3
3
|
import boto3
|
|
4
4
|
import botocore
|
|
5
|
-
from moto import
|
|
6
|
-
mock_cloudformation,
|
|
7
|
-
mock_iam,
|
|
8
|
-
mock_lambda,
|
|
9
|
-
mock_sts,
|
|
10
|
-
)
|
|
5
|
+
from moto import mock_aws
|
|
11
6
|
import pytest
|
|
12
7
|
from unittest.mock import call, patch, MagicMock, ANY
|
|
13
8
|
|
|
@@ -190,7 +185,7 @@ def test_remove_log_ingestion_function_not_present(success_mock):
|
|
|
190
185
|
success_mock.assert_not_called()
|
|
191
186
|
|
|
192
187
|
|
|
193
|
-
@
|
|
188
|
+
@mock_aws
|
|
194
189
|
def test__get_cf_stack_status(aws_credentials):
|
|
195
190
|
session = boto3.Session(region_name="us-east-1")
|
|
196
191
|
assert _get_cf_stack_status(session, "foo-bar-baz") is None
|
|
@@ -332,7 +327,7 @@ def test__get_stack_output_value():
|
|
|
332
327
|
)
|
|
333
328
|
|
|
334
329
|
|
|
335
|
-
@
|
|
330
|
+
@mock_aws
|
|
336
331
|
def test__create_role(aws_credentials):
|
|
337
332
|
session = boto3.Session(region_name="us-east-1")
|
|
338
333
|
assert (
|
|
@@ -340,13 +335,13 @@ def test__create_role(aws_credentials):
|
|
|
340
335
|
)
|
|
341
336
|
|
|
342
337
|
|
|
343
|
-
@
|
|
338
|
+
@mock_aws
|
|
344
339
|
def test__get_role(aws_credentials):
|
|
345
340
|
session = boto3.Session(region_name="us-east-1")
|
|
346
341
|
assert _get_role(session, "arn:aws:iam::1234567890:role/foobar") is None
|
|
347
342
|
|
|
348
343
|
|
|
349
|
-
@
|
|
344
|
+
@mock_aws
|
|
350
345
|
def test__import_log_ingestion_function(aws_credentials):
|
|
351
346
|
session = boto3.Session(region_name="us-east-1")
|
|
352
347
|
_import_log_ingestion_function(
|
|
@@ -361,14 +356,13 @@ def test__import_log_ingestion_function(aws_credentials):
|
|
|
361
356
|
)
|
|
362
357
|
|
|
363
358
|
|
|
364
|
-
@
|
|
359
|
+
@mock_aws
|
|
365
360
|
def test_get_aws_account_id(aws_credentials):
|
|
366
361
|
session = boto3.Session(region_name="us-east-1")
|
|
367
362
|
assert get_aws_account_id(session) == "123456789012"
|
|
368
363
|
|
|
369
364
|
|
|
370
|
-
@
|
|
371
|
-
@mock_lambda
|
|
365
|
+
@mock_aws
|
|
372
366
|
@patch("newrelic_lambda_cli.integrations._get_sar_template_url", autospec=True)
|
|
373
367
|
@patch("newrelic_lambda_cli.integrations._create_log_ingestion_function", autospec=True)
|
|
374
368
|
def test_update_log_ingestion_function(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import boto3
|
|
2
2
|
from click import UsageError
|
|
3
|
-
from moto import
|
|
3
|
+
from moto import mock_aws
|
|
4
4
|
import pytest
|
|
5
5
|
|
|
6
6
|
from unittest.mock import ANY, call, MagicMock, patch
|
|
@@ -20,7 +20,7 @@ from newrelic_lambda_cli.utils import get_arn_prefix
|
|
|
20
20
|
from .conftest import layer_install, layer_uninstall
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
@
|
|
23
|
+
@mock_aws
|
|
24
24
|
def test_add_new_relic(aws_credentials, mock_function_config):
|
|
25
25
|
session = boto3.Session(region_name="us-east-1")
|
|
26
26
|
|
|
@@ -235,7 +235,7 @@ def test_add_new_relic(aws_credentials, mock_function_config):
|
|
|
235
235
|
assert update_kwargs["Layers"][0] != get_arn_prefix("us-east-1")
|
|
236
236
|
|
|
237
237
|
|
|
238
|
-
@
|
|
238
|
+
@mock_aws
|
|
239
239
|
def test_add_new_relic_dotnet(aws_credentials, mock_function_config):
|
|
240
240
|
session = boto3.Session(region_name="us-east-1")
|
|
241
241
|
|
|
@@ -298,7 +298,7 @@ def test_add_new_relic_dotnet(aws_credentials, mock_function_config):
|
|
|
298
298
|
)
|
|
299
299
|
|
|
300
300
|
|
|
301
|
-
@
|
|
301
|
+
@mock_aws
|
|
302
302
|
def test_remove_new_relic(aws_credentials, mock_function_config):
|
|
303
303
|
session = boto3.Session(region_name="us-east-1")
|
|
304
304
|
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
|
|
3
|
-
import click
|
|
4
|
-
import emoji
|
|
5
|
-
|
|
6
|
-
from click.exceptions import Exit
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
def done(message):
|
|
10
|
-
"""Prints a done message to the terminal"""
|
|
11
|
-
click.echo(emoji.emojize(":sparkles: %s :sparkles:" % message, language="alias"))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
def failure(message, exit=False):
|
|
15
|
-
"""Prints a failure message to the terminal"""
|
|
16
|
-
click.echo(
|
|
17
|
-
emoji.emojize(":heavy_multiplication_x: %s" % message, language="alias"),
|
|
18
|
-
color="red",
|
|
19
|
-
err=True,
|
|
20
|
-
)
|
|
21
|
-
if exit:
|
|
22
|
-
raise Exit(1)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def success(message):
|
|
26
|
-
"""Prints a success message to the terminal"""
|
|
27
|
-
click.echo(
|
|
28
|
-
emoji.emojize(":heavy_check_mark: %s" % message, language="alias"),
|
|
29
|
-
color="green",
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def warning(message):
|
|
34
|
-
"""Prints a warningmessage to the terminal"""
|
|
35
|
-
click.echo(
|
|
36
|
-
emoji.emojize(":heavy_exclamation_mark: %s" % message, language="alias"),
|
|
37
|
-
color="blue",
|
|
38
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/decorators.py
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/functions.py
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/integrations.py
RENAMED
|
File without changes
|
|
File without changes
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/otel_ingestions.py
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/cli/subscriptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli/otel_ingestions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{newrelic_lambda_cli-0.9.3 → newrelic_lambda_cli-0.9.5}/newrelic_lambda_cli.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|