Skip to content

Commit

Permalink
fixup! WIP: Refactor the code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
hoh committed Oct 11, 2023
1 parent e99907c commit 46ded85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/supervisor/test_jwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@pytest.fixture
def valid_jwk_headers(mocker):
mocker.patch(
"orchestrator.views.operator.is_token_still_valid", lambda timestamp: True
"aleph.vm.orchestrator.views.operator.is_token_still_valid", lambda timestamp: True
)
return {
"X-SignedPubKey": '{"payload":"7b227075626b6579223a7b22616c67223a224553323536222c22637276223a22502d323536222c22657874223a747275652c226b65795f6f7073223a5b22766572696679225d2c226b7479223a224543222c2278223a224b65763844614d7356454673365a6b4679525a4272796344564138566a334f656e49756f34743561374634222c2279223a2279597343556d715978654767673643743736794f47525873545867446444795234644f5639514c6f6b6477227d2c22616c67223a224543445341222c22646f6d61696e223a226c6f63616c686f7374222c2261646472657373223a22307833343932346566393435623933316431653932393337353535366636396365326537666535646363222c2265787069726573223a313638393337353132342e3532317d","signature":"0x58e1498a6c4f88ac1982e7147ff49405ffe1b9633e048bb74cf741abb05ce0b63bb406f3079f641ae89f597654ecd2a704d37ffbf86a28e462140033cc0eedcb1c"}',
Expand Down Expand Up @@ -45,7 +45,7 @@ async def test_invalid_signature(valid_jwk_headers: Dict[str, Any], mocker):
@pytest.mark.asyncio
async def test_expired_token(valid_jwk_headers: Dict[str, Any], mocker):
mocker.patch(
"orchestrator.views.operator.is_token_still_valid", lambda timestamp: False
"aleph.vm.orchestrator.views.operator.is_token_still_valid", lambda timestamp: False
)
request = mocker.AsyncMock()
request.headers = valid_jwk_headers
Expand Down

0 comments on commit 46ded85

Please sign in to comment.