Initial release of the oVirt/RHV Engine API simulator.
Stateful FastAPI lab with contract packs, Compose/Helm, Docker Hub release targets, and Pulumi coverage across all Engine series (GET/POST/PUT/DELETE/HEAD).
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
"""Deterministic UUIDs for seed data."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from uuid import UUID, uuid5
|
||||
|
||||
NAMESPACE = UUID("a1b2c3d4-e5f6-7890-abcd-ef1234567890")
|
||||
|
||||
|
||||
def stable_id(*parts: str) -> UUID:
|
||||
return uuid5(NAMESPACE, ":".join(parts))
|
||||
|
||||
|
||||
def stable_str(*parts: str) -> str:
|
||||
return str(stable_id(*parts))
|
||||
Reference in New Issue
Block a user