Esempio n. 1
0
def test_config_bad_service_conf_path():
    with pytest.raises(BadConfigurationPathError):
        DasConfig._get_service_value(
            json.loads(TEST_VCAP_SERVICES),
            'requests-store/blabla')
Esempio n. 2
0
def test_config_bad_service_conf_path():
    with pytest.raises(BadConfigurationPathError):
        DasConfig._get_service_value(json.loads(TEST_VCAP_SERVICES),
                                     'requests-store/blabla')
Esempio n. 3
0
def test_config_bad_service():
    with pytest.raises(NoServiceConfigurationError):
        DasConfig._get_service_value(
            json.loads(TEST_VCAP_SERVICES),
            'nonexistent-service/blabla')
Esempio n. 4
0
def test_config_bad_service():
    with pytest.raises(NoServiceConfigurationError):
        DasConfig._get_service_value(json.loads(TEST_VCAP_SERVICES),
                                     'nonexistent-service/blabla')