Ejemplo n.º 1
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)))
Ejemplo n.º 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)))
Ejemplo n.º 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))
Ejemplo n.º 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))