Closed lslezak closed 2 years ago
:heavy_check_mark: Public Jenkins job #338 successfully finished :heavy_check_mark: Created OBS submit request #940886
:heavy_check_mark: Internal Jenkins job #176 successfully finished :heavy_check_mark: Created IBS submit request #260548
FTP URL Fix
It turned out that the
URI
class processes FTP URL paths a bit differently. Normally you have to use an absolute path otherwise you get an exception:But FTP URL is escaped when the path starts with
/
:And it is allowed to use a relative path:
So there is an exception in the code for the FTP URLs to process them correctly.
Note: that's because FTP really allows using absolute paths for files!
Improve Mocking Yast::InstURL Module
Originally the module was always mocked but then the problem is that the RSpec verifying doubles will not work as expected. There might be an inconsistency between the mocked
InstURL
and the realInstURL
.But when running the tests locally or in GitHub Actions the real module is actually present and we do no need to reimplement it completely. Then the verifying doubles would use the real module and provide more reliable testing.