Code review comment for lp:~veebers/juju-ci-tools/model_migration_controller_cleanup

Revision history for this message
Aaron Bentley (abentley) wrote :

This test wants to know if the juju under test is defective. I am not sure that there is an advantage to testing a juju we know to be defective. Maybe we should just skip this test for juju 2.0.

If we do want to test 2.0, I think parsing the version is fine, and probably the best option.

A test already includes our expectations of how juju will behave. I don't think it's terrible for that test to include expectations of how different versions of juju behave.

I don't think having an empty class is much benefit. In general, our version classes allow us to achieve the same effect in two different ways (e.g. two different commandlines). This is not doing that.

If we did try to salvage the class-based approach, I would want there to be a difference between the classes. Perhaps they could have a member indicating capabilities, e.g. ModelClient2_0.MIGRATE_DESTROY_SOURCE = False; ModelClient2_1.MIGRATE_DESTROY_SOURCE = True

« Back to merge proposal