switch to external plugins

This commit is contained in:
Nick Sweeting
2026-03-15 03:45:51 -07:00
parent 07dc880d0b
commit ecb1764590
256 changed files with 516 additions and 31272 deletions

View File

@@ -63,7 +63,7 @@ class TestLDAPConfig(unittest.TestCase):
config = LDAPConfig(
LDAP_ENABLED=True,
LDAP_SERVER_URI="ldap://localhost:389",
LDAP_SERVER_URI="ldap://ldap-test.localhost:389",
LDAP_BIND_DN="cn=admin,dc=example,dc=com",
LDAP_BIND_PASSWORD="password",
LDAP_USER_BASE="ou=users,dc=example,dc=com",
@@ -172,7 +172,7 @@ class TestArchiveBoxWithLDAP(unittest.TestCase):
env={
**os.environ,
'LDAP_ENABLED': 'False',
'LDAP_SERVER_URI': 'ldap://localhost:389',
'LDAP_SERVER_URI': 'ldap://ldap-test.localhost:389',
}
)

View File

@@ -468,7 +468,7 @@ class TestPluginMetadata(unittest.TestCase):
def test_plugin_name_added(self):
"""run_hook() should add plugin name to records."""
# Simulate what run_hook() does
script = Path('/archivebox/plugins/wget/on_Snapshot__50_wget.py')
script = Path('/abx_plugins/plugins/wget/on_Snapshot__50_wget.py')
plugin_name = script.parent.name
record = {'type': 'ArchiveResult', 'status': 'succeeded'}