File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src/simcore_service_catalog/service Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,8 @@ async def _find_previous_compatible_release(
153153 for release in latest_releases :
154154 # COMPATIBILITY RULE:
155155 # - a patch release is compatible with the previous patch release
156+
157+ # FIXME: not all compatible releases!!!
156158 if is_patch_release (new_version , release .version ):
157159 return release
158160
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def test_reduce_access_rights():
8686 }
8787
8888
89- async def test_auto_upgrade_policy (
89+ async def test_service_upgrade_metadata_inheritance (
9090 sqlalchemy_async_engine : AsyncEngine ,
9191 user : dict [str , Any ],
9292 user_groups_ids : list [GroupID ],
@@ -98,6 +98,8 @@ async def test_auto_upgrade_policy(
9898):
9999 everyone_gid , user_gid , team_gid = user_groups_ids
100100
101+ assert user_gid == user ["primary_gid" ]
102+
101103 # Avoids calls to director API
102104 mocker .patch .object (
103105 simcore_service_catalog .service .access_rights ,
@@ -223,8 +225,11 @@ async def test_auto_upgrade_policy(
223225 service_access_rights = reduce_access_rights (service_access_rights )
224226
225227 assert len (service_access_rights ) == 4
226- assert {a .gid for a in service_access_rights } == {team_gid , owner_gid }
228+ assert {a .gid for a in service_access_rights } == {
229+ team_gid ,
230+ owner_gid ,
231+ }, "last version was exposed to a team"
227232 assert {a .product_name for a in service_access_rights } == {
228233 target_product ,
229234 other_product ,
230- }
235+ }, "last version was exposed to two products"
You canāt perform that action at this time.
0 commit comments