示例#1
0
    def setup_class(cls):
        super(TestImages, cls).setup_class()

        cls.instancehelper = InstanceHelper(cls.utils, cls.rest_auth)
        cls.imagehelper = ImageHelper(cls.utils)

        cls.utils.cleanup_objects(cls.imagehelper.delete_image, 'images')
    def setup_class(cls):
        super(TestInstanceRequests, cls).setup_class()

        cls.ihelper = InstanceHelper(cls.utils, cls.auth)
        cls.imagehelper = ImageHelper(cls.utils)

        # Number of instances to be created is limited to four. So, clean-up needed before start.
        cls.utils.cleanup_objects(cls.ihelper.terminate_instances, 'instances', id_key='instanceId')
示例#3
0
    def setup_class(cls):
        super(TestNetworkingRequests, cls).setup_class()

        cls.net_helper = NetworkingHelper(cls.utils)
        cls.ihelper = InstanceHelper(cls.utils, cls.auth)

        # remove objects to relieve storage
        cls.utils.cleanup_objects(cls.ihelper.terminate_instances, 'instances', id_key='instanceId')
示例#4
0
    def setup_class(cls):
        super(TestVolumes, cls).setup_class()
        cls.vhelper = VolumeHelper(cls.utils)
        cls.vshelper = VolumeSnapshotHelper(cls.utils)
        cls.imagehelper = ImageHelper(cls.utils)
        cls.ihelper = InstanceHelper(cls.utils, cls.rest_auth)

        cls.utils.cleanup_objects(cls.vhelper.delete_volume,
                                  'volumes',
                                  name_key='displayName')
    def setup_class(cls):
        super(TestPoolServiceRequests, cls).setup_class()
        cls.ihelper = InstanceHelper(cls.utils, cls.auth)
        cls.phelper = PoolHelper(cls.utils)

        # create instance - its network will be used to create pools and itself will be used to create services.
        cls.instance = cls.ihelper.create_instance()
        ok_(
            cls.instance,
            "Unable to create instance. Pools creation will fail in the following test-cases."
        )
        cls.net_interface = cls.instance['networks'].keys()[0]
示例#6
0
    def setup_class(cls):
        super(TestVolumeRequests, cls).setup_class()

        cls.vhelper = VolumeHelper(cls.utils)
        cls.ihelper = InstanceHelper(cls.utils, cls.auth)
        cls.shelper = VolumeSnapshotHelper(cls.utils)

        # remove objects to relieve storage
        cls.utils.cleanup_objects(cls.ihelper.terminate_instances,
                                  'instances',
                                  id_key='instanceId')
        cls.utils.cleanup_objects(cls.shelper.delete_snapshot, 'snapshots')
        cls.utils.cleanup_objects(cls.vhelper.delete_volume,
                                  'volumes',
                                  name_key='displayName')
示例#7
0
 def setup_class(cls):
     super(TestPools, cls).setup_class()
     cls.ihelper = InstanceHelper(cls.utils, cls.rest_auth)