Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration Test for CMR Consumer Migration #11155

Merged
merged 2 commits into from Jan 29, 2020

Conversation

manadart
Copy link
Member

Checklist

  • Checked if it requires a pylibjuju change?
  • Added integration tests for the PR?
  • Added or updated doc.go related to packages changed?
  • Do comments answer the question of why design decisions were made?

Description of change

Adds a new integration test to verify migration of a model with consumers of a CMR offered from another controller.

QA steps

cd tests && ./main.sh model

Documentation changes

None.

Bug reference

N/A

@manadart
Copy link
Member Author

The following additional wait is to ensure that the consuming relation
is setup before attempting to migrate it. If you try and do it too
quickly then the migration will fail.

We could put a sleep in here, but actually it's better to test the full
flow of communication as that will be inherently much quicker in the
long run, with less failure cases.

The only outstanding issue now is that if this does fail, then
destroying a controller fails because there are still offers in
existence.

This causes dangling jujus in the testing infrastructure. I'll solve
that in another PR.
@SimonRichardson
Copy link
Member

!!build!!

@SimonRichardson SimonRichardson marked this pull request as ready for review January 29, 2020 10:10
@SimonRichardson SimonRichardson changed the title [WIP] Integration Test for CMR Consumer Migration Integration Test for CMR Consumer Migration Jan 29, 2020
Copy link
Member

@SimonRichardson SimonRichardson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the code and fixed any issue with not waiting.

@SimonRichardson
Copy link
Member

$$merge$$

@jujubot jujubot merged commit 0c977af into juju:develop Jan 29, 2020
@SimonRichardson SimonRichardson deleted the cmr-consumer-migration-test branch January 29, 2020 11:44
@SimonRichardson SimonRichardson restored the cmr-consumer-migration-test branch January 30, 2020 15:54
This was referenced Jan 30, 2020
@manadart manadart deleted the cmr-consumer-migration-test branch October 20, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants