Closed oberstet closed 2 years ago
added authenticator_realm and authenticator_role to the mock
authenticator_realm
authenticator_role
https://github.com/crossbario/crossbar/pull/1986/commits/1abb79d5b6ccd51fbc534a4319efeedde4928b44
fixes the test
(cpy39_1) (base) oberstet@intel-nuci7:~/scm/crossbario/crossbar$ pytest -sv crossbar/router/test/test_authorize.py ========================================================== test session starts ========================================================== platform linux -- Python 3.9.4, pytest-7.1.1, pluggy-0.13.1 -- /home/oberstet/cpy39_1/bin/python3 cachedir: .pytest_cache rootdir: /home/oberstet/scm/crossbario/crossbar, configfile: pytest.ini plugins: tap-3.3, twisted-1.13.4, cov-2.9.0, typeguard-2.13.3, requests-mock-1.6.0, web3-5.28.0, asyncio-0.16.0 collecting ... collected 11 items crossbar/router/test/test_authorize.py::TestDynamicAuth::test_authextra_anonymous PASSED crossbar/router/test/test_authorize.py::TestDynamicAuth::test_authextra_ticket PASSED crossbar/router/test/test_authorize.py::TestDynamicAuth::test_authextra_tls PASSED crossbar/router/test/test_authorize.py::TestDynamicAuth::test_authextra_wampcra PASSED crossbar/router/test/test_authorize.py::TestDynamicAuth::test_authextra_wampcryptosign PASSED crossbar/router/test/test_authorize.py::TestRouterRoleStaticAuth::test_ruleset_1 PASSED crossbar/router/test/test_authorize.py::TestRouterRoleStaticAuth::test_ruleset_2 PASSED crossbar/router/test/test_authorize.py::TestRouterRoleStaticAuth::test_ruleset_empty PASSED crossbar/router/test/test_authorize.py::TestRouterRoleStaticAuthWild::test_exact_before_wildcard PASSED crossbar/router/test/test_authorize.py::TestRouterRoleStaticAuthWild::test_prefix PASSED crossbar/router/test/test_authorize.py::TestRouterRoleStaticAuthWild::test_wildcard_before_prefix PASSED ========================================================== 11 passed in 0.26s =========================================================== (cpy39_1) (base) oberstet@intel-nuci7:~/scm/crossbario/crossbar$
added
authenticator_realm
andauthenticator_role
to the mockhttps://github.com/crossbario/crossbar/pull/1986/commits/1abb79d5b6ccd51fbc534a4319efeedde4928b44
fixes the test