Closed gioman closed 7 years ago
found the problem in the esoteric behavior of module load that are lost!
@elpaso travis goes well, but there is an anomaly doing rundockertest.sh locally where the PKI stuck because qgis gui does not start. I can't find why no PKI unit tests works correctly.
other errors found as in log: `PKI GeoServer
[PASSED] geoserverexplorer.test.pkicatalogtests.PkiCatalogTests.testDuplicatedLayerNamesInDifferentWorkSpaces [PASSED] geoserverexplorer.test.pkicatalogtests.PkiCatalogTests.testGroup [PASSED] geoserverexplorer.test.pkicatalogtests.PkiCatalogTests.testPreuploadVectorHook [PASSED] geoserverexplorer.test.pkicatalogtests.PkiCatalogTests.testRasterLayerRoundTrip [PASSED] geoserverexplorer.test.pkicatalogtests.PkiCatalogTests.testRasterLayerUncompatibleFormat [PASSED] geoserverexplorer.test.pkicatalogtests.PkiCatalogTests.testRasterStylingUpload [PASSED] geoserverexplorer.test.pkicatalogtests.PkiCatalogTests.testUploadRenameAndDownload [PASSED] geoserverexplorer.test.pkicatalogtests.PkiCatalogTests.testVectorLayerRoundTrip [PASSED] geoserverexplorer.test.pkicatalogtests.PkiCatalogTests.testVectorLayerUncompatibleFormat [PASSED] geoserverexplorer.test.pkicatalogtests.PkiCatalogTests.testVectorStylingUpload [PASSED] geoserverexplorer.test.pkideletetests.PkiDeleteTests.testDeleteGWCLayer [PASSED] geoserverexplorer.test.pkideletetests.PkiDeleteTests.testDeleteLayerAndStyle [PASSED] geoserverexplorer.test.pkideletetests.PkiDeleteTests.testDeleteLayersWithSameName [PASSED] TODO: test deleting only style. [PASSED] geoserverexplorer.test.pkideletetests.PkiDeleteTests.testDeleteWorkspace [PASSED] geoserverexplorer.test.pkidragdroptests.PkiDragDropTests.testDropGsLayerInGsGroupItem [PASSED] geoserverexplorer.test.pkidragdroptests.PkiDragDropTests.testDropGsStyleInGsLayerItem [PASSED] geoserverexplorer.test.pkidragdroptests.PkiDragDropTests.testDropVectorLayerUriInCatalogItem [PASSED] geoserverexplorer.test.pkidragdroptests.PkiDragDropTests.testDropVectorLayerUriInLayersItem [PASSED] geoserverexplorer.test.pkidragdroptests.PkiDragDropTests.testDropVectorLayerUriInWorkspaceItem [FAILED] geoserverexplorer.test.pkiguitests.PkiCreateCatalogDialogTests.testCreateCatalogDialog Failed at step Run unit test with message
(, TypeError('unable to convert a QVariant of type 0 to a QMetaType of type 2',), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\case.py", line 322, in run self.setUp() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\guitests.py", line 40, in setUp self.cat = getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 90, in getGeoServerCatalog conf['AUTHCFG'], conf['AUTHTYPE']) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\qgis\catalog.py", line 61, in createGeoServerCatalog cache_time = int(settings.value("/GeoServer/Settings/GeoServer/AuthCatalogXMLCacheTime", 180, int)) Traceback (most recent call last): File "C:/Users/boundless/.qgis2/python/plugins\qgistester\testerwidget.py", line 119, in runNextStep execute(step.function) File "C:/Users/boundless/.qgis2/python/plugins\qgistester\utils.py", line 70, in execute return func() File "C:/Users/boundless/.qgis2/python/plugins\qgistester\test.py", line 66, in _runTest raise Exception(desc) Exception: (, TypeError('unable to convert a QVariant of type 0 to a QMetaType of type 2',), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\case.py", line 322, in run self.setUp() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\guitests.py", line 40, in setUp self.cat = getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 90, in getGeoServerCatalog conf['AUTHCFG'], conf['AUTHTYPE']) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\qgis\catalog.py", line 61, in createGeoServerCatalog cache_time = int(settings.value("/GeoServer/Settings/GeoServer/AuthCatalogXMLCacheTime", 180, int)) [FAILED] geoserverexplorer.test.pkiguitests.PkiCreateCatalogDialogTests.testCreateCatalogDialogUsingExistingName Failed at step Run unit test with message
(, TypeError('unable to convert a QVariant of type 0 to a QMetaType of type 2',), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\case.py", line 322, in run self.setUp() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\guitests.py", line 40, in setUp self.cat = getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 90, in getGeoServerCatalog conf['AUTHCFG'], conf['AUTHTYPE']) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\qgis\catalog.py", line 61, in createGeoServerCatalog cache_time = int(settings.value("/GeoServer/Settings/GeoServer/AuthCatalogXMLCacheTime", 180, int)) Traceback (most recent call last): File "C:/Users/boundless/.qgis2/python/plugins\qgistester\testerwidget.py", line 119, in runNextStep execute(step.function) File "C:/Users/boundless/.qgis2/python/plugins\qgistester\utils.py", line 70, in execute return func() File "C:/Users/boundless/.qgis2/python/plugins\qgistester\test.py", line 66, in _runTest raise Exception(desc) Exception: (, TypeError('unable to convert a QVariant of type 0 to a QMetaType of type 2',), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\case.py", line 322, in run self.setUp() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\guitests.py", line 40, in setUp self.cat = getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 90, in getGeoServerCatalog conf['AUTHCFG'], conf['AUTHTYPE']) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\qgis\catalog.py", line 61, in createGeoServerCatalog cache_time = int(settings.value("/GeoServer/Settings/GeoServer/AuthCatalogXMLCacheTime", 180, int)) [FAILED] geoserverexplorer.test.pkiguitests.PkiCreateCatalogDialogTests.testCreateCatalogDialogWithUrlWithoutProtocol Failed at step Run unit test with message
(, TypeError('unable to convert a QVariant of type 0 to a QMetaType of type 2',), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\case.py", line 322, in run self.setUp() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\guitests.py", line 40, in setUp self.cat = getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 90, in getGeoServerCatalog conf['AUTHCFG'], conf['AUTHTYPE']) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\qgis\catalog.py", line 61, in createGeoServerCatalog cache_time = int(settings.value("/GeoServer/Settings/GeoServer/AuthCatalogXMLCacheTime", 180, int)) Traceback (most recent call last): File "C:/Users/boundless/.qgis2/python/plugins\qgistester\testerwidget.py", line 119, in runNextStep execute(step.function) File "C:/Users/boundless/.qgis2/python/plugins\qgistester\utils.py", line 70, in execute return func() File "C:/Users/boundless/.qgis2/python/plugins\qgistester\test.py", line 66, in _runTest raise Exception(desc) Exception: (, TypeError('unable to convert a QVariant of type 0 to a QMetaType of type 2',), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\case.py", line 322, in run self.setUp() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\guitests.py", line 40, in setUp self.cat = getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 90, in getGeoServerCatalog conf['AUTHCFG'], conf['AUTHTYPE']) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\qgis\catalog.py", line 61, in createGeoServerCatalog cache_time = int(settings.value("/GeoServer/Settings/GeoServer/AuthCatalogXMLCacheTime", 180, int)) [FAILED] geoserverexplorer.test.pkiguitests.PkiCreateCatalogDialogTests.testLastCatalogNameIsShownByDefault Failed at step Run unit test with message
(, TypeError('unable to convert a QVariant of type 0 to a QMetaType of type 2',), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\case.py", line 322, in run self.setUp() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\guitests.py", line 40, in setUp self.cat = getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 90, in getGeoServerCatalog conf['AUTHCFG'], conf['AUTHTYPE']) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\qgis\catalog.py", line 61, in createGeoServerCatalog cache_time = int(settings.value("/GeoServer/Settings/GeoServer/AuthCatalogXMLCacheTime", 180, int)) Traceback (most recent call last): File "C:/Users/boundless/.qgis2/python/plugins\qgistester\testerwidget.py", line 119, in runNextStep execute(step.function) File "C:/Users/boundless/.qgis2/python/plugins\qgistester\utils.py", line 70, in execute return func() File "C:/Users/boundless/.qgis2/python/plugins\qgistester\test.py", line 66, in _runTest raise Exception(desc) Exception: (, TypeError('unable to convert a QVariant of type 0 to a QMetaType of type 2',), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\case.py", line 322, in run self.setUp() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\guitests.py", line 40, in setUp self.cat = getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 90, in getGeoServerCatalog conf['AUTHCFG'], conf['AUTHTYPE']) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\qgis\catalog.py", line 61, in createGeoServerCatalog cache_time = int(settings.value("/GeoServer/Settings/GeoServer/AuthCatalogXMLCacheTime", 180, int)) [PASSED] geoserverexplorer.test.pkiguitests.PkiGroupDialogTests.testCannotEditName [PASSED] geoserverexplorer.test.pkiguitests.PkiGroupDialogTests.testGroupDialogWithEmptyName [PASSED] geoserverexplorer.test.pkiguitests.PkiGroupDialogTests.testGroupDialogWithNameContaingBlankSpaces [PASSED] geoserverexplorer.test.pkiguitests.PkiGroupDialogTests.testSelectAllButton [FAILED] geoserverexplorer.test.pkiguitests.PkiLayerDialogTests.testPublishLayersDialog Failed at step Run unit test with message
(, TypeError('unable to convert a QVariant of type 0 to a QMetaType of type 2',), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\suite.py", line 146, in _handleClassSetUp setUpClass() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\pkiguitests.py", line 66, in setUpClass super(PkiLayerDialogTests, cls).setUpClass() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\guitests.py", line 174, in setUpClass cls.catWrapper = getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 90, in getGeoServerCatalog conf['AUTHCFG'], conf['AUTHTYPE']) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\qgis\catalog.py", line 61, in createGeoServerCatalog cache_time = int(settings.value("/GeoServer/Settings/GeoServer/AuthCatalogXMLCacheTime", 180, int)) Traceback (most recent call last): File "C:/Users/boundless/.qgis2/python/plugins\qgistester\testerwidget.py", line 119, in runNextStep execute(step.function) File "C:/Users/boundless/.qgis2/python/plugins\qgistester\utils.py", line 70, in execute return func() File "C:/Users/boundless/.qgis2/python/plugins\qgistester\test.py", line 66, in _runTest raise Exception(desc) Exception: (, TypeError('unable to convert a QVariant of type 0 to a QMetaType of type 2',), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\suite.py", line 146, in _handleClassSetUp setUpClass() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\pkiguitests.py", line 66, in setUpClass super(PkiLayerDialogTests, cls).setUpClass() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\guitests.py", line 174, in setUpClass cls.catWrapper = getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 90, in getGeoServerCatalog conf['AUTHCFG'], conf['AUTHTYPE']) File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\qgis\catalog.py", line 61, in createGeoServerCatalog cache_time = int(settings.value("/GeoServer/Settings/GeoServer/AuthCatalogXMLCacheTime", 180, int)) [FAILED] geoserverexplorer.test.pkiguitests.PkiGsNameUtilsTest.testGSNameStaticUtils Failed at step Run unit test with message
(, AttributeError("'NoneType' object has no attribute 'storeCertAuthorities'",), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\suite.py", line 146, in _handleClassSetUp setUpClass() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\pkiguitests.py", line 84, in setUpClass utils.populatePKITestCerts() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 242, in populatePKITestCerts AUTHM.storeCertAuthorities(cacerts) Traceback (most recent call last): File "C:/Users/boundless/.qgis2/python/plugins\qgistester\testerwidget.py", line 119, in runNextStep execute(step.function) File "C:/Users/boundless/.qgis2/python/plugins\qgistester\utils.py", line 70, in execute return func() File "C:/Users/boundless/.qgis2/python/plugins\qgistester\test.py", line 66, in _runTest raise Exception(desc) Exception: (, AttributeError("'NoneType' object has no attribute 'storeCertAuthorities'",), ) File "C:\PROGRA~1\BOUNDL~1\Desktop\1.1\osgeo4w\apps\Python27\lib\unittest\suite.py", line 146, in _handleClassSetUp setUpClass() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\pkiguitests.py", line 84, in setUpClass utils.populatePKITestCerts() File "C:/Users/boundless/.qgis2/python/plugins\geoserverexplorer\test\utils.py", line 242, in populatePKITestCerts AUTHM.storeCertAuthorities(cacerts) [PASSED] geoserverexplorer.test.pkiguitests.PkiGsNameUtilsTest.testGSNameWidgetInit [PASSED] geoserverexplorer.test.pkiguitests.PkiGsNameUtilsTest.testGSNameWidgetInvalidName [PASSED] geoserverexplorer.test.pkiguitests.PkiGsNameUtilsTest.testGSNameWidgetMaxLenName [PASSED] geoserverexplorer.test.pkiguitests.PkiGsNameUtilsTest.testGSNameWidgetNames [PASSED] geoserverexplorer.test.pkiguitests.PkiGsNameUtilsTest.testGSNameWidgetUniqueName [PASSED] geoserverexplorer.test.pkiguitests.PkiGsNameUtilsTest.testGSNameWidgetValidName [PASSED] geoserverexplorer.test.pkiguitests.PkiGSNameDialogTest.testGSNameDialog [PASSED] geoserverexplorer.test.pkiowstests.PKIOWSTests.testOpenWFSLayer [PASSED] geoserverexplorer.test.pkiowstests.PKIOWSTests.testOpenWMSLayer`
new logs for win7/win10 runs against suite49 endpoint (all green in Linux running qgis on the host against both suite 49 and 410)
AuthCatalogXMLCacheTime error was due the lack of default initialization
btw this does not explain errors like: 'NoneType' object has no attribute <....> I just verified that this kind of errors is not present (or less frequent) in case of restarting qgis after loaded plugins or in general, before to start the test:
sono other notes: This error (NoneType) is not present testing on Linux or OSX (python 2.7.12) but only present in Windows (python 2.7.5)
Logs attached. This has been seen on Windows 10 but I think is the same also on Windows 7. BD 1.1 b6 and Geoserver explorer master.
logs_pki.zip