|
|
|
@ -36,6 +36,17 @@ def test_vhost_mgr(vhost_mgr): |
|
|
|
|
assert vhost_mgr.get_num_vhosts(username) == 0 |
|
|
|
|
|
|
|
|
|
os.unlink(rate_limit_file) |
|
|
|
|
vhost_mgr.create_vhost(username, domain, ip_address + ':8000') |
|
|
|
|
os.unlink(rate_limit_file) |
|
|
|
|
domain3 = username + '.k8s.csclub.cloud' |
|
|
|
|
vhost_mgr.create_vhost(username, domain3, 'k8s') |
|
|
|
|
assert vhost_mgr.get_vhosts(username) == [ |
|
|
|
|
{'domain': domain, 'ip_address': ip_address + ':8000'}, |
|
|
|
|
{'domain': domain3, 'ip_address': 'k8s'}, |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
vhost_mgr.delete_all_vhosts_for_user(username) |
|
|
|
|
os.unlink(rate_limit_file) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.parametrize('suffix', ['csclub.cloud', 'k8s.csclub.cloud']) |
|
|
|
|