Add comprehensive E2E tests for materia CLI

- Add pytest and pytest-cov for testing
- Add niquests for modern HTTP/2 support (keep requests for hcloud compatibility)
- Create 13 E2E tests covering CLI, workers, pipelines, and secrets (71% coverage)
- Fix Pulumi ESC environment path (beanflows/prod) and secret key names
- Update GitLab CI to run CLI tests with coverage reporting

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Deeman
2025-10-12 21:32:51 +02:00
parent ca308a7275
commit 5ce112f44d
11 changed files with 415 additions and 107 deletions

View File

@@ -12,9 +12,9 @@ from materia.secrets import get_secret
def _get_client() -> Client:
token = get_secret("HETZNER_TOKEN")
token = get_secret("HETZNER_API_TOKEN")
if not token:
raise ValueError("HETZNER_TOKEN not found in secrets")
raise ValueError("HETZNER_API_TOKEN not found in secrets")
return Client(token=token)