module GdsApi::TestHelpers::LocalLinksManager

def local_links_manager_request_with_missing_parameters(authority_slug, lgsl)

def local_links_manager_request_with_missing_parameters(authority_slug, lgsl)
  # convert nil to an empty string, otherwise query param is not expressed correctly
  params = { authority_slug: authority_slug || "", lgsl: lgsl || "" }
  stub_request(:get, "#{LOCAL_LINKS_MANAGER_ENDPOINT}/api/link")
    .with(query: params)
    .to_return(body: {}.to_json, status: 400)
end