def then_i_have_the_last_call_log_matching(step):
    entry = step.hashes[0]
    common.wait_until(call_logs_helper.matches_last_call_log,
                      entry,
                      tries=5,
                      message="The last call_log entry did not match : %s" %
                      entry)
Example #2
0
def when_i_delete_the_queue_with_number_group1(step, exten, context):
    queues = queues_with_exten(exten, context)
    assert queues, "No queue with extension {exten}@{context}".format(
        exten=exten, context=context)
    queue_id = queues[0].id
    common.open_url('queue', 'delete', {'id': queue_id})
    common.wait_until(queue_is_no_longer_in_list, exten, context, tries=5)
Example #3
0
def when_i_delete_the_queue_with_number_group1(step, exten, context):
    queues = queues_with_exten(exten, context)
    assert queues, "No queue with extension {exten}@{context}".format(exten=exten, context=context)
    queue_id = queues[0].id
    common.open_url('queue', 'delete', {'id': queue_id})
    common.wait_until(queue_is_no_longer_in_list, exten, context, tries=5)
def then_i_see_no_transfer_destinations(step):
    common.wait_until(_switchboard_has_no_transfer_destination, tries=3)
def then_the_switchboard_is_talking_to_1_number_2(step, cid_name, cid_num):
    common.wait_until(_switchboard_has_current_call, tries=10)
    current_call = cti_helper.get_switchboard_current_call_infos()
    assert_that(current_call['caller_id'], equal_to("%s <%s>" % (cid_name, cid_num)))
def when_the_switchboard_1_selects_the_incoming_call_from_2_number_3(step, switchboard, cid_name, cid_num):
    common.wait_until(_switchboard_has_incoming_call, cid_name, cid_num, tries=10)
    cti_helper.switchboard_answer_incoming_call(cid_name, cid_num)
def then_i_have_the_last_call_log_matching(step):
    entry = step.hashes[0]
    common.wait_until(call_logs_helper.matches_last_call_log, entry,
                      tries=5,
                      message="The last call_log entry did not match : %s" % entry)
Example #8
0
def remove_group_with_name(group_name):
    common.remove_element_if_exist('group', group_name)
    common.wait_until(group_is_no_longer_in_list, group_name, tries=5)