Example #1
0
def test_verify_target_settings_missing_docker_setting(target_settings):
    target_settings["docker_settings"].pop("umb_urls")
    with pytest.raises(
            exceptions.InvalidTargetSettings,
            match="'umb_urls' must be present in the docker settings.*",
    ):
        iib_operations.verify_target_settings(target_settings)
Example #2
0
def test_verify_target_settings_success(target_settings):
    iib_operations.verify_target_settings(target_settings)
Example #3
0
def test_verify_target_settings_overwrite_index_mismatch(target_settings):
    target_settings.pop("iib_overwrite_from_index_token")
    with pytest.raises(exceptions.InvalidTargetSettings,
                       match="Either both or neither.*"):
        iib_operations.verify_target_settings(target_settings)
Example #4
0
def test_verify_target_settings_missing_setting(target_settings):
    target_settings.pop("quay_user")
    with pytest.raises(exceptions.InvalidTargetSettings,
                       match="'quay_user' must be present.*"):
        iib_operations.verify_target_settings(target_settings)