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

elastic / cloudbeat / 45134486126
76%
main: 76%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-10178-c980ecff8501cdb2233e970c7af04a32a64f3c25
DEFAULT BRANCH: main
Ran 23 Nov 2026 08:12AM 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

23 Nov 2026 07:29AM UTC coverage: 75.783% (+0.04%) from 75.744%
45134486126

push

github

web-flow
[9.4](backport #10108) test: replace the template-test installers with fleet_setup.py (phase 6.3) (#10155)

### Summary of your changes

Phase 6.3 of the cloudbeat cleanup: replace the template-test installers
with one script.

**Stacked on #10107 (6.2), which is stacked on #10106 (6.1).** This PR
targets `chore/decouple-tests-from-fleet-api-6-2`; retarget to `main`
once those merge.

The CloudFormation (CNVM) and GCP Deployment Manager template tests used
`tests/integrations_setup` and `tests/fleet_api` (about 2.7k lines).
They are replaced by `tests/template_tests/fleet_setup.py`, built on
`commonlib.kibana_api` from 6.2.

- Subcommands: `cnvm`, `cspm-gcp` (create the agent and package policies
and write `deploy/cloudformation/config.json` or
`deploy/deployment-manager/config.json`) and `wait-agents` (wait for the
agent of the last created policy).
- `cnvm` still downloads the published CloudFormation template and adds
the same AWS tags (`division`, `org`, `team`, `project`) to the EC2
instance. The repository copy is kept as
`elastic-agent-ec2-cnvm-orig.yml`.
- `cloudformation-ci.yml` and `test-gcp-dm.yml` now run `poetry run
python -m template_tests.fleet_setup <cmd>` from `tests/`. The service
account key file moves into `tests/` (gitignored).
- `tests/pyproject.toml`: `packages` (it only listed `fleet_api`) is
replaced by `package-mode = false`.
- Removed: `tests/integrations_setup/`, `tests/fleet_api/`.

**Differences from the old installers**
- Version gating below package 1.12 is dropped.
- The package version comes from the package GET, not the list endpoint.
- The policy state file is now `tests/template_tests/.fleet_state.json`
(mode `0600`).
- Relative GCP credential paths resolve against the current directory.
- The enrollment token is masked with `::add-mask::` before it is
written and is never logged. Config files are written with mode `0600`.

**Tests**
- 20 offline unit tests (`tests/template_tests/test_fleet_setup.py`) run
in the `U... (continued)

9729 of 12838 relevant lines covered (75.78%)

16.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45134486126.1 23 Nov 2026 08:11AM UTC 235
75.78
GitHub Action Run
Source Files on build 45134486126
  • Tree
  • List 235
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d63fb15e on github
  • Prev Build on 9.4 (#45008300006)
  • Next Build on 9.4 (#45145288785)
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