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
6a71fe3372
chore: Remove unused methods
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 16:38:05 +01:00
Rubén D
8ef229f8ed
chore: AccountHistoryRepository tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 16:29:33 +01:00
Rubén D
430302ed33
chore: Move tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 12:15:52 +01:00
Rubén D
9e246c0413
chore: Complete AccountRepository tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 12:02:41 +01:00
Rubén D
4db6bcfcf6
chore: Complete AccountRepository tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 11:56:41 +01:00
Rubén D
fde6e60bd1
chore: Fix tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-05 19:34:56 +01:00
Rubén D
8a2bbc8283
chore: Use Aura.SqlQuery for building queries.
...
Refactor AccountRepository and AccountSearchRepository to use Aura.SqlQuery. This will allow to mock queries when testing.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-05 09:58:57 +01:00
Rubén D
e75694e258
chore: Update PHPDoc blocks
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-10-31 09:28:25 +01:00
Rubén D
de06ff5b0f
chore: Move account data models and unit test for account repository.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-07-02 18:01:56 +02:00
Rubén D
8af6bcbaf6
chore: Migrate API account controllers.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-25 12:11:13 +02:00
Rubén D
ff745a0cd5
feat: Installer refactoring to inject all dependencies at build time.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-19 11:39:59 +02:00
Rubén D
f134a53d55
fix: Missing installer definition and naming.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-18 19:51:38 +02:00
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