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.
 
 
 
 
 
 

13 lines
419 B

from kube_web.joins import generate_name_from_spec
def test_generate_name_from_spec():
assert generate_name_from_spec("a.b") == "A B"
assert generate_name_from_spec(" a.b ") == "A B"
assert (
generate_name_from_spec(" a[1].containers[*].Image ") == "A 1 Containers Image"
)
assert (
generate_name_from_spec('metadata.annotations."foo"')
== "Metadata Annotations Foo"
)