feat: add cert resolve command and improve discovery logic
This commit is contained in:
parent
6d2dde9a60
commit
069441d3eb
3 changed files with 118 additions and 28 deletions
|
|
@ -100,6 +100,15 @@ def test_cert_cli():
|
|||
assert res.returncode == 0
|
||||
assert "notAfter" in res.stdout
|
||||
|
||||
# 3. Resolve
|
||||
res = run_infra(["cert", "resolve", "loopaware.com"])
|
||||
assert res.returncode == 0
|
||||
assert "loopaware.com.pem" in res.stdout
|
||||
|
||||
res = run_infra(["cert", "resolve", "wiki.loopaware.com"])
|
||||
assert res.returncode == 0
|
||||
assert "loopaware.com.pem" in res.stdout
|
||||
|
||||
def test_ip_discovery():
|
||||
res = run_infra(["ip", "next-free"])
|
||||
assert res.returncode == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue