def METHOD_NAME(self, factory, v3, exception):
    v3.side_effect = exception
    with pytest.raises(InvalidConfiguration):
        factory(UID, NAME, IMAGE, {"version": 3}, TEAMS, TAGS, DEPLOYMENT_ID, NAMESPACE, None, None)