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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user