Skip to content

Commit

Permalink
Add complex bundles on mocked_plans
Browse files Browse the repository at this point in the history
- order apps by charm and application name to have always the same
  sequence
  • Loading branch information
gabrielcocenza committed Apr 23, 2024
1 parent 857ddaf commit f62eac1
Show file tree
Hide file tree
Showing 5 changed files with 8,134 additions and 43 deletions.
4 changes: 3 additions & 1 deletion cou/steps/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ async def _populate(cls, model: juju_utils.Model) -> list[OpenStackApplication]:
key=lambda app: UPGRADE_ORDER.index(app.charm),
)
# order by charm name to have a predictable upgrade sequence of other o7k charms.
other_o7k_apps_sorted_by_name = sorted(other_o7k_apps, key=lambda app: app.charm)
other_o7k_apps_sorted_by_name = sorted(
other_o7k_apps, key=lambda app: (app.charm, app.name)
)
return sorted_apps_to_upgrade_in_order + other_o7k_apps_sorted_by_name

def __str__(self) -> str:
Expand Down
37 changes: 0 additions & 37 deletions tests/mocked_plans/conftest.py

This file was deleted.

Loading

0 comments on commit f62eac1

Please sign in to comment.