Skip to content

Commit abc8ee7

Browse files
committed
test: add sample fixtures for testing
- _demo.log: sample log file for log_analyzer.py - _demo_openapi.json: sample OpenAPI spec for api_test_generator.py
1 parent 76710f3 commit abc8ee7

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

samples/_demo.log

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2026-02-07 12:00:00 INFO Service starting
2+
2026-02-07 12:00:01 INFO Listening on port=8080
3+
2026-02-07 12:01:00 WARN Cache miss key=user:123
4+
2026-02-07 12:01:05 ERROR Failed to connect to db host=db1 timeout=5s
5+
2026-02-07 12:01:06 INFO Retrying db connection
6+
2026-02-07 12:01:12 INFO Connected to db
7+
2026-02-07 12:02:00 WARN Slow query duration_ms=1200 query="SELECT * FROM orders"
8+
2026-02-07 12:03:00 INFO Request id=abc123 status=200 latency_ms=34
9+
2026-02-07 12:03:05 INFO Request id=abc124 status=500 latency_ms=20
10+
2026-02-07 12:03:05 ERROR Unhandled exception trace_id=zzz999

samples/_demo_openapi.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"openapi": "3.0.0",
3+
"info": {"title": "Demo API", "version": "1.0.0"},
4+
"paths": {
5+
"/health": {
6+
"get": {
7+
"responses": {
8+
"200": {"description": "OK"}
9+
}
10+
}
11+
},
12+
"/users": {
13+
"post": {
14+
"requestBody": {
15+
"content": {
16+
"application/json": {
17+
"schema": {"type": "object", "properties": {"name": {"type": "string"}}}
18+
}
19+
}
20+
},
21+
"responses": {"201": {"description": "Created"}}
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)