Skip to content

Commit 2675af8

Browse files
jopemachineclaude
andcommitted
fix(BA-5650-H): align remaining test fixtures with renamed fields
- TerminatingSessionData uses ``main_access_key`` (was access_key) in test_terminate_sessions. - SessionData fixture in test_session_adapter uses ``owner_id`` and drops the dropped ``access_key`` field. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e3d6fdc commit 2675af8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/manager/api/adapters/test_session_adapter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _create_session_data(
3939
cluster_size=1,
4040
domain_name="default",
4141
group_id=uuid4(),
42-
user_uuid=uuid4(),
42+
owner_id=uuid4(),
4343
occupying_slots={},
4444
requested_slots={"cpu": Decimal("1"), "mem": Decimal("1073741824")},
4545
use_host_network=False,
@@ -49,7 +49,7 @@ def _create_session_data(
4949
num_queries=0,
5050
creation_id="test-creation-id",
5151
name=name,
52-
access_key=None,
52+
5353
scaling_group_name="default",
5454
target_sgroup_names=None,
5555
agent_ids=None,
@@ -123,7 +123,7 @@ def test_domain_and_user_fields(self) -> None:
123123
data = _create_session_data()
124124
node = SessionAdapter._session_data_to_node(data)
125125
assert node.domain_name == "default"
126-
assert node.user_id == data.user_uuid
126+
assert node.user_id == data.owner_id
127127
assert node.project_id == data.group_id
128128

129129
def test_network_host_network_false(self) -> None:

0 commit comments

Comments
 (0)