Merge lp:~indicator-applet-developers/unity8/indicator-power-autopilot-test into lp:unity8
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~indicator-applet-developers/unity8/indicator-power-autopilot-test |
| Merge into: | lp:unity8 |
| Diff against target: |
302 lines (+196/-9) 5 files modified
debian/control (+2/-0) tests/autopilot/unity8/indicators/__init__.py (+20/-0) tests/autopilot/unity8/indicators/tests/__init__.py (+20/-5) tests/autopilot/unity8/indicators/tests/test_indicator_power.py (+145/-0) tests/autopilot/unity8/indicators/tests/test_indicators.py (+9/-4) |
| To merge this branch: | bzr merge lp:~indicator-applet-developers/unity8/indicator-power-autopilot-test |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Albert Astals Cid (community) | Needs Fixing on 2015-02-04 | ||
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-01-29 | |
| Leo Arias (community) | Approve on 2015-01-22 | ||
| Thomi Richards (community) | Approve on 2015-01-22 | ||
| Christopher Lee (community) | 2015-01-21 | Needs Fixing on 2015-01-21 | |
|
Review via email:
|
|||
Commit Message
Add discharging battery autopilot test.
Description of the Change
This test simulates a discharging battery using a fake upower via python-dbusmock.
Offering for commentary with the UEQA team, charles wanting to absorb best practices for writing these autopilot tests.
Note that this requires a couple of related branches:
For a upower template tweak to enable signalling,
https:/
For an indicator-power which will listen on a special private bus for the fake upower:
https:/
NOTE that we're chasing an intermittent failure, may need some pitti advice about, hence WIP.
| Charles Kerr (charlesk) wrote : | # |
I've nibbled around the edges of these NFs and have fixed most of the little pieces, but it's past my bedtime so Allan or I will need to finish the revisions tomorrow.
Remaining TODO:
* device_
* FakeUPower as a Fixture
* moving the Indicator helper class to tests/autopilot
* GRID_UNIT_PX: is it needed? if so, why?
| Allan LeSage (allanlesage) wrote : | # |
Filed lp:1413390 for the GRID_UNIT_PX issue, will tag in source, also here's a relevant IRC snippet with elopio: http://
| Allan LeSage (allanlesage) wrote : | # |
Corrected _get_device_
I see elopio's and veebers' questions about using a CPO for Indicator object--this isn't strictly CPO-able as it represents not the appearance of the Indicator but its D-Bus state. Please bring questions on this, resolved?
| Leo Arias (elopio) wrote : | # |
Some comments inline.
And one item for discussion:
<elopio> veebers: thomi: alesage: why are we putting the custom proxy object in a module named helpers, intead of putting them in the module named indicators?
<veebers> alesage, elopio: sounds good to me. I would imagine the apps have a similar layout for precedent?
<elopio> veebers: it's a mess with apps. But that's what I am aiming for. We will have the browser CPO in webbrowser.
<elopio> instead of webbrowser.
<veebers> ack, for the CPO no need to have it in helpers
<alesage> sounds decided, I'll make that change veebers, elopio
Thank you! I specially like the idea of starting the service with a different dbus address.
| Allan LeSage (allanlesage) wrote : | # |
Question in comments. . . .
| Charles Kerr (charlesk) wrote : | # |
Responses to Leo inline
| Leo Arias (elopio) wrote : | # |
I replied to some replies. Will look again at the new version.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1568
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Charles, Allan, you good with this?
- 1569. By Allan LeSage on 2015-01-22
-
Add python3-dbusmock dependency.
| Leo Arias (elopio) wrote : | # |
Please remove the unused
56 + def icon_matches(self, icon_name):
These must be reverted to work with python2. We are currently installing unity8-autopilot also on the py2 path:
78 + super().setUp()
149 + super().setUp()
199 + super().setUp()
- 1570. By Allan LeSage on 2015-01-22
-
Move PowerIndicator, flake8 correction, restore py2 supers, broken test fix.
- 1571. By Allan LeSage on 2015-01-22
-
Remove icon_matches.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1570
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1571
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1572. By Allan LeSage on 2015-01-23
-
Correct python-dbusmock build-deps.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1572
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1573. By Allan LeSage on 2015-01-23
-
Relocate python*-dbusmock dependencies.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1573
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1573
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in tests/autopilot
Text conflict in tests/autopilot
Text conflict in tests/autopilot
3 conflicts encountered.
- 1574. By Allan LeSage on 2015-01-27
-
Merge trunk, resolving conflicts.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1574
http://
Executed test runs:
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1574
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1574
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Hi guys, can you please add the "MP Submission Checklist Template" from https:/
| Allan LeSage (allanlesage) wrote : | # |
This might sit for a bit, need to investigate a persistent Jenkins failure, will ping you Albert.
| Albert Astals Cid (aacid) wrote : | # |
I'll put it as Work In Progress to remove it from my dashboard of things to review.
Unmerged revisions
- 1574. By Allan LeSage on 2015-01-27
-
Merge trunk, resolving conflicts.
- 1573. By Allan LeSage on 2015-01-23
-
Relocate python*-dbusmock dependencies.
- 1572. By Allan LeSage on 2015-01-23
-
Correct python-dbusmock build-deps.
- 1571. By Allan LeSage on 2015-01-22
-
Remove icon_matches.
- 1570. By Allan LeSage on 2015-01-22
-
Move PowerIndicator, flake8 correction, restore py2 supers, broken test fix.
- 1569. By Allan LeSage on 2015-01-22
-
Add python3-dbusmock dependency.
- 1568. By Charles Kerr on 2015-01-22
-
in __init__, make multiline import follow pep 328
- 1567. By Charles Kerr on 2015-01-22
-
in IndicatorPowerT
estCase. setUp() , remove the self.main_ window. wait_select_ single( ), since it's also encapsulated in the Indicator helper class - 1566. By Charles Kerr on 2015-01-22
-
in IndicatorPowerT
estCase. setUp() , don't create a temporary list for service_test_args. - 1565. By Charles Kerr on 2015-01-22
-
in MockUPower.setUp(), clean up the OSError exception's message

Looking good so far. Some questions and things that need fixing up.