Files
computer-playbook/roles/test-e2e-cli
kevinveenbirkenbachandClaude Opus 5 a05071fe78 refactor(roles): let a role declare its entity name and drop the get_ prefix
The entity name keys a role's instance directory, its compose project and its container name, and was derived only by stripping the longest matching category prefix. Two roles under different categories whose names share a suffix therefore collapse onto one entity and overwrite each other's rendered stack, which no provides: can repair.

A literal entity_name in vars/main.yml now wins over the derivation. web-app-seaweedfs-console takes its shorter name back and declares the entity seaweedfs-console, which frees the seaweedfs key in its own services map for the engine consumer and removes the provides:, covers: and alias entries that stood in for it. A new lint pairs the declaration with the primary key it has to match, because a drift between them would drop the role from the provider set in silence.

Compared across all 288 roles, exactly one entity changes, and it restores what main already keeps on disk, so no instance directory moves.

The function and the filter lose their get_ prefix. Two lints read that prefix as the discriminator between the variable and the filter that fills it; both discriminate on the pipe now. Ansible's templar resolves a filter and a same-named variable independently, verified against ansible-core 2.20.2.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-03 19:40:53 +02:00
..

Test E2E Cli

Description

Test E2E Cli is an application.

Overview

This role deploys Test E2E Cli.

Features

  • Feature: Describe a capability.

Per-role settings

A tested role declares its CLI-test settings under cli: in its own meta/tests.yml, read through lookup('role_tests', application_id, 'cli.<key>'):

Key Purpose
timeout Seconds for the test script, for a test that legitimately outlasts TEST_E2E_CLI_TIMEOUT
container_service_key Service key whose container the test runs against
once true runs the test in the sync pass only, so full_cycle does not run it a second time
cli:
  once: true
  timeout: 14400