Example #1
0
 def cleanup(self):
     super(history_base, self).cleanup()
     if self.config['remove_after_test']:
         dc = DockerContainers(self)
         dc.clean_all(self.sub_stuff.get("containers"))
         di = DockerImages(self)
         di.clean_all(self.sub_stuff.get("images"))
Example #2
0
 def cleanup(self):
     super(run_base, self).cleanup()
     if self.config['remove_after_test']:
         dc = DockerContainers(self)
         dc.clean_all(self.sub_stuff.get("containers"))
         di = DockerImages(self)
         di.clean_all(self.sub_stuff.get("images"))
Example #3
0
 def cleanup(self):
     super(rmi_base, self).cleanup()
     di = DockerImages(self)
     # Auto-converts "yes/no" to a boolean
     if self.config['remove_after_test']:
         dc = DockerContainers(self)
         dc.clean_all(self.sub_stuff.get("containers"))
         di = DockerImages(self)
         imgs = [img.full_name
                 for img in self.sub_stuff.get("image_list", [])]
         di.clean_all(imgs)
Example #4
0
 def cleanup(self):
     super(rmi_base, self).cleanup()
     di = DockerImages(self)
     # Auto-converts "yes/no" to a boolean
     if self.config['remove_after_test']:
         dc = DockerContainers(self)
         dc.clean_all(self.sub_stuff.get("containers"))
         di = DockerImages(self)
         imgs = [img.full_name
                 for img in self.sub_stuff.get("image_list", [])]
         di.clean_all(imgs)
Example #5
0
 def cleanup(self):
     super(exec_base, self).cleanup()
     for ifd in self.sub_stuff['fds']:
         try:
             os.close(ifd)
         except OSError:
             pass
     if self.config['remove_after_test']:
         dc = DockerContainers(self)
         dc.clean_all(self.sub_stuff.get("containers"))
         di = DockerImages(self)
         di.clean_all(self.sub_stuff.get("images"))
Example #6
0
 def cleanup(self):
     super(exec_base, self).cleanup()
     for ifd in self.sub_stuff['fds']:
         try:
             os.close(ifd)
         except OSError:
             pass
     if self.config['remove_after_test']:
         dc = DockerContainers(self)
         dc.clean_all(self.sub_stuff.get("containers"))
         di = DockerImages(self)
         di.clean_all(self.sub_stuff.get("images"))
Example #7
0
 def cleanup(self):
     super(with_blocking_container_by_id, self).cleanup()
     di = DockerImages(self)
     di.clean_all([self.sub_stuff["image_name"]])
Example #8
0
 def cleanup(self):
     super(with_blocking_container_by_id, self).cleanup()
     di = DockerImages(self)
     di.clean_all([self.sub_stuff["image_name"]])
Example #9
0
 def clean_up(self):
     super(atomic_containers, self).clean_up()
     imgs = DockerImages(self)
     imgs.clean_all(['rhel7/rsyslog', 'rhel7/sadc'])
Example #10
0
 def cleanup(self):
     super(empty, self).cleanup()
     if self.parent_subtest.config["remove_after_test"]:
         di = DockerImages(self)
         image = self.sub_stuff["image_name_tag"]
         di.clean_all([image])
Example #11
0
 def cleanup(self):
     super(empty, self).cleanup()
     if self.parent_subtest.config['remove_after_test']:
         di = DockerImages(self)
         image = self.sub_stuff['image_name_tag']
         di.clean_all([image])