Merge lp:~veebers/juju-ci-tools/migration-add-migrate-back-to-original into lp:juju-ci-tools

Proposed by Christopher Lee
Status: Needs review
Proposed branch: lp:~veebers/juju-ci-tools/migration-add-migrate-back-to-original
Merge into: lp:juju-ci-tools
Prerequisite: lp:~veebers/juju-ci-tools/migration-check-all-model-names
Diff against target: 26 lines (+10/-0)
1 file modified
assess_model_migration.py (+10/-0)
To merge this branch: bzr merge lp:~veebers/juju-ci-tools/migration-add-migrate-back-to-original
Reviewer Review Type Date Requested Status
Curtis Hovey (community) code Approve
Review via email: mp+313333@code.launchpad.net

Description of the change

Add extra test to migrate back to the original controller.

To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) wrote :

Thank you.

review: Approve (code)

Unmerged revisions

1815. By Christopher Lee

Merged migration-superuser-models into migration-add-migrate-back.

1814. By Christopher Lee

Add migrating back to source controller.

1813. By Christopher Lee

Merged migration-log-check-fix into migration-superuser-models.

1812. By Christopher Lee

Fix model name checks.

1811. By Christopher Lee

Get all model names from controller to check against.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'assess_model_migration.py'
2--- assess_model_migration.py 2016-12-15 09:03:37 +0000
3+++ assess_model_migration.py 2016-12-15 09:03:37 +0000
4@@ -234,6 +234,10 @@
5 - Migrate that model to the other environment
6 - Ensure it's operating as expected
7 - Add a new unit to the application to ensure the model is functional
8+ - Migrate the model back to the original environment
9+ - Note: Test for lp:1607457, lp:1641824
10+ - Ensure it's operating as expected
11+ - Add a new unit to the application to ensure the model is functional
12
13 """
14 resource_contents = get_random_string()
15@@ -244,6 +248,12 @@
16 assert_model_migrated_successfully(
17 migration_target_client, application, resource_contents)
18
19+ log.info('Migrating back to original controller.')
20+ migrate_back_client = migrate_model_to_controller(
21+ migration_target_client, source_client)
22+ assert_model_migrated_successfully(
23+ migrate_back_client, application, resource_contents)
24+
25 migration_target_client.remove_service(application)
26 log.info('SUCCESS: resources migrated')
27

Subscribers

People subscribed via source and target branches