https://bugs.kde.org/show_bug.cgi?id=402284

            Bug ID: 402284
           Summary: ProviderTest::testFetchInvalidProvider() fails with:
                    Could not fetch provider
           Product: frameworks-attica
           Version: 5.53.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: gladh...@kde.org
          Reporter: ollieparan...@bitmessage.ch
  Target Milestone: ---

The ProviderTest in attica 5.53 is not working for me:


********* Start testing of ProviderTest *********
Config: Using QtTest library 5.10.1, Qt 5.10.1 (x86_64-little_endian-lp64
shared (dynamic) release build; by GCC 8.2.0)                          
PASS   : ProviderTest::initTestCase()
QDEBUG : ProviderTest::testFetchValidProvider() org.kde.attica: executing Get
for QUrl("https://autoconfig.kde.org/ocs/providers.xml";)           
QDEBUG : ProviderTest::testFetchValidProvider() got provider "api.kde-look.org" 
QDEBUG : ProviderTest::testFetchValidProvider() default providers loaded        
QDEBUG : ProviderTest::testFetchValidProvider() org.kde.attica: executing Get
request for QUrl("https://api.kde-look.org/ocs/v1/config";)         
QDEBUG : ProviderTest::testFetchValidProvider() "Config loaded - Server has
version" "1.7"                                                       
PASS   : ProviderTest::testFetchValidProvider()
QDEBUG : ProviderTest::testFetchInvalidProvider() org.kde.attica: executing Get
for QUrl("https://invalid-url.org/ocs/providers.xml";)            
FAIL!  : ProviderTest::testFetchInvalidProvider() Could not fetch provider      
   Loc: [/home/pmos/build/src/attica-5.53.0/autotests/providertest.cpp(134)]    
PASS   : ProviderTest::cleanupTestCase()
Totals: 3 passed, 1 failed, 0 skipped, 0 blacklisted, 5979ms
********* Finished testing of ProviderTest *********



Interestingly, the test for 5.52 isn't working anymore either, although it used
to work before. It fails with a slightly different error:


********* Start testing of ProviderTest *********
Config: Using QtTest library 5.10.1, Qt 5.10.1 (x86_64-little_endian-lp64
shared (dynamic) release build; by GCC 8.2.0)                                   
PASS   : ProviderTest::initTestCase()
QDEBUG : ProviderTest::testFetchValidProvider() org.kde.attica: executing Get
for QUrl("https://autoconfig.kde.org/ocs/providers.xml";)                        
QDEBUG : ProviderTest::testFetchValidProvider() got provider "api.kde-look.org"
QDEBUG : ProviderTest::testFetchValidProvider() default providers loaded
QDEBUG : ProviderTest::testFetchValidProvider() org.kde.attica: executing Get
request for QUrl("https://api.kde-look.org/ocs/v1/config";)                      
QDEBUG : ProviderTest::testFetchValidProvider() "Config loaded - Server has
version" "1.7"
PASS   : ProviderTest::testFetchValidProvider()
QDEBUG : ProviderTest::testFetchInvalidProvider() org.kde.attica: executing Get
for QUrl("https://invalid-url.org/ocs/providers.xml";)                           
FAIL!  : ProviderTest::testFetchInvalidProvider() Could not fetch provider
   Loc: [/home/pmos/build/src/attica-5.52.0/autotests/providertest.cpp(134)]
QDEBUG : ProviderTest::testFetchInvalidProvider() org.kde.attica: error:
"Premature end of document." in
QUrl("https://invalid-url.org/ocs/providers.xml";)                               
QDEBUG : ProviderTest::testFetchInvalidProvider() default providers loaded
PASS   : ProviderTest::cleanupTestCase()
Totals: 3 passed, 1 failed, 0 skipped, 0 blacklisted, 6501ms
********* Finished testing of ProviderTest *********


What I don't understand is: it is fetching from "invalid-url.org" - isn't that
supposed to fail?



STEPS TO REPRODUCE

Compile attica-qt, execute the tests.



SOFTWARE/OS VERSIONS

Arch Linux with a 4.14.88-1-lts kernel, compiling in an Alpine Linux edge
chroot (as set up with pmbootstrap from postmarketOS).

KDE Plasma Version: 5.53.0, 5.52.0
KDE Frameworks Version: 5.53.0, 5.52.0
Qt Version: 5.10.1

ADDITIONAL INFORMATION

It is working with the same chroot for another user.

Downstream report:
https://gitlab.com/postmarketOS/pmaports/merge_requests/105

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to