Commit 84e4a2c
authored
Merge pull request #742 from cderici/revise-local-refresh
#742
#### Description
This change revises the `local_refresh()` (i.e. `application.upgrade_charm()` with a local charm) to use the `app_facade.GetCharmURLOrigin()` to get the origin of the currently running application charm, instead of trying to pass `channel` to the `SetCharm` like before.
We already implemented this when revising `upgrade_charm` in #729, but the upgrade local was missed (we talked about it but I forgot to include it).
This should fix the `tests/integration/test_application.py::test_upgrade_local_charm` that's currently failing in the CI runs.
#### QA Steps
The integration test mentioned above is revised a little bit, so it should pass. QA with different types and shapes of local charms would be appreciated.
```
tox -e integration -- tests/integration/test_application.py::test_upgrade_local_charm
```3 files changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | 636 | | |
641 | 637 | | |
642 | 638 | | |
| |||
659 | 655 | | |
660 | 656 | | |
661 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
662 | 663 | | |
663 | 664 | | |
664 | 665 | | |
| |||
788 | 789 | | |
789 | 790 | | |
790 | 791 | | |
791 | | - | |
| 792 | + | |
| 793 | + | |
792 | 794 | | |
793 | 795 | | |
794 | 796 | | |
| |||
831 | 833 | | |
832 | 834 | | |
833 | 835 | | |
834 | | - | |
| 836 | + | |
835 | 837 | | |
836 | 838 | | |
837 | 839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
| 253 | + | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| |||
0 commit comments