-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fixes Config/Revision update ordering. #407
Fixes Config/Revision update ordering. #407
Conversation
ec134b1
to
99cb5b3
Compare
@hmlanigan, looks like we have problems with the acceptance tests regardless to this PR. Need to discuss with you of how to fix them. |
@anvial, the plans in the qa steps should either create the model, or make it a data source if you run |
But I thought that I create a model but this resource definition in plan:
Where |
@anvial I'm speaking of the QA steps in the PR description, not the ACC test you've written for the resource_application_test.go file. |
Agreed, Now fixed in the QA steps description also, but it looks like it should be fixed in both places because of the chosen charm for the test: "github-runner". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA was good with revisions 88 and 95.
Please make the test changes and let's squash as many commits as we can? Looks like 2 commits are sufficient.
Lastly the QA steps listed in the PR description need updates to handle the model.
0561709
to
f5ed7ad
Compare
5bc2d27
to
1e7473a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note that a file has been duplicated and needs removal. Otherwise looks good.
c8fef5c
to
1a295f1
Compare
This PR puts Revision update before Config update in update plan function of the plugin. This will help to avoid issues that prevernt working with new config parames which are added in new charm revisions. Adds unit-test based on text/template. Moves GetStringFromTemplateWithData to utils package. Changes revision in unit-tests. Skips whole unit-test on LXD instead of skipping each step.
1a295f1
to
fa8703b
Compare
Description
This PR puts a Revision update before a Config update in the update plan function of the plugin. This will help to avoid issues that prevent working with new config parameters, which are added in new charm revisions.
Fixes:
#389
Type of change
Environment
Juju controller version:
3.3.1
Terraform version:
1.7.3
QA steps
Manual QA steps should be done to test this PR.
Apply plan:
Then update plan to