Commit Graph

21 Commits

Author SHA1 Message Date
Pierre Ossman a4d6cc5588 Fix redis unit tests when redis is missing
This was broken since c00cfc73, which changed how redis was imported.
2026-02-11 17:10:01 +01:00
Pierre Ossman bdf1ebf24e Merge branch 'flake8' of github.com:kajinamit/websockify 2025-07-03 16:13:08 +02:00
Takashi Kajinami c00cfc735a Avoid nested import
... to get rid of F401 error by flake8.
2025-07-03 23:01:44 +09:00
Takashi Kajinami 4aa05c7499 Fix indentations
... which are now complained by flake8.
2025-07-03 23:01:44 +09:00
Alexander Zeijlon 22eaccdc83 Fix iterating over files in dir with pathlib
PosixPath-objects aren't iterable and we need to call the
iterdir()-method if we want to loop over files in the current dir-Path

Closes #612
2025-07-01 14:37:14 +02:00
Takashi Kajinami 9140ab7a7d Fix flake8 errors related to whitespace 2025-06-24 21:27:25 +09:00
Takashi Kajinami 9e1c731089 Fix flake8 errors related to blank lines 2025-06-24 21:27:24 +09:00
Dmitry Kozlov 008a13029f migrate TokenPlugins from os.path to pathlib to ensure all files are closed 2025-04-28 15:18:30 +03:00
Insaf Nureev 0af3404ec9 Add namespace value to TokenRedis source 2024-08-22 17:51:56 +03:00
Insaf Nureev 5989d31ebf Add namespace value to TokenRedis source 2024-08-08 13:05:45 +03:00
Pierre Ossman bccf1dd258 Patch redis module in tests
Make sure the tests can be run even if redis isn't installed.
2024-02-08 09:43:55 +01:00
Javier Cacheiro 3d2e93aeb0 Allow empty options in redis token source string when using default values 2023-01-19 17:19:30 +01:00
Javier Cacheiro e23d4e337c Token Redis: Support both json and plain text tokens 2023-01-19 17:19:27 +01:00
Javier Cacheiro 8121a5265a Token Redis source: add optional redis port, redis database and redis password 2023-01-19 17:17:07 +01:00
Javier Cacheiro 0f17500348 Support for jwcrypto>=1.3 2022-05-25 12:40:29 +02:00
Javier Cacheiro d5e8d709d7 Add tests for TokenRedis 2022-04-12 10:58:42 +02:00
Pierre Ossman dc345815c0 Use RSA-OAEP instead of RSA1_5 for jwt tests
The latest version of jwcrypto has disabled RSA1_5 by default, making
the tests fail.
2021-07-23 09:38:58 +02:00
Pierre Ossman eca301c05b Fix patching of open() for Python 3.4
It doesn't handle builtins automatically, so follow the recommendations
from that time.
2021-05-03 14:34:07 +02:00
Pierre Ossman b9b269c73f Add unit test for token file with tab 2021-04-16 13:02:07 +02:00
Pierre Ossman 100a776409 Add unit tests for ReadOnlyTokenFile 2021-04-16 12:59:17 +02:00
Pierre Ossman 984dcc62d3 Move JWT token plugins tests to separate file
Let's try to match the test units with the modules we have.
2021-04-16 11:27:56 +02:00