Merge lp://staging/~cprov/adt-cloud-worker/selftest into lp://staging/adt-cloud-worker

Proposed by Celso Providelo
Status: Merged
Approved by: Celso Providelo
Approved revision: 44
Merged at revision: 42
Proposed branch: lp://staging/~cprov/adt-cloud-worker/selftest
Merge into: lp://staging/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://staging/~cprov/adt-cloud-worker/selftest
Reviewer Review Type Date Requested Status
Thomi Richards (community) Approve
Joe Talbott (community) Approve
Paul Larson Approve
Review via email: mp+257707@code.staging.launchpad.net

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.

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

Looks good as is. I had a few minor suggestions, but mostly just personal preference.

review: Approve
Revision history for this message
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.

review: Approve
Revision history for this message
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

Extending dogfood proxy tests to reflect the exact access we depend on in production.

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

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.

review: Needs Fixing
44. By Celso Providelo

Re-write the basic test suite in python ... because *simple* is not enough.

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

I think you could have gotten away without making dep8/tests/__init__.py - but there's nothing wrong with it either.

Thanks for the python rewrite.

review: Approve
Revision history for this message
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.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches