Details
-
Task
-
Resolution: Fixed
-
None
-
High
-
Bugfix failing test
-
Empty show more show less
Description
Failing:
MittagQI\Translate5\Plugins\ConnectWorldserver\tests\ExternalOnlineReviewTest::testCreateTaskFromWorldserverTestdata
Problem is:
Test API can not access URL
Page not found: /editor/plugins_connectworldserver/wsnotification?wsTaskId=callByTest/ Aufruf erfolgte durch IP: 172.18.0.9
when running as pipeline-test on BitBucket. Hmmmmm.....
what I found out
if I disable the plugin by "t5 plugin:disable ConnectWorldserver" and then run the test on my local installation, I do get the exact same error.
So problem is:
Plugin is not active when running test in BitBucket pipeline.
more details
currently there is a hard-coded list of plugins which are activated when running a pipeline test. Its something like:
t5 enable:plugin Plugin1 Plugin2 ...
so either this list can simply be expanded with the new plugin. But then we have the same problem in the future. Better solution will be to have a new command, something like:
bg. t5 test:enableAllNeededPlugins
which does that automatically.
Btw. there is also a hard-coded list to create sym-links for private plugins. There we have a similar problem which should also be fixed in the same matter as above. Or simply this can be included in the new "test:enableAllNeededPlugins" command, so symlinks are generated for private plugins automatically if needed.