Merge lp:~mterry/snappy/selftest-reboot-notice into lp:~snappy-dev/snappy/snappy-moved-to-github
| Status: | Rejected |
|---|---|
| Rejected by: | Leo Arias on 2015-07-24 |
| Proposed branch: | lp:~mterry/snappy/selftest-reboot-notice |
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
| Diff against target: |
29 lines (+25/-0) 1 file modified
integration-tests/run-in-image/tests/12_test_reboot_notice (+25/-0) |
| To merge this branch: | bzr merge lp:~mterry/snappy/selftest-reboot-notice |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Leo Arias | 2015-06-17 | Needs Fixing on 2015-07-24 | |
|
Review via email:
|
|||
Commit Message
Add a test to make sure we print reboot notices after update and rollback, if needed.
Description of the Change
Add a test to make sure we print reboot notices after update and rollback, if needed.
A while back, I added a reboot notification to 'snappy rollback' [1]. It didn't have any tests though. It seemed like a better candidate for integration tests than unit tests, but selftests weren't integrated at the time.
I've been sitting on this test and realized I should propose it! So here it is.
[1] https:/
| Sergio Schvezov (sergiusens) wrote : | # |
| Leo Arias (elopio) wrote : | # |
I've finally been able to test it. I'm ok with this as is because the test script controls how the kvm is provisioned and it has nothing sideloaded. Once we start making the tests without fakes, this one needs to be part of the suite that sets up an available update. And maybe we should add another to the suite with that prepares a sideloaded image.
****** Running ./tests/
current version: 84
available version: 84
Rebooting testbed...
[...]
****** Resuming ./tests/
****** Running ./tests/
[...]
echo "All good, what could possibly go wrong"
All good, what could possibly go wrong
| Snappy Tarmac (snappydevtarmac) wrote : | # |
Attempt to merge into lp:snappy failed due to conflicts:
missing parent in _integration-
unversioned parent in _integration-
missing parent in _integration-
unversioned parent in _integration-
| Leo Arias (elopio) wrote : | # |
stop, hammertime!
this needs to be translated into go, we no longer have the shell test suite. It's esasy, I'll get to it tomorrow.
| Leo Arias (elopio) wrote : | # |
Rejecting in favor of this one: https:/
Unmerged revisions
- 513. By Michael Terry on 2015-06-17
-
Add an integration test to make sure we print reboot notices


this looks good, but would need a conditional skip if the "device" (kernel/os) has been sideloaded.