예제 #1
0
    def setUp(cls):
        DOWNLOAD_URL = 'https://github.com/InfraSIM/test/raw/master/image/kcs.img'
        MD5_KCS_IMG = 'cfdf7d855d2f69c67c6e16cc9b53f0da'
        helper.fetch_image(DOWNLOAD_URL, MD5_KCS_IMG, test_img_file)

        cls.start_node()
        cls.port_forward()
 def setUpClass(cls):
     try:
         helper.fetch_image(
             "https://github.com/InfraSIM/test/raw/master/image/kcs.img",
             "986e5e63e8231a307babfbe9c81ca210", "/tmp/kcs.img")
     except InfraSimError, e:
         print e.value
예제 #3
0
 def setUpClass(cls):
     try:
         helper.fetch_image(
             "https://github.com/InfraSIM/test/raw/master/image/kcs.img",
             "cfdf7d855d2f69c67c6e16cc9b53f0da", "/tmp/kcs.img")
     except InfraSimError, e:
         print e.value
예제 #4
0
 def setUpClass(cls):
     try:
         helper.fetch_image(
             "https://github.com/InfraSIM/test/raw/master/image/kcs.img",
             "cfdf7d855d2f69c67c6e16cc9b53f0da", "/tmp/kcs.img")
     except InfraSimError, e:
         print e.value
예제 #5
0
    def setUp(cls):
        DOWNLOAD_URL = 'https://github.com/InfraSIM/test/raw/master/image/kcs.img'
        MD5_KCS_IMG = '986e5e63e8231a307babfbe9c81ca210'
        helper.fetch_image(DOWNLOAD_URL, MD5_KCS_IMG, test_img_file)

        cls.start_node()
        cls.port_forward()
예제 #6
0
 def setUpClass(cls):
     try:
         helper.fetch_image(
             "https://github.com/InfraSIM/test/raw/master/image/kcs.img",
             "986e5e63e8231a307babfbe9c81ca210", "/tmp/kcs.img")
     except InfraSimError, e:
         print e.value
예제 #7
0
def setup_module():
    test_img_file = "/tmp/kcs.img"
    DOWNLOAD_URL = "https://github.com/InfraSIM/test/raw/master/image/kcs.img"
    MD5_KCS_IMG = "cfdf7d855d2f69c67c6e16cc9b53f0da"
    try:
        helper.fetch_image(DOWNLOAD_URL, MD5_KCS_IMG, test_img_file)
    except InfraSimError, e:
        print e.value
        assert False
예제 #8
0
def setup_module():
    test_img_file = "/tmp/kcs.img"
    DOWNLOAD_URL = "https://github.com/InfraSIM/test/raw/master/image/kcs.img"
    MD5_KCS_IMG = "cfdf7d855d2f69c67c6e16cc9b53f0da"
    try:
        helper.fetch_image(DOWNLOAD_URL, MD5_KCS_IMG, test_img_file)
    except InfraSimError, e:
        print e.value
        assert False
예제 #9
0
def setup_module():
    test_img_file = "/tmp/kcs.img"
    DOWNLOAD_URL = "https://github.com/InfraSIM/test/raw/master/image/kcs.img"
    MD5_KCS_IMG = "986e5e63e8231a307babfbe9c81ca210"
    try:
        helper.fetch_image(DOWNLOAD_URL, MD5_KCS_IMG, test_img_file)
    except InfraSimError, e:
        print e.value
        assert False
 def test_qemu_boot_from_disk_img(self):
     MD5_IMG = "986e5e63e8231a307babfbe9c81ca210"
     DOWNLOAD_URL = "https://github.com/InfraSIM/test/raw/master/image/kcs.img"
     test_img_file = "/tmp/kcs.img"
     try:
         helper.fetch_image(DOWNLOAD_URL, MD5_IMG, test_img_file)
     except InfraSimError, e:
         print e.value
         assert False
 def test_qemu_boot_from_disk_img(self):
     MD5_CIRROS_IMG = "ee1eca47dc88f4879d8a229cc70a07c6"
     DOWNLOAD_URL = "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
     test_img_file = "/tmp/cirros-0.3.4-x86_64-disk.img"
     try:
         helper.fetch_image(DOWNLOAD_URL, MD5_CIRROS_IMG, test_img_file)
     except InfraSimError, e:
         print e.value
         assert False
예제 #12
0
def setup_module():
    test_img_file = "/tmp/kcs.img"
    DOWNLOAD_URL = "https://github.com/InfraSIM/test/raw/master/image/kcs.img"
    MD5_KCS_IMG = "986e5e63e8231a307babfbe9c81ca210"
    try:
        helper.fetch_image(DOWNLOAD_URL, MD5_KCS_IMG, test_img_file)
    except InfraSimError, e:
        print e.value
        assert False
예제 #13
0
 def test_qemu_boot_from_disk_img(self):
     MD5_CIRROS_IMG = "ee1eca47dc88f4879d8a229cc70a07c6"
     DOWNLOAD_URL = "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
     test_img_file = "/tmp/cirros-0.3.4-x86_64-disk.img"
     try:
         helper.fetch_image(DOWNLOAD_URL, MD5_CIRROS_IMG, test_img_file)
     except InfraSimError, e:
         print e.value
         assert False
 def test_qemu_boot_from_disk_img(self):
     MD5_IMG = "986e5e63e8231a307babfbe9c81ca210"
     DOWNLOAD_URL = "https://github.com/InfraSIM/test/raw/master/image/kcs.img"
     test_img_file = "/tmp/kcs.img"
     try:
         helper.fetch_image(DOWNLOAD_URL, MD5_IMG, test_img_file)
     except InfraSimError, e:
         print e.value
         assert False
예제 #15
0
def setup_module():
    test_img_file = "/tmp/kcs.img"
    DOWNLOAD_URL = "https://github.com/InfraSIM/test/raw/master/image/kcs.img"
    MD5_KCS_IMG = "986e5e63e8231a307babfbe9c81ca210"
    try:
        helper.fetch_image(DOWNLOAD_URL, MD5_KCS_IMG, test_img_file)
    except InfraSimError as e:
        print e.value
        assert False

    os.environ["PATH"] = new_path
    if os.path.exists("/tmp/topo"):
        shutil.rmtree("/tmp/topo")
    os.makedirs("/tmp/topo")
예제 #16
0
def setup_module():
    test_img_file = "/tmp/kcs.img"
    DOWNLOAD_URL = "https://github.com/InfraSIM/test/raw/master/image/kcs.img"
    MD5_KCS_IMG = "986e5e63e8231a307babfbe9c81ca210"
    try:
        helper.fetch_image(DOWNLOAD_URL, MD5_KCS_IMG, test_img_file)
    except InfraSimError as e:
        print e.value
        assert False

    os.environ["PATH"] = new_path
    if os.path.exists("/tmp/topo"):
        shutil.rmtree("/tmp/topo")
    os.makedirs("/tmp/topo")
예제 #17
0
    - LSI SAS controller
    - Mega SAS controller
"""

# tmp yaml file for test.
tmp_conf_file = "/tmp/test.yml"
old_path = os.environ.get("PATH")
new_path = "{}/bin:{}".format(os.environ.get("PYTHONPATH"), old_path)

# download the Cirros timy os image for boot order test.
MD5_IMG = "986e5e63e8231a307babfbe9c81ca210"
DOWNLOAD_URL = "https://github.com/InfraSIM/test/raw/master/image/kcs.img"
test_img_file = "/tmp/kcs.img"

try:
    helper.fetch_image(DOWNLOAD_URL, MD5_IMG, test_img_file)

except InfraSimError, e:
    print e.value
    assert False

drive2 = [{"size": 8, "file": "/tmp/sda.img"},
          {"size": 16, "file": "/tmp/sdb.img"}]

drive6 = [{"size": 8, "file": "/tmp/sda.img"},
          {"size": 16, "file": "/tmp/sdb.img"},
          {"size": 8, "file": "/tmp/sdc.img"},
          {"size": 16, "file": "/tmp/sdd.img"},
          {"size": 8, "file": "/tmp/sde.img"},
          {"size": 16, "file": "/tmp/sdf.img"}]