mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-09-30 11:51:46 +02:00
Tag probe datasets with OWASP LLM Top 10 categories in the scan UI
This commit is contained in:
5 files changed
+118
-3
No files matched your search
@@ -80,8 +80,10 @@ def test_data_config_endpoint():
|
||||
# Verify each item in response matches REGISTRY format
|
||||
for item in data:
|
||||
assert isinstance(item, dict)
|
||||
# Add assertions for expected fields based on REGISTRY structure
|
||||
# This will depend on what fields are defined in the REGISTRY items
|
||||
# Every entry carries an OWASP LLM Top 10 tag for the UI badge
|
||||
assert "owasp" in item
|
||||
assert item["owasp"]["id"].startswith("LLM")
|
||||
assert item["owasp"]["title"]
|
||||
|
||||
|
||||
def test_refusal_rate():
|
||||
|
||||
Reference in new issue
Block a user