Skip to content

Commit

Permalink
Disable connecting external RSS during unit testing (#626)
Browse files Browse the repository at this point in the history
The external RSS service is called during front-end unit tests. This mod disables the connection to external RSS services in these tests to avoid slowing down tests in environments where calling external services is prohibited.

* Disable connecting external RSS during unit testing

In 6370b5b connecting externa RSS was
disabled only in `Basic.t` and according to #45
it should be disabled in `PictureUpload.t` also. This mod fixes it.

Fixes: 6370b5b
Related: #45
Author-Change-Id: IB#1156232
Signed-off-by: Pawel Boguslawski <[email protected]>

* Update CHANGES.md
* Update PictureUpload.t

---------

Signed-off-by: Pawel Boguslawski <[email protected]>
  • Loading branch information
pboguslawski authored Jan 15, 2025
1 parent ffbf2ee commit 892e675
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/test/Frontend/PictureUpload.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ my $JSONObject = $Kernel::OM->Get('Kernel::System::JSON');
# get helper object
$Kernel::OM->ObjectParamAdd(
'Kernel::System::UnitTest::Helper' => {
SkipSSLVerify => 1
SkipSSLVerify => 1,
DisableSysConfigs => [
'DashboardBackend###0442-RSS',
],
},
);
my $HelperObject = $Kernel::OM->Get('Kernel::System::UnitTest::Helper');
Expand Down

0 comments on commit 892e675

Please sign in to comment.