Bug 1513854 - Read Normandy recipes from Remote Settings on Nightly r=mythmon

Read Normandy recipes from Remote Settings on Nightly

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mathieu Leplatre 2019-05-02 13:19:40 +00:00
Родитель 0684e256c4
Коммит 358c626f9f
3 изменённых файлов: 25 добавлений и 4 удалений

Просмотреть файл

@ -7,4 +7,4 @@ restart-required = false
type = "boolean"
bug-numbers = [1519276]
is-public = true
default-value = false
default-value = true

Просмотреть файл

@ -6,11 +6,22 @@ Shield Recipe Client
Normandy (aka the Shield Recipe Client) is a targeted change control
system, allowing small changes to be made within a release of Firefox,
such as studies. It downloads recipes and actions from the `recipe
server`_, verifies their cryptographic signatures, and then executes
them.
such as studies.
It downloads recipes and actions from :ref:`Remote Settings <services/remotesettings>`
and then executes them.
.. note::
Originally, the recipes were fetched from the `recipe server`_, but in `Bug 1513854`_
the source was changed to *Remote Settings*. The cryptographic signatures are verified
at the *Remote Settings* level (integrity) and at the *Normandy* level
(authenticity of publisher).
The source can still be controlled by :ref:`Feature Gates <components/featuregates>`.
.. _recipe server: https://github.com/mozilla/normandy/
.. _Bug 1513854: https://bugzilla.mozilla.org/show_bug.cgi?id=1513854
.. toctree::
:maxdepth: 1

Просмотреть файл

@ -128,6 +128,11 @@ decorate_task(
);
decorate_task(
withPrefEnv({
set: [
["features.normandy-remote-settings.enabled", false],
],
}),
withStub(Uptake, "reportRunner"),
withStub(NormandyApi, "fetchRecipes"),
withStub(ActionsManager.prototype, "runRecipe"),
@ -258,6 +263,11 @@ decorate_task(
);
decorate_task(
withPrefEnv({
set: [
["features.normandy-remote-settings.enabled", false],
],
}),
withMockNormandyApi,
async function testRunFetchFail(mockApi) {
const reportRunner = sinon.stub(Uptake, "reportRunner");