Merge lp:~cprov/adt-cloud-worker/selftest into lp:adt-cloud-worker
Status: | Merged |
---|---|
Approved by: | Celso Providelo on 2015-04-29 |
Approved revision: | 44 |
Merged at revision: | 42 |
Proposed branch: | lp:~cprov/adt-cloud-worker/selftest |
Merge into: | lp:adt-cloud-worker |
Diff against target: |
123 lines (+90/-0) 4 files modified
README.rst (+22/-0) dep8/debian/tests/control (+3/-0) dep8/tests/__init__.py (+17/-0) dep8/tests/test_proxy.py (+48/-0) |
To merge this branch: | bzr merge lp:~cprov/adt-cloud-worker/selftest |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomi Richards (community) | Approve on 2015-04-29 | ||
Joe Talbott (community) | Approve on 2015-04-29 | ||
Paul Larson | 2015-04-28 | Approve on 2015-04-29 | |
Review via email:
|
Commit message
Adding basic DEP-8 tests for uci-nova, it's mainly intended to ensure feature consistency of uci-nova accross clouds.
Description of the change
Adding basic DEP-8 tests for uci-nova, it's mainly intended to ensure feature consistency of uci-nova accross clouds.
Joe Talbott (joetalbott) wrote : | # |
This looks good to me as well. I agree with Paul's suggestions as well but don't see them as blocking.
Celso Providelo (cprov) wrote : | # |
Paul, Joe,
Thanks for the review.
I've updated the README as suggested and proposed a new change for the test_proxy checks, actually check access we depend on in production. Since they are only 3 and tend to be gone once the sources get fixed, we can make the test reflect the exact conditions we expect in production, i.e. when the test fails we know what will be broken and can act accordingly.
- 43. By Celso Providelo on 2015-04-29
-
Extending dogfood proxy tests to reflect the exact access we depend on in production.
Please don't add more shell code that we need to maintain.
I agree that a selftest suite is a great thing to have, but I think writing it as a bash script is a bad idea. This could be trivially written as a python test suite, and would be easier to extend and maintain over time.
- 44. By Celso Providelo on 2015-04-29
-
Re-write the basic test suite in python ... because *simple* is not enough.
I think you could have gotten away without making dep8/tests/
Thanks for the python rewrite.
Celso Providelo (cprov) wrote : | # |
THomi,
Fine, python it is ... However, it carries a lot more test dependencies and specialties (allow-stderr) that were not a problem with the much simpler, main-stream and perfectly functional shell test suite.
This tendency of aiming for *bonus* points and twinkling stars, instead of getting things done on time, is what makes us kind of borderline mediocre ... We haven't reached the point where people start criticising our design choices and coding skills, simply because we have nothing to show :-/ I'd rather live with bad ideas that work than keep chasing tangential satisfaction on "perfect solutions" that do not serve their purpose.
That all said, enough ranting. Let's land the tests and use it to our benefit for validating other aspects of uci-nova.
Looks good as is. I had a few minor suggestions, but mostly just personal preference.