def test_list_files_for_root(self): client = KubernetesClient() fs = KubeFileSystem(client) path = '/' files = fs.list_files(path) namespaces = client.get_namespaces() assert_that(files, contains(*namespaces)) assert_that(len(files), is_(len(namespaces)))
def test_list_files_for_root(self): client = KubernetesClient() fs = KubeFileSystem(client) path = '/' files = fs.list_files(path) namespaces = client.get_namespaces() assert_that(files, contains(*namespaces)) assert_that(len(files), is_(len(namespaces)))
def test_get_namespaces(self): client = KubernetesClient() namespaces = client.get_namespaces() assert_that(namespaces, has_item('default')) assert_that(namespaces, has_item('kube-system')) assert_that(len(namespaces), is_(2))
def test_get_namespaces(self): client = KubernetesClient() namespaces = client.get_namespaces() assert_that(namespaces, has_item('default')) assert_that(namespaces, has_item('kube-system')) assert_that(len(namespaces), is_(2))