Rubén D
1c8fb0ea1a
refactor: [WIP] Use hexagonal architecture and implement interfaces for services and repositories.
...
Controllers are being splited into commands to better dependency management.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-06 08:17:34 +02:00
Rubén D
489684f08c
chore: Added MySQL setup class tests.
...
These tests implement a mocked PDO class that behaves like the original one.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-22 22:17:30 +02:00
Rubén D
8f7a2d9e04
chore: Removed unused variable.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-20 17:00:40 +02:00
Rubén D
23672a52b2
chore: Check database connection and use interface for mocking.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-20 07:36:48 +02:00
Rubén D
2796ef578b
chore: Refactor Installer's constructor signature.
...
This will provide connection data when running instead of building time (object wiring).
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-20 07:11:24 +02:00
Rubén D
7955fa265a
chore: Suppress final classes warning on tests.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-20 06:29:10 +02: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
7ef40af280
ci: Remove bypass finals hook.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-19 13:16:06 +02:00
Rubén D
e9d5232b14
ci: Skip final classes bypass on non-mocked tests.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-19 13:04:23 +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
98ffc311cf
chore: Refactoring of Bootstrap class into an abstract class.
...
This allows to implement bootstrap classes for each module and simplifies the bootstrap code.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-16 19:01:28 +02:00
Rubén D
4715cb2b8e
chore: Minor code changes.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-16 11:37:50 +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
ae982fe2cf
* [FIX] Set memory limit upon current usage.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-03-13 20:25:42 +01:00
Rubén D
a436fb2b3f
* [FIX] Avoid long database hostname.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-03-13 20:21:07 +01:00
Rubén D
ec47a5ab83
* [FIX] Avoid long database hostname.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-03-13 20:08:42 +01:00
Rubén D
6f2f1ec5e2
* [FIX] Prevent login process when user/password are not provided.
...
* [FIX] Use null when clientId or categoryId are not set when searching account.
* [FIX] Minor fixes.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2021-10-17 22:56:21 +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
dd96643e6a
* [ADD] Check whether the master password is correct and not the same as the new one.
...
* [MOD] Unset environment variables before every test.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2021-10-02 08:34:55 +02:00
Rubén D
e64897855a
* [ADD] Master password update CLI command and tests.
...
* [MOD] Code refactoring.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2021-09-27 00:20:24 +02:00
Rubén D
f8e9e19731
* [ADD] Backup CLI command and tests.
...
* [MOD] Code refactoring.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2021-09-26 18:42:34 +02:00
Rubén D
0b02c8fdbf
Merge branch 'v3.2' into feature/cli_module
...
# Conflicts:
# composer.json
# composer.lock
# lib/SP/Providers/Auth/Ldap/LdapMsAds.php
# lib/SP/Services/Install/Installer.php
# lib/SP/Util/Checks.php
# lib/SP/Util/Link.php
# public/js/app-actions.min.js
# public/js/app-util.min.js
# tests/res/scripts/reset_db.sh
2021-09-19 21:40:27 +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
Rubén D
8e96ec4285
* [MOD] Code refactoring by enforcing type checks (WIP)
...
* [MOD] Update dependencies
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2021-01-17 14:56:56 +01:00
Rubén D
f428a8c1d6
* [MOD] Bump version number
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-12-20 20:46:21 +01:00
Rubén D
5e3281bce8
* [FIX] Set coverage mode through env var
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-12-20 17:51:32 +01:00
Rubén D
41703b50f9
* [MOD] Strict type checking (WIP)
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-12-20 14:24:42 +01:00
Rubén D
0356610551
* [FIX] Missing fixtures file
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-12-09 13:38:05 +01:00
Rubén D
aa8f782431
* [FIX] Skip using blank db password when testing on Travis CI
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-12-09 13:00:51 +01:00
Rubén D
e2885bcb76
* [MOD] Update PHPunit to latest version.
...
* [MOD] Load fixtures using plain SQL files.
* [MOD] Raise PHP version requirements (7.2 will be deprecated within a month).
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-12-09 12:03:13 +01:00
Rubén D
896d9fd3ad
* [MOD] Deprecate PHP versions below 7.2 since they are no longer supported by PHP and Travis CI tests are not performed for them. https://www.php.net/supported-versions.php
...
* [MOD] Improve internal config handling. No more properties visibility tweaks.
* [MOD] Updated dependencies.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-12-07 19:37:00 +01:00
Rubén D
d310a10ba0
* [MOD] Merge v3.1 changes
...
* [ADD] Use custom ldap attributes for users or groups
* [ADD] Use custom ldap filter for users or groups lookup
* [MOD] Improved internal config handling by using an array instead of class properties
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-06-28 19:38:06 +02:00
Rubén D
cd9dd167bd
* [MOD] Merge v3.1 changes
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-03-11 19:34:54 +01:00
Rubén D
f3e01eee9d
* [MOD] Enforce LDAP schema in ldap_connect function. Skip ldap_connect signature using port because it's deprecated
...
* [ADD] LDAP params tests
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-03-07 17:49:15 +01:00
Rubén D
bec1d21d8c
* [MOD] Improved CSRF handling by using HTTP header to set the token
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2020-01-08 13:18:03 +01:00
Rubén D
e17e80d665
* [ADD] Added search for accounts name by regular expression. Closes #1311
...
* [FIX] Fixed wrong behavior when search operator was set
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2019-04-25 23:20:00 +02:00
Rubén D
2318796c00
* [FIX] Fixed wrong behavior when searching for accounts on accounts manager. Thanks to @Weptun for the feedback. Closes #1271
...
* [ADD] Added missing tests
* [MOD] Code cleanup
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2019-04-21 23:12:45 +02:00
Rubén D
3ea87a4ecc
* [MOD] Improved plugins data handling by encrypting the plugin's data
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2019-01-30 00:04:05 +01:00
Rubén D
a2ecef2141
Merge branch 'master' into v3.1
...
# Conflicts:
# .travis.yml
# lib/SP/Services/Install/Installer.php
2019-01-26 13:12:28 +01:00
Rubén D
26261c0789
* [FIX] Wrong behavior when importing CSV. Thanks to @hoboristi for the feedback. Closes #1211
...
* [FIX] Wrong behavior when displaying passwords with scpecial characters. Thanks to @opeshm for the feedback. Closes #1207
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2019-01-26 12:00:29 +01:00
Rubén D
0fbaccf8a1
* [MOD] Improved plugins handling by moving items' data to new database table.
...
* [MOD] Added plugins upgrade process
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2019-01-22 01:18:03 +01:00
Rubén D
690da26bf5
* [FIX] Wrong behaviour on Travis CI
...
Signed-off-by: nuxsmin <nuxsmin@syspass.org >
2018-12-16 23:15:45 +01:00
nuxsmin
3cecdd8809
* [FIX] Wrong behaviour on Travis CI
...
Signed-off-by: nuxsmin <nuxsmin@syspass.org >
2018-12-16 19:33:00 +01:00
nuxsmin
542ab61053
* [MOD] Improved behaviour when handling routes
...
Signed-off-by: nuxsmin <nuxsmin@syspass.org >
2018-12-15 12:48:24 +01:00
nuxsmin
90ba034522
* [FIX] Wrong behaviour when displaying task progress on master password change. Thanks to @deajan for the feedback. Closes #1128
...
* [FIX] Improved browser notifications format. Thanks to @vmario89 for the feedback. Closes #1142
* [FIX] Temporary master password change notifications are sent to all users. Thanks to @jorgemfm for the feedback. Closes #1156
* [MOD] Improved background tasks management
* [MOD] Improved email notifications format
Signed-off-by: nuxsmin <nuxsmin@syspass.org >
2018-12-10 07:01:25 +01:00
nuxsmin
8cdceed192
* [MOD] Bump build number and version
...
Signed-off-by: nuxsmin <nuxsmin@syspass.org >
2018-11-26 20:27:51 +01:00
nuxsmin
b247bd4f2f
* [MOD] Bump build number and version
...
* [MOD] Updated translations
Signed-off-by: nuxsmin <nuxsmin@syspass.org >
2018-11-25 20:42:43 +01:00
nuxsmin
13e12baaf0
* [FIX] Fixed wrong behavior when setting mail parameters
...
* [MOD] Improved email message templates
Signed-off-by: nuxsmin <nuxsmin@syspass.org >
2018-11-19 18:44:18 +01:00