gecko-dev/toolkit/components/normandy/test/unit
Valentin Gosu 6457cf92c8 Bug 1517025 - Use mock API server so fetchSignedObjects doesn't fail because of BAD URL r=Gijs
We now disallow the % sign in the hostname of a URL.
If the app.normandy.api_url pref isn't set explicitly, it'll remain the default set in xpcshell/user.js: https://%(server)s/selfsupport-dummy/. As you can see, this one has a % sign in it; and the test will fail.
Otherwise, the error we catch is not a NormandyApi.InvalidSignatureError, but NS_ERROR_MALFORMED_URI.

Differential Revision: https://phabricator.services.mozilla.com/D16695

--HG--
extra : moz-landing-system : lando
2019-02-11 21:50:56 +00:00
..
invalid_recipe_signature_api
mock_api
.eslintrc.js
echo_server.sjs
head_xpc.js
query_server.sjs
test_addon_unenroll.js
test_NormandyApi.js
test_SandboxManager.js
utils.js
xpcshell.ini