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)))
Exemple #2
0
 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)))
Exemple #3
0
 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))
Exemple #4
0
 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))