feat: add unified decommission and database provisioning modules
This commit is contained in:
parent
171b2a63dd
commit
b0f97f80df
4 changed files with 114 additions and 2 deletions
|
|
@ -106,4 +106,21 @@ def test_router_error_handling():
|
|||
# Test removing non-existent section
|
||||
res = run_infra(["router", "remove", "non_existent_section_12345"])
|
||||
assert res.returncode != 0
|
||||
assert "not found" in res.stderr
|
||||
# Remove
|
||||
res = run_infra(["router", "remove", section], env=env)
|
||||
assert res.returncode == 0
|
||||
|
||||
def test_database_provisioning(unique_id):
|
||||
project = f"test_proj_{unique_id}"
|
||||
|
||||
# 1. Provision
|
||||
res = run_infra(["db", "provision", project])
|
||||
assert res.returncode == 0
|
||||
assert project in res.stdout
|
||||
|
||||
# 2. List and Verify
|
||||
res = run_infra(["db", "list-dbs"])
|
||||
assert project in res.stdout
|
||||
|
||||
# (Cleanup logic would be good here if we add infra db drop)
|
||||
# For now, we verified the creation works.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue