Closed Bug 984014 Opened 11 years ago Closed 11 years ago

Telemetry experiments: test update mechanism

Categories

(Firefox Health Report Graveyard :: Client: Desktop, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: gfritzsche, Assigned: gfritzsche)

References

Details

Attachments

(1 file)

Add test coverage for updating to test_api.js from bug 974009 or add new test with similar pattern. * add e.g. browser/experiments/test/experiment-1a.xpi * fetch manifest that provides experiment-1.xpi * trigger experiment-1 activation * fetch manifest with experiment-1a.xpi * check that experiment-1a.xpi is now active (e.g. changed name or description)
Assignee: nobody → georg.fritzsche
Status: NEW → ASSIGNED
Attachment #8392194 - Flags: review?(felipc)
Are we going to use this bug or another to cover the other cases where a manifest is updated? In particular: * check that "disabled" force-kills an experiment * check that "frozen" *doesn't* force-kill a runnin experiment but does prevent it from starting * check that removing the experiment from the manifest completely doesn't force-kill the experiment but the current conditions still apply
Flags: needinfo?(georg.fritzsche)
Blocks: 984387
(In reply to Benjamin Smedberg [:bsmedberg] from comment #2) > Are we going to use this bug or another to cover the other cases where a > manifest is updated? Filed bug 984387.
Flags: needinfo?(georg.fritzsche)
Comment on attachment 8392194 [details] [diff] [review] Test updating active experiment. Review of attachment 8392194 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/experiments/test/xpcshell/test_api.js @@ +724,5 @@ > + list = yield experiments.getExperiments(); > + Assert.equal(list.length, 1, "Experiment list should have 1 entry now."); > + Assert.equal(list[0].id, EXPERIMENT1_ID, "Experiment 1 should be the sole entry."); > + Assert.equal(list[0].active, true, "Experiment 1 should be active."); > + Assert.equal(list[0].name, "Test experiment 1", "Experiments name should match."); we should probably have the strings "Test experiment 1" and "Test experiment 1.1" (below) as consts together with EXPERIMENT1A_XPI_NAME et al.
Attachment #8392194 - Flags: review?(felipc) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 31
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: