tests.tlstests.test_jwt_init

JWT init tests

Module Contents

Functions

empty_datadirs(nice_tmpdir, monkeypatch)

Create fresh datadirs and set the environments

test_tilaupalvelu_key()

Test that default env has copied tilauspalvelu key

test_empty_response(empty_datadirs)

Check tnat the checking functions return False

test_create(empty_datadirs)

Test keypair create

test_create_password(empty_datadirs, monkeypatch)

Test keypair create

test_rm_jwt_session(rm_jwt_client)

Test that we can use JWTs issued by RASENMAEHER itself

Attributes

LOGGER

LOGGER[source]
empty_datadirs(nice_tmpdir, monkeypatch)[source]

Create fresh datadirs and set the environments

Parameters:
  • nice_tmpdir (str)

  • monkeypatch (pytest.MonkeyPatch)

Return type:

Generator[Tuple[pathlib.Path, pathlib.Path], None, None]

test_tilaupalvelu_key()[source]

Test that default env has copied tilauspalvelu key

Return type:

None

test_empty_response(empty_datadirs)[source]

Check tnat the checking functions return False

Parameters:

empty_datadirs (Tuple[pathlib.Path, pathlib.Path])

Return type:

None

async test_create(empty_datadirs)[source]

Test keypair create

Parameters:

empty_datadirs (Tuple[pathlib.Path, pathlib.Path])

Return type:

None

async test_create_password(empty_datadirs, monkeypatch)[source]

Test keypair create

Parameters:
Return type:

None

async test_rm_jwt_session(rm_jwt_client)[source]

Test that we can use JWTs issued by RASENMAEHER itself

Parameters:

rm_jwt_client (async_asgi_testclient.TestClient)

Return type:

None