mirror of
https://github.com/flakestorm/flakestorm.git
synced 2026-04-25 00:36:54 +02:00
Update version to 2.0.0 and enhance chaos engineering features in Flakestorm. Added support for environment chaos, behavioral contracts, and replay regression. Expanded documentation and improved scoring mechanisms. Updated .gitignore to include new documentation files.
This commit is contained in:
parent
59cca61f3c
commit
9c3450a75d
63 changed files with 4147 additions and 134 deletions
|
|
@ -80,16 +80,17 @@ agent:
|
|||
endpoint: "http://test:8000/invoke"
|
||||
golden_prompts:
|
||||
- "Hello world"
|
||||
invariants:
|
||||
- type: "latency"
|
||||
max_ms: 5000
|
||||
"""
|
||||
with tempfile.NamedTemporaryFile(mode="w", suffix=".yaml", delete=False) as f:
|
||||
f.write(yaml_content)
|
||||
f.flush()
|
||||
|
||||
config = load_config(f.name)
|
||||
assert config.agent.endpoint == "http://test:8000/invoke"
|
||||
|
||||
# Cleanup
|
||||
Path(f.name).unlink()
|
||||
path = f.name
|
||||
config = load_config(path)
|
||||
assert config.agent.endpoint == "http://test:8000/invoke"
|
||||
Path(path).unlink(missing_ok=True)
|
||||
|
||||
|
||||
class TestAgentConfig:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue