← スキル一覧に戻る

live-test
by irvingpop
A Python client for the Honeycomb.io API
⭐ 1🍴 1📅 2026年1月23日
SKILL.md
name: live-test description: Run comprehensive live API tests against Honeycomb. Manages test environments, validates documentation snippets, and tests CRUD operations. Use when you need to verify the SDK against the real API. allowed-tools: Bash(direnv exec:), Bash(poetry run:), Read, Grep, Glob, Write
Live API Testing Skill
This skill provides comprehensive integration testing against the real Honeycomb API.
Prerequisites
-
Management Key - Set in
.envrc:cp .envrc.example .envrc # Edit .envrc with your management key direnv allow -
Or Direct API Key - For simpler testing without environment creation
Quick Start
# Run full test suite
direnv exec . poetry run python scripts/test_live_api.py
# Verify API key credentials (v1 auth)
direnv exec . bash -c 'curl -s -H "X-Honeycomb-Team: $HONEYCOMB_API_KEY" https://api.honeycomb.io/1/auth | python3 -c "import sys,json; d=json.load(sys.stdin); print(f\"API Key: {d[\"type\"]} for team {d[\"team\"][\"slug\"]}, env {d[\"environment\"][\"slug\"]}\")"'
# Verify management key credentials (v2 auth)
direnv exec . bash -c 'curl -s -H "Authorization: Bearer $HONEYCOMB_MANAGEMENT_KEY:$HONEYCOMB_MANAGEMENT_SECRET" https://api.honeycomb.io/2/auth | python3 -c "import sys,json; d=json.load(sys.stdin); print(f\"Management Key: {d[\"data\"][\"attributes\"][\"name\"]} for team {d[\"data\"][\"relationships\"][\"team\"][\"data\"][\"id\"]}\")"'
Test Scopes
| Scope | Description |
|---|---|
all | Full suite: environment setup, CRUD, doc snippets |
crud | CRUD tests for all resources |
docs | Documentation snippet validation only |
triggers | Test triggers resource only |
queries | Test queries resource only |
| (etc) | Any resource name |
Session Management
The live-tester agent manages test sessions:
- New session: Creates environment + API key via Management API
- Resume session: Reuses existing credentials from
.claude/secrets/ - Cleanup: Deletes test resources and environments
Session state is stored in:
.claude/secrets/session.json- Environment/key IDs (no secrets).claude/secrets/test.env- The actual API key (gitignored)
Resource Dependency Order
Tests run in this order to satisfy dependencies:
1. Dataset
2. Columns
3. Events (+ 30s wait for ingestion)
4. Recipients, Queries
5. Triggers, Boards, SLOs, Markers
6. Burn Alerts
What Gets Tested
CRUD Operations
- Create with Builder pattern (where applicable)
- Create with manual/dict pattern
- Read (get by ID)
- Update
- Delete + verify deletion
Documentation Snippets
- Extracts Python code blocks from
docs/usage/*.md - Substitutes placeholders with real test values
- Executes both complete and partial snippets
- Reports which docs have bugs
Security
- Credentials loaded via direnv (never hardcoded)
- Secrets stored only in
.claude/secrets/(gitignored) - Session files contain IDs only, not secrets
- Keys never printed to console
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です