• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elastic / cloudbeat / 44566227836
59%
main: 76%

Build:
Build:
LAST BUILD BRANCH: bump-to-8.19.27
DEFAULT BRANCH: main
Ran 19 Nov 2026 04:46PM UTC
Jobs 1
Files 235
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Nov 2026 04:26PM UTC coverage: 58.973% (-16.8%) from 75.752%
44566227836

push

github

web-flow
[9.4](backport #10107) test: decouple the test suite from fleet_api (phase 6.2) (#10128)

### Summary of your changes

Phase 6.2 of the cloudbeat cleanup: stop the Python test suite
(`commonlib`, `integration` tests) from depending on `fleet_api` and
`integrations_setup`.

**Stacked on #10106 (phase 6.1).** This PR targets
`chore/remove-test-environments-6-1`; it will be retargeted to `main`
once 6.1 merges.

- Add `tests/commonlib/kibana_api.py`, a small self-contained `requests`
client with `get_agents` and `get_telemetry`. Shared helper: `kbn-xsrf`
header, basic auth, 60s timeout, up to 3 attempts with a 5s backoff,
retrying only 429, 5xx and transport errors (401/403/404 fail
immediately).
- `get_agents` reads `items`, falls back to the older `list` key, and
returns an empty list if the API keeps failing. `get_telemetry` raises
`RuntimeError` after the retries.
- `tests/commonlib/agents_map.py` now uses
`commonlib.kibana_api.get_agents`. The unused `stack_version` field is
dropped, since the new client does not do a stack-version check.
- `tests/integration/tests/test_sanity_telemetry.py` now uses
`commonlib.kibana_api.get_telemetry` and builds its config from
`configuration.elasticsearch` (same `ES_USER`, `ES_PASSWORD` and
`KIBANA_URL` variables; note the default user is `kube_system` there
instead of `NA`).

Differences from `fleet_api`: 3 attempts instead of 8, and
`get_telemetry` raises `RuntimeError` instead of `APICallException`.

`fleet_api` and `integrations_setup` stay for the template tests.
`integrations_setup/agents_enrolled.py` still uses
`fleet_api.get_agents` and cannot import `commonlib` because it is not
on its path; phase 6.3 replaces it.

Verified with mocked `requests` calls (both response shapes, 429/5xx
retry, fail-fast on 401/404, empty-list fallback, telemetry request
shape); not run against a real Kibana. Nothing in the repo runs
`test_sanity_telemetry.py` any more now that 6.1 removed the flows that
did.

Docs impact: non... (continued)

7571 of 12838 relevant lines covered (58.97%)

12.29 hits per line

Coverage Regressions

Lines Coverage ∆ File
144
0.0
-78.26% internal/launcher/launcher.go
97
0.0
-86.61% internal/uniqueness/leaderelection.go
95
0.0
-94.06% internal/resources/fetching/manager/manager.go
94
0.0
-82.46% internal/resources/providers/awslib/config.go
90
18.44
-63.83% internal/vulnerability/scanner.go
79
13.39
-62.2% internal/infra/observability/otel.go
78
45.56
-43.33% internal/flavors/benchmark/aws_org.go
74
0.0
-86.05% internal/vulnerability/worker.go
59
0.0
-96.72% internal/vulnerability/fetcher.go
57
8.54
-69.51% internal/evaluator/opa.go
56
0.0
-78.87% internal/vulnerability/verifier.go
54
0.0
-79.41% internal/resources/fetching/fetchers/k8s/kube_fetcher.go
52
0.0
-91.23% internal/vulnerability/runner.go
48
17.74
-77.42% internal/resources/providers/awslib/cached_region_selector.go
47
0.0
-77.05% internal/flavors/assetinventory/strategy.go
47
7.79
-61.04% internal/flavors/benchmark/eks.go
45
0.0
-100.0% internal/resources/fetching/preset/aws_preset.go
44
5.17
-75.86% internal/flavors/benchmark/aws.go
43
0.0
-75.44% internal/flavors/benchmark/k8s_helper.go
41
0.0
-100.0% internal/flavors/publisher.go
34
0.0
-85.0% internal/flavors/benchmark/builder/builder.go
31
0.0
-100.0% internal/resources/fetching/preset/eks_preset.go
31
0.0
-86.11% internal/vulnerability/replicator.go
28
0.0
-63.64% internal/evaluator/debug_logger/plugin.go
27
65.59
-29.03% internal/inventory/inventory.go
23
0.0
-100.0% internal/flavors/repeater.go
23
0.0
-28.4% internal/resources/fetching/fetchers/k8s/kube_provider.go
22
0.0
-84.62% internal/resources/providers/azurelib/provider.go
21
7.89
-55.26% internal/flavors/benchmark/k8s.go
20
0.0
-100.0% internal/resources/providers/awslib/ec2/ec2.go
20
0.0
-100.0% internal/resources/providers/awslib/role_chaining.go
17
8.47
-28.81% internal/flavors/assetinventory/strategy_aws.go
16
70.0
-22.86% internal/resources/fetching/preset/aws_org_preset.go
16
67.35
-28.57% internal/resources/utils/testhelper/helper.go
15
0.0
-78.95% internal/flavors/benchmark/builder/k8s.go
14
0.0
-100.0% internal/resources/fetching/preset/k8s_preset.go
14
69.68
-6.33% internal/resources/providers/awslib/s3/provider.go
13
64.58
-13.54% internal/resources/providers/azurelib/inventory/susbcriptions_provider.go
13
79.15
-3.58% internal/resources/providers/gcplib/inventory/provider.go
13
29.63
-48.15% version/settings.go
12
0.0
-100.0% internal/flavors/benchmark/builder/options.go
12
65.71
-17.14% internal/resources/fetching/fetchers/aws/elb_fetcher.go
12
83.72
-4.65% internal/vulnerability/events_creator.go
11
65.28
-15.28% internal/resources/fetching/fetchers/aws/monitoring_fetcher.go
11
0.0
-100.0% internal/resources/providers/awslib/elb/elb.go
11
0.0
-100.0% internal/resources/providers/awslib/iam/iam.go
10
0.0
-100.0% internal/flavors/benchmark/builder/benchmark.go
10
83.16
-10.53% internal/resources/fetching/fetchers/aws/iam_fetcher.go
10
85.21
-7.04% internal/resources/fetching/fetchers/k8s/file_system_fetcher.go
10
71.17
-6.13% internal/resources/fetching/fetchers/k8s/process_fetcher.go
10
0.0
-45.45% internal/resources/providers/awslib/configservice/configservice.go
10
0.0
-19.61% internal/resources/providers/awslib/identity_provider.go
10
0.0
-100.0% internal/resources/providers/awslib/kms/kms.go
10
79.1
-14.93% internal/resources/providers/awslib/rds/provider.go
10
0.0
-100.0% internal/resources/providers/awslib/web_identity.go
10
0.0
-9.26% internal/resources/providers/msgraph/provider.go
9
75.0
-18.75% internal/infra/clog/clog.go
9
71.62
-12.16% internal/resources/fetching/fetchers/aws/ecr_fetcher.go
9
68.97
-15.52% internal/resources/fetching/fetchers/aws/kms_fetcher.go
9
83.56
-12.33% internal/resources/fetching/fetchers/aws/network_fetcher.go
9
66.67
-20.0% internal/resources/fetching/fetchers/aws/rds_fetcher.go
9
66.99
-8.74% internal/resources/providers/aws_cis/monitoring/monitoring.go
9
0.0
-100.0% internal/resources/providers/awslib/cloudtrail/cloudtrail.go
9
0.0
-90.0% internal/resources/providers/awslib/ec2_metadata_provider.go
9
68.97
-31.03% internal/resources/providers/awslib/securityhub/provider.go
9
0.0
-100.0% internal/resources/providers/awslib/sns/sns.go
9
89.25
-4.84% internal/resources/providers/azurelib/inventory/app_service_provider.go
9
75.74
-6.62% internal/resources/providers/azurelib/inventory/keyvault_provider.go
9
56.98
-2.06% internal/resources/providers/azurelib/inventory/storage_provider.go
8
0.0
-53.33% internal/infra/observability/aws.go
8
0.0
-100.0% internal/inventory/azurefetcher/azurefetchers.go
8
0.0
-72.73% internal/resources/fetching/condition/is_leader.go
8
68.18
-18.18% internal/resources/fetching/fetchers/aws/s3_fetcher.go
8
0.0
-100.0% internal/resources/providers/awslib/cloudwatch/cloudwatch.go
8
0.0
-100.0% internal/resources/providers/awslib/cloudwatch/logs/logs.go
8
63.89
-22.22% internal/resources/providers/azurelib/inventory/mysql_provider.go
8
74.82
-5.76% internal/resources/providers/azurelib/inventory/postgresql_provider.go
8
80.0
-13.33% internal/resources/providers/azurelib/inventory/resource_graph_provider.go
8
61.11
-11.11% internal/resources/providers/azurelib/inventory/security_provider.go
7
0.0
-100.0% internal/resources/providers/aws_cis/logging/logging.go
7
0.0
-100.0% internal/resources/providers/awslib/ecr/ecr.go
6
50.0
-37.5% internal/dataprovider/providers/k8s/cluster_name_provider.go
4
62.5
-3.33% internal/config/config.go
3
44.19
-6.98% internal/resources/providers/azurelib/auth/auth_provider.go
2
88.89
-11.11% internal/resources/providers/awslib/all_region_selector.go
2
85.71
-14.29% internal/resources/providers/awslib/current_region_selector.go
2
85.42
-4.17% internal/resources/providers/gcplib/inventory/grpc_rate_limiter.go
2
95.79
-2.11% internal/vulnerability/snapshot.go
1
87.01
-1.3% internal/resources/fetching/fetchers/aws/logging_fetcher.go
1
94.44
-2.78% internal/statushandler/status_handler.go
Jobs
ID Job ID Ran Files Coverage
1 44566227836.1 19 Nov 2026 04:46PM UTC 235
58.97
GitHub Action Run
Source Files on build 44566227836
  • Tree
  • List 235
  • Changed 90
  • Source Changed 0
  • Coverage Changed 90
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 38c0f195 on github
  • Prev Build on 9.4 (#44556197553)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc