def test_opensips_unauthorized_not_found():
    base_dir = os.path.dirname(__file__)
    scenario_file = os.path.join(base_dir, 'scenarios',
                                 'test_unauthorized_not_found.yaml')
    run_tester(config=scenario_file, apiurl=API_URL, target=TARGET)
def test_kamailio_unauthorized_unreachable():
    base_dir = os.path.dirname(__file__)
    scenario_file = os.path.join(base_dir, 'scenarios',
                                 'test_unauthorized_unreachable.yaml')
    run_tester(config=scenario_file, apiurl=API_URL, target=TARGET)
Exemplo n.º 3
0
def test_file_does_not_exist():
    with pytest.raises(FileNotFoundError):
        run_tester(config='/tmp/aaa.yaml')
Exemplo n.º 4
0
def test_kamailio_unauthorized_too_many_transactions():
    base_dir = os.path.dirname(__file__)
    scenario_file = os.path.join(base_dir, 'scenarios', 'test_unauthorized_too_many_transactions.yaml')
    run_tester(config=scenario_file, apiurl=API_URL, target=TARGET)
Exemplo n.º 5
0
def test_kamailio_call():
    base_dir = os.path.dirname(__file__)
    scenario_file = os.path.join(base_dir, "scenarios",
                                 "test_kamailio_call.yaml")
    run_tester(config=scenario_file, apiurl=API_URL, target=TARGET)
def test_kamailio_carrier_failover():
    base_dir = os.path.dirname(__file__)
    scenario_file = os.path.join(base_dir, 'scenarios',
                                 'test_carrier_failover.yaml')
    run_tester(config=scenario_file, apiurl=API_URL, target=TARGET)
def test_opensips_unauthorized_balance_insufficient():
    base_dir = os.path.dirname(__file__)
    scenario_file = os.path.join(base_dir, 'scenarios', 'test_unauthorized_balance_insufficient.yaml')
    run_tester(config=scenario_file, apiurl=API_URL, target=TARGET)
Exemplo n.º 8
0
 def test_canyantester_missing_parameters(self):
     with pytest.raises(FileNotFoundError):
         run_tester(config='/tmp/aaa.yaml')