def setUp(self):
     if os.path.exists("%sglance-registry" % glance_bin_root()):
         reg_path = "%sglance-registry" % glance_bin_root()
     else:
         reg_path = "/usr/bin/glance-registry"
     self.service = Service(python_cmd_list() +
                            [reg_path, glance_reg_conf()])
Beispiel #2
0
 def setUp(self):
     if os.path.exists("%sglance-registry" % glance_bin_root()):
         reg_path = "%sglance-registry" % glance_bin_root()
     else:
         reg_path = "/usr/bin/glance-registry"
     self.service = Service(python_cmd_list() +
                            [reg_path, glance_reg_conf()])
 def test_start(self):
     if os.environ.get("INSTALL_GLANCE_IMAGE", "False") == 'True':
         # Check if glance-upload is package installed or not by
         # just checking if the 'known' glance-upload exists
         if os.path.exists("%sglance-upload" % glance_bin_root()):
             exec_str = "%sglance-upload" % glance_bin_root()
         else:
             exec_str = "/usr/bin/glance-upload"
         proc = start_proc([exec_str, "--type=raw",
                            "%s/%s" % (glance_images_directory(),
                                       test_config.glance_image),
                            test_config.glance_image.rstrip(".tar.gz")])
         (stdoutdata, stderrdata) = proc.communicate()
         print "proc.communicate()'s stdout\n%s" % stdoutdata
         print "proc.communicate()'s stderr\n%s" % stderrdata
Beispiel #4
0
 def test_start(self):
     if os.environ.get("INSTALL_GLANCE_IMAGE", "False") == 'True':
         # Check if glance-upload is package installed or not by
         # just checking if the 'known' glance-upload exists
         if os.path.exists("%sglance-upload" % glance_bin_root()):
             exec_str = "%sglance-upload" % glance_bin_root()
         else:
             exec_str = "/usr/bin/glance-upload"
         proc = start_proc([exec_str, "--type=raw",
                            "%s/%s" % (glance_images_directory(),
                                       test_config.glance_image),
                            test_config.glance_image.rstrip(".tar.gz")])
         (stdoutdata, stderrdata) = proc.communicate()
         print "proc.communicate()'s stdout\n%s" % stdoutdata
         print "proc.communicate()'s stderr\n%s" % stderrdata