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.
 
 
 
 
 
 

12 lines
387 B

from kube_web.selector import parse_selector
from kube_web.selector import selector_matches
def test_parse_selector():
assert parse_selector("a=1") == {"a": "1"}
def test_selector_matches():
assert selector_matches({"a!": ["1", "2"]}, {"a": "3"})
assert not selector_matches({"a!": ["1", "2"]}, {"a": "1"})
assert not selector_matches({"a!": ["1", "2"]}, {"a": "2"})