jf-cbd
5c46b4ef4a
✅ Added modules to GetLtsCompatibleModulesList (Dictionnarie tests)
2024-03-14 16:59:32 +01:00
Pierre Goiffon
a97935ca01
N°7336 DeprecatedCallsLog robustness ( #632 )
...
Was creating PHP notices when deprecated method caller wasn't a class/method
Found in iTop 3.2.0-dev with itop-object-copier copy.php : it is calling WebPage::add_linked_script directly inside the copy.php script (no class nor function)
Co-authored-by: odain <olivier.dain@combodo.com >
2024-03-13 15:38:21 +01:00
Pierre Goiffon
a4edf8cb21
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# tests/php-unit-tests/unitary-tests/setup/SetupUtilsTest.php
2024-03-13 09:59:28 +01:00
Pierre Goiffon
5d6f293956
N°7302 Report SetupUtilsTest::testHumanReadableSize in the 2.7 branch
2024-03-13 09:48:46 +01:00
Pierre Goiffon
65e6c84477
N°7302 Fix SetupUtilsTest::testHumanReadableSize
2024-03-13 09:37:34 +01:00
vdumas
71d9536bc4
N°7268 Method SetComputedDate fails on Date only attribute
...
(cherry picked from commit b6caa51552 )
(cherry picked from commit c8810708ef )
2024-03-12 17:29:04 +01:00
Pierre Goiffon
48de13b5cf
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2024-03-04 08:32:59 +01:00
Pierre Goiffon
b867faa355
✅ Fix DBObjectTest
...
Error was "Class 'Combodo\iTop\Test\UnitTest\Core\DBObjectSet' not found"
2024-03-04 08:09:35 +01:00
Anne-Cath
f3abe1ff13
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# pages/audit.php
2024-02-29 16:50:04 +01:00
Anne-Catherine
473cf004b6
N°6968 - Audit duration : add of a rule multiplie by 4 the time of response ( #575 )
2024-02-29 16:33:04 +01:00
Pierre Goiffon
3b9f281afd
N°7246 DictionariesConsistencyTest : remove combodo-approval-light
...
We have an invalid CS dict in the 1.2.3 module version
2024-02-20 09:27:15 +01:00
Pierre Goiffon
ec465174f7
N°7246 DictionariesConsistencyTest : remove syntax incompatible with PHP < 7.3
2024-02-20 09:11:47 +01:00
Pierre Goiffon
9777ac1a5c
N°7246 DictionariesConsistencyTest : don't test extensions modules in old iTop builds
2024-02-15 14:39:00 +01:00
Pierre Goiffon
54439ad529
N°7249 DictionariesConsistencyTest : also scan /dictionaries sub-directories
...
Since 3.0.0 we introduced sub directories
2024-02-15 10:46:42 +01:00
Pierre Goiffon
8f7bf00551
N°7246 DictionariesConsistencyTest : add /extensions for local debugging
2024-02-15 09:46:14 +01:00
Pierre Goiffon
c020de59a7
📝 tests README : retrofit of the support/3.2 version
2024-02-14 15:16:58 +01:00
Pierre Goiffon
77c0cdf5aa
N°7246 📝 test README : add markTestAsSkipped restrictions
2024-02-14 11:20:02 +01:00
Pierre Goiffon
af9fb74c54
N°7246 Add new tests methods in DictionariesConsistencyTest ( #610 )
...
Adding following checks:
* no duplicate key in the same file
* for each value different than its EN counterpart, no tildes at the end
* good use of iTop name constants (ITOP_APPLICATION_SHORT, ITOP_APPLICATION, ITOP_VERSION_NAME), eg `'my value ITOP_APPLICATION'` instead of `'my value '.ITOP_APPLICATION`
2024-02-14 11:20:02 +01:00
Pierre Goiffon
ed694b09b0
💡 Update test PHPDoc
2024-02-08 11:34:13 +01:00
Pierre Goiffon
a5aac0caad
N°7143 Woops removed forgotten echo
2024-01-16 10:25:28 +01:00
Pierre Goiffon
31e29506fa
N°7143 DictionariesConsistencyTest::testNoDictFileInDatamodelsModuleRootDirectory Add exclusion list to remove modules that must be compatible with iTop 2.7
2024-01-16 10:18:50 +01:00
Pierre Goiffon
8ef04bedf2
N°7143 Move datamodels/2.x dict files to dictionaries subdir
...
New phpunit method to ensure it won't happen again
2024-01-15 15:35:15 +01:00
Molkobain
2ed0666c3b
N°7085 - Remove comment about annotation as on support/3.0 branch not using runTestsInSeparateProcesses is the standard
2024-01-12 10:53:24 +01:00
odain
a61b117f71
Merge branch 'support/2.7' into support/3.0
2024-01-12 08:56:25 +01:00
odain
9830178a47
N°7085 - ci restore runTestsInSeparateProcesses
2024-01-12 08:36:15 +01:00
odain
83ac219ec9
Merge branch 'support/2.7' into support/3.0
2024-01-12 08:19:05 +01:00
odain-cbd
c140ebcb6b
N°7085 - Fix infinite loop in login page until fatal error occurs ( #592 )
...
* N°7085 - login page infinite loop until fatal error- add Config->AddAllowedLoginTypes
* N°7085 - reproduce issue via a test
* N°7085-fix infinite loop
* N°7085 - ci: fix config file rights in tearDown
* N°7085 - ci: fix config file rights in tearDown (again)
* N°7085 - ci: fix config file content
* N°7085 - ci : add runTestsInSeparateProcesses
* Update core/config.class.inc.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* N°7085 - exit -1 + enhance log message
* PR feedbacks from Romain regarding LoginTest annotations
---------
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
2024-01-12 08:13:40 +01:00
Pierre Goiffon
6042e7f74d
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# tests/php-unit-tests/post-build-integration-tests/SetupCssIntegrityChecklistTest.php
# tests/php-unit-tests/unitary-tests/core/CMDBSource/CMDBSourceTest.php
2024-01-03 10:43:41 +01:00
Molkobain
94c604a6af
N°3062 - Fix setup.css compilation test to ensure that it is versioned correctly.
2023-12-21 12:00:26 +01:00
Pierre Goiffon
6995a3c641
N°6889 backup mysqldump call : restore possibility to connect using socket protocol ( #591 )
...
With previous fix (N°6123) we forced to use the tcp protocol each time. This was blocking for users wanting to connect using the socket protocol on localhost.
Now for localhost we will :
- send both port and protocol arguments if the `db_host` config parameter does contain a port
- don't send any of the port or protocol arguments if `db_host` doesn't contain a port
2023-12-20 15:19:50 +01:00
Pierre Goiffon
4ee70cb95a
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# application/ajaxwebpage.class.inc.php
# application/csvpage.class.inc.php
# application/itopwebpage.class.inc.php
# application/webpage.class.inc.php
# application/xmlpage.class.inc.php
# datamodels/2.x/itop-hub-connector/hubconnectorpage.class.inc.php
# pages/ajax.document.php
# pages/ajax.render.php
# sources/application/TwigBase/Controller/Controller.php
# webservices/export-v2.php
2023-12-19 18:38:45 +01:00
Pierre Goiffon
9865bf0779
N°4368 add sending X-Content-Type-Options HTTP header
...
Replace in consumers the \WebPage::add_xframe_options call by \WebPage::add_http_headers
2023-12-19 18:25:26 +01:00
Molkobain
974c155855
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-12-04 23:16:35 +01:00
Pierre Goiffon
99d69493d1
N°7023 - Update tests so that we are now checking negative ext. keys
2023-12-04 22:36:26 +01:00
Pierre Goiffon
6f1de11c59
N°6976 Fix DeprecatedCallsLog error handler never set ( #576 )
...
Caused by N°6274 (disabling error handler when running phpunit)
There is now a test testing the handler is really fixed when not in the phpunit context
Also a TRACE log is made on setting the handler
2023-11-23 15:54:10 +01:00
odain
c5b43f3157
Merge branch 'support/2.7' into support/3.0
2023-11-22 11:10:06 +01:00
odain
fc22d91232
N°6949 - Run subset of itop core unit tests after the setup when validating a module github code
2023-11-22 10:14:58 +01:00
Pierre Goiffon
154a20b757
💡 Fix ItopCustomDatamodelTestCase since phpdoc
...
See https://docs.phpdoc.org/guide/references/phpdoc/tags/since.html#since
2023-11-21 09:21:30 +01:00
Pierre Goiffon
79c24dfc96
N°6975 Fix ItopCustomDatamodelTestCase removing symlinks flag ( #574 )
2023-11-21 09:20:11 +01:00
Pierre Goiffon
b9d960e89e
✅ N°6458 Fix ItopDataTestCase::$bIsUsingSilo visibility
2023-11-16 15:35:04 +01:00
Pierre Goiffon
8540ec644a
✅ N°6458 Improve ItopDataTestCase tests speed
...
What was measured :
- 1'54 with previous code (always doing a reset in tearDown)
- 1'44 without any ResetMetaModelQueyCacheGetObject call (but 3 tests are failing)
- 1'44 with new optin mechanism + don't call Logoff if no current user logged
2023-11-16 15:23:18 +01:00
Pierre Goiffon
5b19593ede
📝 README tests : add prerequisites
2023-11-16 14:38:15 +01:00
Pierre Goiffon
0915081f50
✅ ItopDataTestCase fix cached SQL queries with silo
2023-11-16 11:57:29 +01:00
Pierre Goiffon
a23d629e31
✅ ItopDataTestCase fix using non existing EventService (added in 3.1.0)
2023-11-16 11:23:07 +01:00
Pierre Goiffon
47ccd7589f
✅ Fix TriggerTest relying on hardcoded admin user id
2023-11-16 11:16:59 +01:00
Pierre Goiffon
7521fc3006
✅ N°6458 Tests : remove processIsolation
...
Was caused by cached User instances in UserRights + same login for each created User objects instances
2023-11-16 10:56:47 +01:00
Pierre Goiffon
c955fe00b7
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# application/cmdbabstract.class.inc.php
# application/utils.inc.php
# core/coreexception.class.inc.php
# core/userrights.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/Form/ObjectFormManager.php
# tests/php-unit-tests/README.md
# tests/php-unit-tests/unitary-tests/core/DBObjectTest.php
2023-11-15 15:03:04 +01:00
Pierre Goiffon
5a43448644
N°6458 Security hardening
2023-11-15 11:14:07 +01:00
Romain Quetiez
d9bdcfeae3
✅ N°6658 - Fix regression: do not reset current user's profile cache
2023-11-10 15:57:08 +01:00
Romain Quetiez
8fa9336568
✅ Fix regression introduced with the optimization done in 15148f7, and seen only in the context of the CI
2023-10-27 11:21:56 +02:00