Skip to content

Commit be0e59c

Browse files
committed
tests(aws_lambda): adapt tests to OTel usage.
Signed-off-by: Paulo Vital <[email protected]>
1 parent 16f1036 commit be0e59c

19 files changed

+904
-767
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,6 @@ exclude_also = [
8585
"pragma: no cover",
8686
"if TYPE_CHECKING:",
8787
"except ImportError:",
88+
"except Exception:",
89+
"except Exception as exc:",
8890
]

pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ log_cli_level = WARN
44
log_cli_format = %(asctime)s %(levelname)s %(message)s
55
log_cli_date_format = %H:%M:%S
66
pythonpath = src
7+
testpaths =
8+
tests
9+
tests_aws

tests/conftest.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
if importlib.util.find_spec("celery"):
1414
pytest_plugins = ("celery.contrib.pytest",)
1515

16+
1617
from instana.agent.host import HostAgent
1718
from instana.collector.base import BaseCollector
1819
from instana.recorder import StanRecorder
@@ -23,14 +24,19 @@
2324

2425
# Ignoring tests during OpenTelemetry migration.
2526
collect_ignore_glob = [
26-
"*platforms*",
2727
"*w3c_trace_context*",
2828
]
2929

3030
# TODO: remove the following entries as the migration of the instrumentation
3131
# codes are finalised.
3232
collect_ignore_glob.append("*frameworks/test_gevent*")
3333

34+
collect_ignore_glob.append("*platforms/aws/eks/test_eks*")
35+
collect_ignore_glob.append("*platforms/aws/fargate/test_fargate*")
36+
collect_ignore_glob.append("*platforms/test_gcr*")
37+
collect_ignore_glob.append("*platforms/test_google*")
38+
collect_ignore_glob.append("*platforms/test_host*")
39+
3440
# # Cassandra and gevent tests are run in dedicated jobs on CircleCI and will
3541
# # be run explicitly. (So always exclude them here)
3642
if not os.environ.get("CASSANDRA_TEST"):

0 commit comments

Comments
 (0)