Molkobain
70081ecf33
N°6436 - Add unit test for API introduced in 3.1 (\iFieldRendererMappingsExtension)
2023-08-18 10:31:05 +02:00
Molkobain
575ba1cd7b
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
...
# Conflicts:
# core/metamodel.class.php
2023-08-18 10:24:50 +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
0f8e87e001
Tests: allow execution of RouterTest alone, fix tool to execute each test class separately
2023-08-18 08:44:54 +02:00
Romain Quetiez
ebd0136773
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
...
# Conflicts:
# tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php
2023-08-17 18:36:34 +02:00
Romain Quetiez
65bb76b9e3
N°6658 - Boost PHPUnit tests execution
2023-08-17 17:27:55 +02:00
Molkobain
f238593966
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
...
# Conflicts:
# tests/php-unit-tests/src/BaseTestCase/ItopDataTestCase.php
# tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php
2023-08-11 09:19:49 +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
5212e15cc4
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
2023-08-10 14:41:05 +02:00
Pierre Goiffon
f04fc546b5
N°6643 Fix TypeError in \CMDBSource::LogDeadLock
2023-08-10 14:34:09 +02:00
Pierre Goiffon
c4c400d852
N°6638 💡 More explanations on CompiledDictionariesConsistencyTest::testImportCsvMessageStillOk
2023-08-09 14:54:19 +02:00
Pierre Goiffon
d7495af207
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
2023-08-08 15:42:39 +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
48e7e0309a
N°6638 ✅ Fix DictionariesConsistencyTest::testImportCsvMessageStillOk not run on Jenkins
...
Was contained in a class with a beforeSetup group annotation, whereas it tries to read files in env-production (!)
Plus the dataprovider was using APPROOT const + utils class, which aren't available by default :(
=> Fixed by moving in a dedicated class (CompiledDictionariesConsistencyTest) and removing the dataprovider
2023-08-08 15:30:01 +02:00
Pierre Goiffon
5ffa41bc16
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
2023-08-03 11:09:14 +02:00
Pierre Goiffon
d2eef06276
✅ AttributeURLTest : remove useless separateProcess annotations
2023-08-03 11:08:47 +02:00
Molkobain
f7f1b5f399
Merge remote-tracking branch 'origin/support/3.1.0' into support/3.1
2023-08-02 15:27:17 +02:00
Molkobain
85f66f5e0c
N°6618 - Router: Add protection against invalid routes cache
2023-08-02 11:44:20 +02:00
Molkobain
a5c980113b
N°6618 - Router: Fix available routes cache being re-generated at each call
2023-08-02 11:44:20 +02:00
Pierre Goiffon
97700dbf15
N°6562 Re-enable failing tests
...
Conditional disabling was made in ea8e7c5
2023-08-01 14:27:57 +02:00
Pierre Goiffon
a84077782d
N°4354 N°6587 ✅ Remove duplicated ItopDataTestCase::CreateContactlessUser method
...
Regression introduced by 26048150
2023-07-27 16:48:49 +02:00
Pierre Goiffon
26048150d3
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
...
# Conflicts:
# tests/php-unit-tests/ItopDataTestCase.php
2023-07-27 16:44:02 +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
2e049aa244
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
2023-07-24 11:59:57 +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
9c37d5c23e
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
...
# Conflicts:
# application/applicationextension.inc.php
# application/cmdbabstract.class.inc.php
# core/dbobject.class.php
# core/kpi.class.inc.php
# core/metamodel.class.php
# lib/composer/autoload_classmap.php
# lib/composer/autoload_static.php
# tests/php-unit-tests/unitary-tests/setup/DBBackupTest.php
2023-07-19 09:26:46 +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
Pierre Goiffon
952194b385
N°6570 Fix BulkChangeExtKeyTest errors
...
- transaction started but never stopped
- invalid value label typo
- urlencode on search url
2023-07-18 14:12:29 +02:00
Pierre Goiffon
bfb452dd69
N°6570 Rename BulkChangeExtKeyTest file so it is run in Jenkins
...
Was *Test.inc.php instead of default *Test.php
2023-07-18 14:12:29 +02:00
Molkobain
125715af3f
N°6562 - Temporarily disable XML conversion unit tests failing in PHP 8.2.8
2023-07-14 21:09:37 +02:00
Molkobain
ea8e7c5131
N°6562 - Temporarily disable XML conversion unit tests failing in PHP 8.1.21
2023-07-13 10:11:56 +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
Pierre Goiffon
a2a0b2cd0b
N°6494 Fix missing PHPUnit log in console log for postbuild tests
2023-07-06 15:28:32 +02:00
odain
4c9ea0c9d4
N°6494 - Some tests are run twice, some never
2023-07-05 14:37:02 +02:00
bdalsass
9d38b4d1d6
N°6043 - Booking: Add prerequisites in iTop core - CRUD extensibility ( #520 )
2023-07-04 16:22:53 +02:00
Pierre Goiffon
6cc2d49cd5
N°6414 Move existing AbstractSimpleField::Validate impl to custom validators
...
- LinkedSetField
- SelectObjectField
- MultipleChoicesField (warning this hierarchy contains non multiple value fields like SelectField !)
Also change AbstractValidator::Validate signature : now we are returning an array of error messages, so that we can return multiple ones
2023-07-03 11:30:04 +02:00
Pierre Goiffon
d085f15b6d
N°6414 Separate SubFormField and Scalar fields
...
This will help to set methods as final, as SubFormField is often the sole one to have a real custom impl
2023-07-03 11:30:04 +02:00