feat: add samba and proxmox modules, update config with node secrets
This commit is contained in:
parent
a80be5d8aa
commit
9c8c771cb1
7 changed files with 203 additions and 6 deletions
|
|
@ -44,6 +44,29 @@ def test_ingress_cli(unique_id):
|
|||
res = run_infra(["ingress", "remove", domain])
|
||||
assert res.returncode == 0
|
||||
|
||||
def test_samba_cli(unique_id):
|
||||
username = f"testuser_{unique_id}"
|
||||
password = "TestPassword123!"
|
||||
|
||||
# List (verify we can connect)
|
||||
res = run_infra(["samba", "list-users"])
|
||||
assert res.returncode == 0
|
||||
|
||||
# Add User
|
||||
res = run_infra(["samba", "add-user", username, password])
|
||||
assert res.returncode == 0
|
||||
assert username in run_infra(["samba", "list-users"]).stdout
|
||||
|
||||
# Add to Group
|
||||
res = run_infra(["samba", "add-to-group", "xmpp-users", username])
|
||||
assert res.returncode == 0
|
||||
|
||||
def test_proxmox_cli(unique_id):
|
||||
# List LXCs on a specific node
|
||||
res = run_infra(["proxmox", "list-lxcs", "--node", "la-vmh-11"])
|
||||
assert res.returncode == 0
|
||||
assert "la-dnsmasq-01" in res.stdout or "11209" in res.stdout
|
||||
|
||||
def test_router_cli(unique_id):
|
||||
name = f"Test-Cli-{unique_id}"
|
||||
section = name.lower().replace("-", "_")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue