odain
ecf8bc42fa
Merge branch 'support/2.7' into support/3.0
2023-09-13 10:01:15 +02:00
odain-cbd
e76728b2bf
N°5491 - Inconsistent dictionnary entries regarding arguments to pass to Dict::Format-test first ( #545 )
2023-09-13 12:02:49 +02:00
Pierre Goiffon
ea8509db1f
✅ N°6709 Use ItopTestCase::RequireOnceCurrentModuleFile in GetAppRoot
2023-09-07 14:47:36 +02:00
Pierre Goiffon
df25ce76b6
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-09-07 14:43:29 +02:00
Pierre Goiffon
e946fc65fc
✅ N°6709 New ItopTestCase::RequireOnceCurrentModuleFile
2023-09-07 14:38:19 +02:00
Eric Espie
61a9a4ac65
✅ Fix unit tests for MariaDB
2023-09-01 09:29:21 +02:00
Pierre Goiffon
6ebcd44bb1
💡 N°6658 Add more comments and since tags
2023-08-31 15:34:44 +02:00
Molkobain
d130959692
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# core/metamodel.class.php
2023-08-18 10:14:51 +02:00
Molkobain
a8c689c6c0
N°6436 - Add unit test to ensure that we don't lose an API during merge between branches
2023-08-18 09:55:45 +02:00
Molkobain
e107be56e4
N°6097 - Tests: Fix missing hook entry in PHPUnit XML file that led to compiled environment being re-build for each test case
2023-08-18 09:51:15 +02:00
Romain Quetiez
65bb76b9e3
N°6658 - Boost PHPUnit tests execution
2023-08-17 17:27:55 +02:00
Molkobain
d951d3b872
💚 Fix typo in extended class name
2023-08-11 09:05:30 +02:00
Molkobain
ccceb870e3
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# tests/php-unit-tests/src/BaseTestCase/ItopDataTestCase.php
# tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php
2023-08-10 15:53:05 +02:00
Molkobain
ed6df77cbb
N°6097 - Tests: Optimize performances by creating custom env. only once and re-using it across test classes
2023-08-10 15:45:39 +02:00
Molkobain
1ad28312ec
N°6097 - Tests: Introduce autoloader for "utility" classes and move them to a sub-folder for better organization as folder was still messy
...
Note that unittestautoload.php is now useless. We just keep for now until everything is migrated (projects / branches / modules)
2023-08-10 15:45:39 +02:00
Molkobain
f002aa04cd
N°6097 - Tests: Enable PHP unit tests on a custom DataModel
2023-08-10 15:45:39 +02:00
Molkobain
b86d70623e
N°6097 - Tests: Temporarily add test case for the new ItopCustomDatamodelTestCase class
2023-08-10 15:45:39 +02:00
Molkobain
fe3467309d
N°6097 - Tests: Refactor base test classes for better extensibility
2023-08-10 15:45:39 +02:00
Pierre Goiffon
f04fc546b5
N°6643 Fix TypeError in \CMDBSource::LogDeadLock
2023-08-10 14:34:09 +02:00
Pierre Goiffon
13ad98b9b3
✅ Add other integration tests in the beforeSetup group
...
All of those tests can be ran without a running iTop instance, and are blocking
2023-08-08 15:34:27 +02:00
Pierre Goiffon
4be54fdd65
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-08-08 15:33:36 +02:00
Pierre Goiffon
6d13397ba1
✅ Add other integration tests in the beforeSetup group
...
All of those tests can be ran without a running iTop instance, and are blocking
2023-08-08 15:33:09 +02:00
Pierre Goiffon
d2eef06276
✅ AttributeURLTest : remove useless separateProcess annotations
2023-08-03 11:08:47 +02:00
Pierre Goiffon
e5b6e2eb8c
N°4354 N°6587 ✅ Add test to cover $oUser->Get('profile_list') VS security.hide_administrators config param
2023-07-27 16:42:56 +02:00
Pierre Goiffon
a57b6471c9
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-07-24 11:59:40 +02:00
Pierre Goiffon
bc7c1b4744
✅ N°6590 Fix DictionariesConsistencyTest for PL dict files
2023-07-24 11:14:37 +02:00
Eric Espie
6432678de9
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# application/cmdbabstract.class.inc.php
# application/utils.inc.php
# bootstrap.inc.php
# composer.json
# core/MyHelpers.class.inc.php
# core/cmdbsource.class.inc.php
# core/config.class.inc.php
# core/dbobject.class.php
# core/kpi.class.inc.php
# core/metamodel.class.php
# lib/composer/autoload_classmap.php
# lib/composer/autoload_real.php
# lib/composer/autoload_static.php
2023-07-18 14:36:58 +02:00
Stephen Abello
9afc22bd8f
N°6123 - Add tests and comments
2023-07-07 09:29:15 +02:00
Pierre Goiffon
a010239efb
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-07-06 15:48:42 +02:00
Pierre Goiffon
264a8cd70a
N°6494 - Some tests are run twice, some never
...
(cherry picked from commit a2a0b2cd0b )
(cherry picked from commit 4c9ea0c9d4 )
# Conflicts:
# tests/php-unit-tests/integration-tests/DictionariesConsistencyTest.php
2023-07-06 15:45:09 +02:00
Eric Espie
e288af4ddb
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# tests/setup_params/default-params.xml
2023-06-08 14:33:54 +02:00
odain
6cc971849b
ci: enhance AddProfile
2023-06-07 21:44:00 +02:00
Eric Espie
e76ada641f
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# application/loginbasic.class.inc.php
# application/loginexternal.class.inc.php
# application/loginform.class.inc.php
# application/loginurl.class.inc.php
# application/loginwebpage.class.inc.php
# composer.lock
# datamodels/2.x/authent-cas/src/CASLoginExtension.php
# lib/composer/autoload_real.php
# lib/composer/installed.php
# synchro/synchro_exec.php
# synchro/synchro_import.php
# tests/php-unit-tests/unitary-tests/application/utilsTest.php
2023-06-07 17:21:09 +02:00
Eric Espie
fff46d99fc
N°6358 - Login REST API - renamed test
2023-06-07 15:31:51 +02:00
odain
3a891f707c
ci: enhance AddProfile test method to work with any User (not only UserLocal)
2023-06-07 15:06:28 +02:00
odain
8b6ea43ebe
N°6358 - Login REST API - fix cas + add tests
2023-06-07 15:05:32 +02:00
Timothee
a45177410e
N°6350 - Fixing phpunit test
2023-06-06 16:47:06 +02:00
Eric Espie
17d22219d2
N°6350 - ✅ Fix unit tests
2023-06-01 16:30:09 +02:00
odain
da5a825c7e
N°6171 - Password Expiration: can expire mode has no effect on user who have never changed their password
2023-05-05 11:37:44 +02:00
Pierre Goiffon
b9230ad402
N°6274 DeprecatedCallsLogTest : replace expectException deprecated calls
...
Message was : Support for using expectException() with PHPUnit\Framework\Error\Warning is deprecated and will be removed in PHPUnit 10. Use expectWarning() instead.
2023-05-05 10:16:56 +02:00
Pierre Goiffon
959ac7e3be
N°6274 DeprecatedCallsLogTest : fix expected exception mismatch in PHP 8.0+
...
Undefined offset notice was changed to a warning in PHP 8.0... Also message was changed :(
2023-05-05 09:13:03 +02:00
Pierre Goiffon
1884596ecd
N°6274 Fix log.class.inc.php crashing cause cannot load ItopTestCase class
...
Now the constant name is defined in approot
2023-05-04 17:34:14 +02:00
Pierre Goiffon
584cfa8cbf
N°6274 Fix PHP Notices not caught in ItopDataTestCase PHPUnit
...
This was caused by the set_error_handler() done in DeprecatedCallsLog during startup
Now we are :
* not registering the handler if a PHPUnit test is running (based on a constant set in ItopTestCase::setUp)
* on registration only do it for the required notices
2023-05-04 17:08:47 +02:00
Pierre Goiffon
3c15186685
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-04-26 17:12:08 +02:00
Pierre Goiffon
fa038ded3d
N°6254 ItopDataTestCase::CreateUserRequest : fix new argument default value
...
Was creating error Too few arguments passed
2023-04-26 16:42:27 +02:00
Pierre Goiffon
e7ea1b831c
N°6254 ItopDataTestCase::CreateUserRequest : now pass fields values as array
...
More versatile way of doing things !
2023-04-26 16:22:26 +02:00
Molkobain
778118cfb4
N°6204 - REST API: Add unit test for callback parameter
2023-04-18 22:34:11 +02:00
Molkobain
096ed9a63a
N°6204 - Improve REST API unit test readability
2023-04-18 22:14:39 +02:00
Pierre Goiffon
4c626d0782
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# core/log.class.inc.php
2023-04-12 10:22:34 +02:00
Pierre Goiffon
1114ed9562
N°6099 DeadLockLog : improve documentation and use existing constants ( #441 )
2023-04-12 10:21:34 +02:00