freeipa/ipatests/test_ipaserver
Alexander Bokovoy 91706690e0 wgi/plugins.py: ignore empty plugin directories
Dynamic plugin registry returns as a plugin any folder within the
plugins directory. Web UI then attempts to load for each plugin 'foo' a
JavaScript file named 'foo/foo.js'. The problem is that if 'foo/foo.js'
does not exist, Web UI breaks and it is impossible to recover until the
empty folder is removed or 'foo/foo.js' (even empty) is created at the
server side.

Check that 'foo/foo.js' actual exists when including a plugin into the
registry.

Test the registry generator by creating fake plugins and removing them
during the test.

Fixes: https://pagure.io/freeipa/issue/8567

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2020-11-06 16:38:37 -05:00
..
data ipa-otptoken-import: Make PBKDF2 refer to the pkcs5 namespace 2017-09-01 10:50:34 +02:00
test_install ipatests: Add tests for checking available memory 2020-09-14 09:17:33 +03:00
__init__.py pytest 3.x compatibility 2017-03-27 18:03:14 +02:00
httptest.py Py3: Replace six.moves imports 2018-10-05 12:06:19 +02:00
test_adtrust_mockup.py pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_changepw.py pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_dnssec.py ipapython: move dnssec, p11helper and secrets to ipaserver 2016-11-29 14:50:51 +01:00
test_i18n_messages.py Add tests for "i18n_messages" end point 2018-07-17 15:32:28 -04:00
test_ipap11helper.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_jsplugins.py wgi/plugins.py: ignore empty plugin directories 2020-11-06 16:38:37 -05:00
test_kadmin.py ipa-kdb: test kadmin.local getprincs command 2020-09-10 11:57:14 -04:00
test_ldap.py Silence W601 .has_key() is deprecated 2020-05-05 10:42:46 +02:00
test_migratepw.py pytest: Migrate xunit-style setups to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_otptoken_import.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_rpcserver.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_secrets.py pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_serverroles.py Use api.env.container_sysaccounts 2020-04-28 11:28:29 +02:00
test_topology_plugin.py pytest: Migrate xunit-style setups to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_version_comparison.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00