Beispiel #1
0
    def test_new_volume_copy_pair(self):
        api = CopyServicesApi()
        copy_services_api = None
        try:
            copy_services_api = api.new_volume_copy_pair(system_id="test", )
            # For the DELETE calls, there's no reponse returned and we want to set that as a valid sdk call.
            if copy_services_api is None:
                copy_services_api = 1
        except (ApiException, IOError) as exp:
            # The API call went through but got a HTTP errorcode, which means the SDK works
            copy_services_api = 1

        self.assertNotEqual(copy_services_api, None)
Beispiel #2
0
    def test_rollback_consistency_group_snapshot(self):
        api = CopyServicesApi()
        copy_services_api = None
        try:
            copy_services_api = api.rollback_consistency_group_snapshot(
                system_id="test", cg_id="test", sequence_number="test")
            # For the DELETE calls, there's no reponse returned and we want to set that as a valid sdk call.
            if copy_services_api is None:
                copy_services_api = 1
        except (ApiException, IOError) as exp:
            # The API call went through but got a HTTP errorcode, which means the SDK works
            copy_services_api = 1

        self.assertNotEqual(copy_services_api, None)