Kubernetes Web View to list and view all Kubernetes resources https://kube-web-view.readthedocs.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
339 B

from kube_web.cluster_manager import sanitize_cluster_name
def test_sanitize_cluster_name():
assert sanitize_cluster_name("foo.bar") == "foo.bar"
assert sanitize_cluster_name("my-cluster") == "my-cluster"
assert sanitize_cluster_name("a b") == "a:b"
assert sanitize_cluster_name("https://srcco.de") == "https:::srcco.de"