Esempio n. 1
0
 def ImagesList(self):
     images = Images()
     args = self.Args()
     args.all = True
     images.set_args(args)
     i = images.images()
     return json.dumps(i)
Esempio n. 2
0
 def ImagesList(self):
     images = Images()
     args = self.Args()
     args.all=True
     images.set_args(args)
     i = images.display_all_image_info()
     return json.dumps(i)
Esempio n. 3
0
 def ImagesList(self):
     images = Images()
     args = self.Args()
     args.all = True
     images.set_args(args)
     i = images.display_all_image_info()
     return json.dumps(i)
Esempio n. 4
0
 def ImagesList(self):
     images = Images()
     args = self.Args()
     args.all=True
     images.set_args(args)
     i = images.images()
     return json.dumps(i)
Esempio n. 5
0
 def test_images(self):
     db = DockerBackend()
     db._inspect_image = MagicMock(return_value=_docker_images)
     ob = OSTreeBackend()
     ob.syscontainers.get_system_images = MagicMock(return_value=_system_images)
     images = Images()
     args = self.Args()
     args.storage = 'docker'
     args.json = True
     images.set_args(args)
     return_value = images.display_all_image_info()
     self.assertEqual(return_value, 0)
Esempio n. 6
0
 def test_images(self):
     db = DockerBackend()
     db._inspect_image = MagicMock(return_value=_docker_images)
     ob = OSTreeBackend()
     ob.syscontainers.get_system_images = MagicMock(
         return_value=_system_images)
     images = Images()
     args = self.Args()
     args.storage = 'docker'
     args.json = True
     images.set_args(args)
     return_value = images.display_all_image_info()
     self.assertEqual(return_value, 0)
Esempio n. 7
0
 def Images(self):
     args = self.Args()
     images = Images()
     images.set_args(args)
     return json.dumps(images.images())