-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
139 lines (128 loc) · 7.07 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[project]
name = 'system_tests'
version = '0.0.1'
[tool.setuptools]
packages = ["tests", "utils", "manifests"]
[tool.black]
line-length = 120
exclude = "(venv/|utils/grpc/weblog_pb2_grpc.py|utils/grpc/weblog_pb2.py|parametric/apps)"
[tool.pytest.ini_options]
addopts = "--json-report --json-report-indent=2 --color=yes --no-header --junitxml=reportJunit.xml -r Xf"
testpaths = [
"tests",
]
# log_cli = True
# log_cli_level = DEBUG
log_level = "DEBUG"
log_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s"
log_date_format = "%H:%M:%S"
log_file_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s"
log_file_date_format = "%H:%M:%S"
junit_family = "xunit2"
junit_logging = "no"
junit_duration_report = "call"
junit_suite_name = "system_tests_suite"
markers =[
"scenario: run a test only for a specified scenario",
"features: declare the feature id"
]
python_files = "test_*.py *utils.py"
# migration tooling: list of folders where feature declarations are mandatory
# once every test class got its feature declaration, we can remove this
allow_no_feature_nodes = [
"tests/apm_tracing_e2e/test_single_span.py",
"tests/apm_tracing_e2e/test_smoke.py",
"tests/otel_tracing_e2e/test_e2e.py",
"tests/parametric/test_span_links.py",
"tests/parametric/test_tracer.py",
"tests/perfs/test_performances.py", # exotic scenario, not really used
"tests/test_the_test/", # Not a real test
]
allow_no_jira_ticket_for_bugs = [
"tests/apm_tracing_e2e/test_otel.py::Test_Otel_Span.test_datadog_otel_span",
"tests/appsec/iast/source/test_body.py::TestRequestBody.test_source_reported",
"tests/appsec/iast/source/test_parameter_value.py::TestParameterValue.test_source_post_reported",
"tests/appsec/test_blocking_addresses.py::Test_Blocking_request_method.test_blocking_before",
"tests/appsec/test_rate_limiter.py::Test_Main.test_main",
"tests/appsec/test_traces.py::Test_AppSecEventSpanTags.test_header_collection",
"tests/appsec/test_user_blocking_full_denylist.py::Test_UserBlocking_FullDenylist.test_blocking_test",
"tests/appsec/waf/test_rules.py::Test_SQLI.test_sqli3",
"tests/auto_inject/test_auto_inject_install.py::TestContainerAutoInjectInstallScript.test_install",
"tests/auto_inject/test_auto_inject_install.py::TestInstallerAutoInjectManual.test_install_uninstall",
"tests/auto_inject/test_auto_inject_install.py::TestSimpleInstallerAutoInjectManual.test_install",
"tests/integrations/test_db_integrations_sql.py::Test_Postgres.test_db_type",
"tests/integrations/test_dbm.py::Test_Dbm.test_trace_payload_service",
"tests/integrations/test_open_telemetry.py::_BaseOtelDbIntegrationTestClass.test_db_operation",
"tests/integrations/test_open_telemetry.py::Test_MsSql.test_db_operation",
"tests/integrations/test_open_telemetry.py::Test_MsSql.test_resource",
"tests/k8s_lib_injection/test_k8s_init_image_validator.py::TestK8sInitImageValidator.test_valid_weblog_instrumented",
"tests/k8s_lib_injection/test_k8s_init_image_validator.py::TestK8sInitImageValidatorUnsupported.test_invalid_weblog_not_instrumented",
"tests/parametric/test_headers_precedence.py::Test_Headers_Precedence.test_headers_precedence_propagationstyle_default_tracecontext_datadog",
"tests/parametric/test_headers_precedence.py::Test_Headers_Precedence.test_headers_precedence_propagationstyle_tracecontext_last_extract_first_true_correctly_propagates_tracestate",
"tests/parametric/test_headers_tracestate_dd.py::Test_Headers_Tracestate_DD.test_headers_tracestate_dd_evicts_32_or_greater_list_members",
"tests/parametric/test_headers_tracestate_dd.py::Test_Headers_Tracestate_DD.test_headers_tracestate_dd_keeps_32_or_fewer_list_members",
"tests/parametric/test_otel_span_methods.py::Test_Otel_Span_Methods.test_otel_span_started_with_link_from_other_spans",
"tests/parametric/test_partial_flushing.py::Test_Partial_Flushing.test_partial_flushing_one_span_default",
"tests/parametric/test_span_sampling.py::Test_Span_Sampling.test_multi_rule_independent_rate_limiters_sss013",
"tests/parametric/test_span_sampling.py::Test_Span_Sampling.test_single_rule_rate_limiter_span_sampling_sss008",
"tests/parametric/test_trace_sampling.py::Test_Trace_Sampling_Tags_Feb2024_Revision.test_globs_different_casing",
"tests/parametric/test_trace_sampling.py::Test_Trace_Sampling_Tags_Feb2024_Revision.test_metric_existence",
"tests/parametric/test_trace_sampling.py::Test_Trace_Sampling_Tags_Feb2024_Revision.test_metric_matching",
"tests/remote_config/test_remote_configuration.py::Test_RemoteConfigurationUpdateSequenceFeatures.test_tracer_update_sequence",
"tests/stats/test_miscs.py::Test_Miscs.test_request_headers",
"tests/test_schemas.py::Test_Agent.test_agent_schema_telemetry_main_payload",
"tests/test_semantic_conventions.py::Test_Meta.test_meta_component_tag",
"tests/test_semantic_conventions.py::Test_Meta.test_meta_http_url",
"tests/test_semantic_conventions.py::Test_Meta.test_meta_language_tag",
"tests/test_semantic_conventions.py::Test_Meta.test_meta_runtime_id_tag",
"tests/test_semantic_conventions.py::Test_Meta.test_meta_span_kind",
"tests/test_standard_tags.py::Test_StandardTagsClientIp.test_client_ip",
"tests/test_standard_tags.py::Test_StandardTagsClientIp.test_client_ip_vendor",
"tests/test_standard_tags.py::Test_StandardTagsMethod.test_method_trace",
"tests/test_telemetry.py::Test_Telemetry.test_proxy_forwarding",
"tests/test_telemetry.py::Test_MessageBatch.test_message_batch_enabled",
"tests/test_telemetry.py::Test_Telemetry.test_app_dependencies_loaded",
"tests/test_telemetry.py::Test_Telemetry.test_app_heartbeats_delays",
"tests/test_telemetry.py::Test_Telemetry.test_app_started_is_first_message",
"tests/test_telemetry.py::Test_Telemetry.test_status_ok",
"tests/test_telemetry.py::Test_Telemetry.test_telemetry_proxy_enrichment",
"tests/test_telemetry.py::Test_TelemetryV2.test_telemetry_v2_required_headers",
"tests/test_the_test/",
"tests/test_profiling.py::Test_Profile",
"tests/parametric/test_config_consistency.py::Test_Config_TraceLogDirectory",
]
[tool.pylint]
init-hook='import sys; sys.path.append(".")'
max-line-length = 120
disable = [
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"fixme",
"raise-missing-from",
"invalid-name",
"import-outside-toplevel",
"logging-fstring-interpolation",
"broad-except",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches,",
"bare-except",
"too-many-instance-attributes",
"too-many-locals",
"too-many-public-methods",
"too-many-nested-blocks",
"too-many-return-statements",
"duplicate-code",
"abstract-method",
"inconsistent-return-statements", # because lot of validator function returns nothing
"unused-argument", # pain, as there are some function that MUST have a prototype. TODO...
"attribute-defined-outside-init",
"no-name-in-module", # full of bug
"import-error", # full of bug
]
ignore-paths = [
]
generated-members = [
"(ok_summary|err_summary)\\.mapping",
]