Molkobain
a4390fbb57
Merge remote-tracking branch 'origin/support/3.0' into develop
...
# Conflicts:
# test/application/search/CriterionConversionTest.php
# test/application/search/CriterionParserTest.php
# test/application/search/SearchFormTest.php
2022-04-25 14:03:02 +02:00
Pierre Goiffon
e81587470d
✅ N°3091 Fix ExpressionEvaluateTest::testEveryTimeFormat
...
Might need a real fix sometime !!
2022-04-22 17:06:03 +02:00
Pierre Goiffon
5a37bc338a
N°3091 Update PHPUnit to 8.5 : fix setUp and teardDown methods signatures on support/3.0 new tests
2022-04-22 16:04:54 +02:00
Pierre Goiffon
f4a027b474
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# composer.json
# core/cmdbchangeop.class.inc.php
# core/cmdbobject.class.inc.php
# css/light-grey.scss
# setup/setuputils.class.inc.php
# test/ItopTestCase.php
# test/core/ConfigTest.php
# test/core/LogAPITest.php
# test/core/UserRightsTest.php
# test/core/dictApcuTest.php
# test/core/dictTest.php
# test/core/iTopConfigParserTest.php
# test/core/ormLinkSetTest.php
# test/phpunit.xml.dist
# test/postbuild_integration.xml.dist
# test/setup/SetupUtilsTest.php
# test/status/StatusIncTest.php
# webservices/cron.php
2022-04-22 15:26:18 +02:00
Pierre Goiffon
6e619f2c35
Fix \iTopConfigParserTest::testConfigWriteToFile_FromScratchInstallation throwing error
2022-04-21 12:02:35 +02:00
Pierre Goiffon
163ba41e8d
N°3091 Update PHPUnit to 8.5 : remove doesNotPerformAssertions annotation
...
Modified tests :
- iTopConfigParsertest
- DBSearchIntersectTest::testIntersectOptimization
As expected this isn't working with PHPUnit 8.5
Why does it worked with previous PHPUnit 6 version ? Maybe this annotation wasn't handled yet ? The corresponding PHPUnit doc isn't available anymore...
Annotations doc for PHP 8.5 : https://phpunit.readthedocs.io/en/8.5/annotations.html#doesnotperformassertions
2022-04-21 12:02:35 +02:00
Pierre Goiffon
ec143c43db
N°3091 Update PHPUnit to 8.5 : fix setUp and teardDown methods signatures
...
"Return type declaration must be compatible with parent"
See https://phpunit.de/announcements/phpunit-8.html "Return Type of Template Methods"
2022-04-21 12:02:35 +02:00
Pierre Goiffon
11e811cc4b
N°3717 Improve iTop object history API ( #192 )
...
This fixes a major flaw in the history API that was causing "phantom" CMDBChange records (without any CMDBChangeOp attached). That was happening especially in iProcess impl.
For example this lead to the creation of the combodo-cmdbchange-cleaner module in the Mail To Ticket extension.
The modifications in detail :
- We can now pass a non persisted CMDBChange instance to \CMDBObject::SetCurrentChange
- No persistence done in \CMDBObject::CreateChange anymore
- Persistence of the attached CMDChange will be done if necessary in CMDBChangeOp::OnInsert
- New CMDBObject::SetCurrentChangeFromParams helper method to ease resetting the current change
2022-04-19 17:13:18 +02:00
Pierre Goiffon
7b3d859522
N°5027 AttributeUrl handle anchors starting with digits
2022-04-19 10:57:47 +02:00
Molkobain
ad4442ae78
Merge remote-tracking branch 'origin/support/3.0' into develop
2022-03-23 09:49:11 +01:00
Molkobain
73c6b4be20
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# test/core/DBObjectTest.php
2022-03-23 09:44:13 +01:00
Eric Espie
7ce5712b71
N°4967 - 'Previous Values For Updated Attributes' not updated if DBUpdate is called without modifying the object
2022-03-21 08:43:03 +01:00
acognet
1db4b9a12e
Merge remote-tracking branch 'origin/support/3.0' into develop
2022-03-16 09:44:33 +01:00
Pierre Goiffon
5908ec5197
N°4515 AttributeURLTest : add SF forum url
2022-03-10 16:42:43 +01:00
Molkobain
0f2cbaf186
N°4849 - Enable notification emails grouping in threads in email clients ( #275 )
...
N°4849 - Enable notification emails grouping in threads in email clients (#275 )
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com >
2022-03-10 09:31:29 +01:00
Benjamin Dalsass
91d4da85e1
N°4454 - Measuring the use of the queryphrase book
2022-01-14 11:12:30 +01:00
Pierre Goiffon
9aa399894c
N°4624 Add processIsolation PHPUnit option to all tests implementing ItopDataTestCase
2022-01-10 16:41:26 +01:00
Pierre Goiffon
8578d18e7f
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# core/cmdbsource.class.inc.php
# core/config.class.inc.php
# core/displayablegraph.class.inc.php
# core/log.class.inc.php
# datamodels/2.x/itop-config-mgmt/dictionaries/tr.dict.itop-config-mgmt.php
# datamodels/2.x/itop-knownerror-mgmt/dictionaries/tr.dict.itop-knownerror-mgmt.php
# datamodels/2.x/itop-service-mgmt/dictionaries/tr.dict.itop-service-mgmt.php
# datamodels/2.x/itop-tickets/tr.dict.itop-tickets.php
# datamodels/2.x/itop-welcome-itil/tr.dict.itop-welcome-itil.php
# dictionaries/tr.dictionary.itop.core.php
# dictionaries/tr.dictionary.itop.ui.php
# pages/UI.php
# setup/itopdesignformat.class.inc.php
# test/core/LogAPITest.php
# test/integration/iTopModulesPhpVersionChecklistTest.php
# test/postbuild_integration/SetupCssIntegrityChecklistTest.php
# test/postbuild_integration/iTopModuleXmlInstallationChecklistTest.php
# test/status/StatusTest.php
2022-01-10 16:15:00 +01:00
Pierre Goiffon
e530cbb4f2
N°4624 Restore processIsolation on tests which actually need it
...
Warning, one symptom was having the CI returning an empty phpunit.results.xml !!
2022-01-07 17:25:18 +01:00
Pierre Goiffon
ddb8378fe6
N°4624 align phpunit annotations
...
Remove processIsolation when not needed
When needed, make sure to have also their counterpart (preserveGlobalState and backupGlobals)
2022-01-07 15:20:34 +01:00
Pierre Goiffon
47db23d91c
💚 N°4624 Fix other tests after global processIsolation was disabled in 6bf25f90
2022-01-07 12:44:08 +01:00
Pierre Goiffon
fc1f701bf6
💚 N°4624 TransactionsTest : add process isolation
...
Was global before 6bf25f90
2022-01-07 12:34:09 +01:00
Pierre Goiffon
ffd0bbb1a4
N°4515 Fix default validation pattern for AttributeURL ( #249 )
...
URL containing ":" in their path were rejected. This caused problems with some URL from Alfresco or Sharepoint...
The default regexp used by AttributeURL was updated to avoid this.
Warning, check your config to see if you have any custom regexp configured (`url_validation_pattern` config parameter) !
Also a test was added to document the default regexp.
2021-12-29 11:43:07 +01:00
odain
e51bd4c95f
add ci annotation sampleDataNeeded
2021-12-09 17:13:21 +01:00
Pierre Goiffon
4fbe391243
✅ Fix \Combodo\iTop\Test\UnitTest\Core\dictApcuTest that was broken with last merge
2021-12-08 18:41:57 +01:00
Pierre Goiffon
c9ef543e2e
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# core/log.class.inc.php
# datamodels/2.x/itop-attachments/renderers.itop-attachments.php
# js/search/search_form_criteria_enum.js
# lib/composer/autoload_classmap.php
# lib/composer/autoload_static.php
# test/core/dictTest.php
2021-12-08 18:30:20 +01:00
odain-cbd
9addc4a7ca
Merge pull request #224 from Combodo/feature/dict-apcu-bug
...
Feature/dict apcu bug
2021-12-02 12:22:22 +01:00
Stephen Abello
18e341b0b7
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# application/displayblock.class.inc.php
# js/search/search_form_criteria_enum.js
# test/core/ormLinkSetTest.php
2021-12-02 10:04:04 +01:00
acognet
c1c2d027c3
N°4402 - DbObject::ListPreviousValuesForUpdatedAttributes() returns new values for _list-attributes (at least in DbObject::AfterUpdate()) Fix test
2021-11-30 12:11:04 +01:00
acognet
5269096ecd
Merge branch 'support/2.7' of github.com:Combodo/iTop into support/2.7
2021-11-29 15:07:14 +01:00
Pierre Goiffon
74fbd12709
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# datamodels/2.x/itop-portal-base/portal/src/Helper/ObjectFormHandlerHelper.php
# datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig
2021-11-26 17:24:41 +01:00
Molkobain
7f2eef4a24
Merge remote-tracking branch 'origin/support/2.6' into support/2.7
2021-11-26 13:59:29 +01:00
Molkobain
8a65a592f3
N°4360 - Rename class to match other classes convention
2021-11-26 13:47:05 +01:00
odain
dcfdb2d0a9
N°4125 - add integration test apart from ApcService mocking
2021-11-26 10:28:56 +01:00
odain
0cbf34ba5a
N°4125 - fix tests under windows (again)
2021-11-26 09:47:01 +01:00
odain
bea52d5fb9
N°4125 - test did not run under windows
2021-11-26 09:12:58 +01:00
Pierre Goiffon
ddd6bf22af
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# core/attributedef.class.inc.php
# core/config.class.inc.php
# core/htmlsanitizer.class.inc.php
# sources/Renderer/RenderingOutput.php
# test/core/sanitizer/HTMLDOMSanitizerTest.php
# test/integration/DictionariesConsistencyTest.php
2021-11-24 15:01:38 +01:00
acognet
903de43589
N°4402 - DbObject::ListPreviousValuesForUpdatedAttributes() returns new values for _list-attributes (at least in DbObject::AfterUpdate()) Add tests
2021-11-24 12:10:30 +01:00
Pierre Goiffon
efaf53e568
Merge remote-tracking branch 'origin/support/2.6' into support/2.7
...
# Conflicts:
# core/htmlsanitizer.class.inc.php
2021-11-23 18:07:02 +01:00
Pierre Goiffon
81a2a9278c
✅ N°4360 Fix SvgDOMSanitizer expected data
2021-11-23 17:38:30 +01:00
Pierre Goiffon
e15d4bfab6
N°4360 Security hardening
2021-11-23 17:25:50 +01:00
denis.flaven@combodo.com
5bcdcb52b2
N°4534 - creation of a new category 'filter' to hide admins to
...
non-admins without breaking legacy code.
2021-11-05 11:29:41 +01:00
bruno-ds
6d2b75df9e
N°4261 - test correctness: log deactivation is performed using bool false and not Error level
...
thanks @BenGrenoble
2021-10-26 15:54:44 +02:00
denis.flaven@combodo.com
ee848129b7
New methods for creating/import test data from XML files.
2021-10-25 11:49:56 +02:00
bruno-ds
427f107ddf
N°4261 - Fix CI and add a test case
2021-10-21 17:04:08 +02:00
bruno-ds
62f7eca0a8
N°4261 - Log in db: change default level.
...
In order to preserve the existing behavior: not EventIssue creation (unless configured otherwise).
2021-10-21 11:07:44 +02:00
Pierre Goiffon
0e14be8b15
N°4261 Refactor ExceptionLog ( #239 )
...
Doing a code review with Bruno, we agreed to do some little refactoring :
* Level per exception class
- Before the whole ExceptionLog::Log method was a total rewrite of its parent, with some code duplicates... not a good idea : we should better improve LogAPI to make other similar uses possible in the future !
- The logic to get level from config must be in a GetMinLogLevel override
* Write to DB
- Pull up this functionnality in LogAPI
- Add a sCode parameter in GetLevelDefault
Doing this refactoring, I also improved :
* Test the attributes set when creating the EventIssue object : during my dev I had crashes because I didn't filled all the mandatory fields... Having a PHPUnit test checking this will prevent future bugs to happen if attributes are modified in the class or in the object creation method
* Use Throwable instead of Exception : this was added in PHP 7.0 and will allow to catch both Exception and Error
* Because we need to have 2 statements on the same line in \Combodo\iTop\Test\UnitTest\Core\Log\ExceptionLogTest::testLogInFile, I modified the editorConfig file to allow disabling the formatter using comments.
2021-10-20 16:01:08 +02:00
odain
20f4419062
ci: add phpunit annotation to exclude/include test
2021-10-14 14:26:07 +02:00
denis.flaven@combodo.com
a7a9e5f0eb
N°4354 - Fixed the test which was using a (now fixed) edge case!
2021-10-06 18:45:41 +02:00
denis.flaven@combodo.com
bf4835eec0
N°4354 - Hide Administrator profile to non-admins
2021-10-06 15:34:23 +02:00