Commit Graph

18 Commits

Author SHA1 Message Date
Rubén D
b640b6d695 chore(refactor): LDAP auth refactoring.
- Decouple from ldap_* native functions
- Use Laminas/Ldap library
- Use enum for interface constants
- Move LDAP interfaces to domain
- Simplify LdapActions API

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2023-06-03 21:40:20 +02:00
Rubén D
ffb0b0f1ad ci(tests): More exclusions
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2023-05-21 17:27:44 +02:00
Rubén D
6467b9f801 ci(tests): Exclude files from PHPUnit
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2023-05-21 17:21:26 +02:00
Rubén D
dfd4fd0671 ci(tests): Migrate PHPUnit configuration
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2023-05-21 13:01:43 +02:00
Rubén D
3cde9c1e1e ci: Don't stop on failure.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-12-04 21:34:30 +01:00
Rubén D
fb954809e6 chore: Run only unitary tests by using @group annotation
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-12-04 10:42:46 +01:00
Rubén D
809186dbe0 ci: Check only PHP 8
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-11-19 07:15:14 +01:00
Rubén D
2ccce01acb chore: Fix unitary tests
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-11-06 17:34:32 +01:00
Rubén D
96b643c6f5 ci: Run core and unitary tests separately and IoC dependency resolution fix.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-20 06:23:28 +02:00
Rubén D
5d4a46d5b4 ci: Remove bypass finals hook.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-19 13:17:32 +02:00
Rubén D
f0e5be2c52 chore: Build mock test for FileBackupService class.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-19 08:25:34 +02:00
Rubén D
9b3fea6983 chore: Rework tests for Installer, no more infra dependencies.
This allows to test without any infrastructure dependency. Final classes are sorted out by using the `BypassFinals` library.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 11:27:32 +02:00
Rubén D
ebe58282f6 * [ADD] Test API module without using a real sysPass instance.
* [MOD] Improve module loading.
* [MOD] Improve backup file regex.
* [MOD] Minor code tweaks.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-17 16:26:39 +02:00
Rubén D
58249da565 * [MOD] Use static types.
* [MOD] CORS headers.
* [MOD] Improve Forwarded header lookup.
* [ADD] Create interface for configuration data.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-12 20:49:18 +02:00
Rubén D
600c398bb8 * [ADD] Install CLI command tests.
* [MOD] Install CLI command refactoring.
* [MOD] Minor code tweaks.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-09-19 21:32:34 +02:00
nuxsmin
0da5c282d6 * [MOD] Improved logging when performing upgrades
* [MOD] Log to file is turned on when debug mode is active

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-11 12:58:31 +01:00
nuxsmin
a1639fdf47 * [ADD] Added more unit tests
* [MOD] Improved file cache handling

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-11 12:09:58 +01:00
nuxsmin
330e85fc07 * [ADD] Unit testing. Work in progress
* [ADD] Integration tests for API module. Work in progress
* [MOD] Code refactoring
2018-08-27 11:06:07 +02:00