Merge lp:~fgimenez/snappy/go-functional-tests into lp:~snappy-dev/snappy/snappy-moved-to-github
| Status: | Merged |
|---|---|
| Approved by: | Leo Arias on 2015-06-25 |
| Approved revision: | 521 |
| Merged at revision: | 521 |
| Proposed branch: | lp:~fgimenez/snappy/go-functional-tests |
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
| Diff against target: |
412 lines (+217/-85) 10 files modified
_integration-tests/README (+7/-0) _integration-tests/main.go (+113/-0) _integration-tests/snappy-selftest (+7/-6) _integration-tests/tests/10_test_info_has_stuff (+0/-1) _integration-tests/tests/snappy_test.go (+83/-0) debian/integration-tests/control (+6/-0) integration-tests/run-in-image/debian/tests/control (+0/-2) integration-tests/run-in-image/tests/04_test_install_hello (+0/-7) integration-tests/selftest (+0/-68) run-checks (+1/-1) |
| To merge this branch: | bzr merge lp:~fgimenez/snappy/go-functional-tests |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Leo Arias | 2015-06-11 | Approve on 2015-06-25 | |
| John Lenton | Approve on 2015-06-25 | ||
| Michael Vogt | 2015-06-24 | Pending | |
|
Review via email:
|
|||
Commit Message
Wrapper for go-based dep8 tests and first functional test.
Description of the Change
Wrapper for go-based dep8 tests and first functional test
| Federico Gimenez (fgimenez) wrote : | # |
| Leo Arias (elopio) wrote : | # |
> Ok, now it doesn't check the install output, just the error. You mentioned
> checking an error output, how could this be done?
I think what Sergio meant was that we should use a non-fatal assertion, so the tests continues even if the output of the install command is not what we expect. We can do this by just changing c.Assert by c.Check. I'll propose this in a new branch to be merged with yours.
| Leo Arias (elopio) wrote : | # |
After thinking it twice, instead of using a non-fatal assertion, I prefer to split the test in two. I'm testing the branch.
| Leo Arias (elopio) wrote : | # |
Leaving my approval here for the record. Somebody else should +1. Adding mvo as reviewer, because he did the original selftest. We also might need a +1 from an ubuntu core dev; luckily we have plenty on the team :)
| John Lenton (chipaca) wrote : | # |
several nits / stylistic questions. Only thing really needing fixing is the quoting of MYDIR.
| Federico Gimenez (fgimenez) wrote : | # |
@Chipaca thanks :) it should be fixed now, i've taken the opportunity to quote other occurrence of $MYDIR in the shell script.
Cheers!
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~fgimenez/snappy/go-functional-tests into lp:snappy failed. Below is the output from the failed tests.
Checking docs
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update code.google.
update github.
code.google.
update github.
github.
update github.
github.
update github.
github.
update gopkg.in/check.v1 failed; trying to fetch newer version
github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5
gopkg.in/yaml.v2 now at 49c95bdc2184325
Building
Running tests from /home/tarmac/
=== RUN Test
OK: 16 passed
--- PASS: Test (0.39 seconds)
PASS
coverage: 74.3% of statements
ok launchpad.
=== RUN Test
OK: 6 passed
--- PASS: Test (0.01 seconds)
PASS
coverage: 12.9% of statements
ok launchpad.
=== RUN Test
OK: 24 passed
--- PASS: Test (0.10 seconds)
PASS
coverage: 100.0% of statements
ok launchpad.
=== RUN Test
OK: 50 passed
--- PASS: Test (0.49 seconds)
PASS
coverage: 80.9% of statements
ok launchpad.
=== RUN Test
OK: 6 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 93.5% of statements
ok launchpad.
=== RUN Test
OK: 4 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 100.0% of statements
ok launchpad.
=== RUN Test
OK: 36 passed
--- PASS: Test (0.19 seconds)
PASS
coverage: 81.5% of statements
ok launchpad.
=== RUN Test
OK: 3 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 100.0% of statements
ok launchpad.
=== RUN Test
OK: 12 passed
--- PASS: Test (0.11 seconds)
PASS
coverage: 94.3% of statements
ok launchpad.
=== RUN Test
OK: 5 passed
--- PASS: Test (0.20 seconds)
PASS
coverage: 91.1% of statements
ok launchpad.
=== RUN Test
OK: 4 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 50.0% of statements
ok launchpad.
=== RUN Test
OK: 9 passed
--- PASS: Test (0.01 seconds)
PASS
coverage: 96.4% of statements
ok launchpad.net/sn...


@Sergio thanks a lot for your review!
Ok, now it doesn't check the install output, just the error. You mentioned checking an error output, how could this be done?
Now it's still checking the output from the binary, maybe this can be removed for the same reason, as we are checking for the error response here too?
Cheers!