Commit 92bc56a
authored
Merge pull request #846 from juju/fix-local-charm-base-channel-discovery
#846
#### Description
`utils.get_local_charm_base()` was incorrectly using the `--channel` argument (the charm's channel) for discovering the channel part of the base. (we should stop using the word 'channel' for two different things).
This fixes that by taking out the incorrect part of the code.
Should fix #839
#### QA Steps
So a trivial way to reproduce the #839 is to deploy a local charm with a `--channel='stable'` argument. You may try to use one of the examples to validate this. Additionally an integration test is added (see below), so passing that should be enough. I also suggest getting a confirmation from [@gcalvinos](https://github.com/gcalvinos), just in case.
```
tox -e integration -- tests/integration/test_model.py::test_deploy_local_charm_channel
```
All CI tests need to pass. We might have a couple of time-outs from previously known CI test failures.4 files changed
Lines changed: 32 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
1685 | | - | |
1686 | 1685 | | |
1687 | 1686 | | |
1688 | 1687 | | |
1689 | 1688 | | |
1690 | | - | |
1691 | | - | |
| 1689 | + | |
1692 | 1690 | | |
1693 | 1691 | | |
1694 | 1692 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
| 332 | + | |
334 | 333 | | |
335 | 334 | | |
336 | 335 | | |
337 | 336 | | |
338 | | - | |
339 | | - | |
340 | 337 | | |
341 | | - | |
| 338 | + | |
342 | 339 | | |
343 | 340 | | |
344 | 341 | | |
345 | 342 | | |
346 | 343 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | 344 | | |
370 | | - | |
371 | | - | |
| 345 | + | |
| 346 | + | |
372 | 347 | | |
373 | 348 | | |
374 | 349 | | |
| |||
382 | 357 | | |
383 | 358 | | |
384 | 359 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
391 | 367 | | |
392 | 368 | | |
393 | 369 | | |
394 | 370 | | |
395 | 371 | | |
396 | | - | |
| 372 | + | |
397 | 373 | | |
398 | 374 | | |
399 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
152 | 164 | | |
153 | 165 | | |
154 | 166 | | |
| |||
181 | 193 | | |
182 | 194 | | |
183 | 195 | | |
184 | | - | |
| 196 | + | |
| 197 | + | |
185 | 198 | | |
186 | | - | |
| 199 | + | |
187 | 200 | | |
188 | 201 | | |
189 | 202 | | |
| |||
269 | 282 | | |
270 | 283 | | |
271 | 284 | | |
| 285 | + | |
272 | 286 | | |
273 | | - | |
| 287 | + | |
274 | 288 | | |
275 | | - | |
| 289 | + | |
276 | 290 | | |
277 | 291 | | |
278 | 292 | | |
| |||
0 commit comments