def setUpClass(cls):
     ''' 'test' workspace cannot exist in the test catalog'''
     cls.cat = utils.getGeoServerCatalog()
     utils.cleanCatalog(cls.cat.catalog)
     cls.cat.catalog.create_workspace(WORKSPACE, "http://geoserver.com")
     cls.ws = cls.cat.catalog.get_workspace(WORKSPACE)
     assert cls.ws is not None
 def setUpClass(cls):
     ''' 'test' workspace cannot exist in the test catalog'''
     cls.cat = utils.getGeoServerCatalog()
     utils.cleanCatalog(cls.cat.catalog)
     cls.cat.catalog.create_workspace(WORKSPACE, "http://geoserver.com")
     cls.ws = cls.cat.catalog.get_workspaces(WORKSPACE)[0]        
     projectFile = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data", "test.qgs")
     iface.addProject(projectFile)
 def setUpClass(cls):
     ''' 'test' workspace cannot exist in the test catalog'''
     cls.cat = utils.getGeoServerCatalog()
     utils.cleanCatalog(cls.cat.catalog)
     cls.cat.catalog.create_workspace(WORKSPACE, "http://geoserver.com")
     cls.ws = cls.cat.catalog.get_workspaces(WORKSPACE)[0]
     projectFile = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                                "data", "test_font.qgs")
     iface.addProject(projectFile)
 def setUpClass(cls):
     ''' 'test' workspace cannot exist in the test catalog'''
     cls.cat = utils.getGeoServerCatalog()
     utils.cleanCatalog(cls.cat.catalog)
     cls.cat.catalog.create_workspace(WORKSPACE, "http://geoserver.com")
     cls.ws = cls.cat.catalog.get_workspace(WORKSPACE)
     assert cls.ws is not None
     projectFile = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data", "test.qgs")
     if os.path.normcase(projectFile) != os.path.normcase(QgsProject.instance().fileName()):
         iface.addProject(projectFile)
 def setUpClass(cls):
     ''' 'test' workspace cannot exist in the test catalog'''
     cls.cat = utils.getGeoServerCatalog()
     utils.cleanCatalog(cls.cat.catalog)
     cls.cat.catalog.create_workspace(WORKSPACE, "http://geoserver.com")
     cls.ws = cls.cat.catalog.get_workspace(WORKSPACE)
     assert cls.ws is not None
     projectFile = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                                "data", "test.qgs")
     if os.path.normcase(projectFile) != os.path.normcase(
             QgsProject.instance().fileName()):
         iface.addProject(projectFile)
 def setUpClass(cls):
     ''' 'test' workspace cannot exist in the test catalog'''
     # setup auth configuration
     os.environ['QGIS_AUTH_DB_DIR_PATH'] = AUTH_TESTDATA
     cls.authm = QgsAuthManager.instance()
     msg = 'Failed to verify master password in auth db'
     assert cls.authm.setMasterPassword(AUTHDB_MASTERPWD, True), msg
     
     # connect and prepare pki catalog
     cls.cat = utils.getGeoServerCatalog(authcfgid=AUTHCFGID, authtype=AUTHTYPE)
     utils.cleanCatalog(cls.cat.catalog)
     cls.cat.catalog.create_workspace(WORKSPACE, "http://geoserver.com")
     cls.ws = cls.cat.catalog.get_workspace(WORKSPACE)
     assert cls.ws is not None
     projectFile = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data", "test.qgs")
     if os.path.normcase(projectFile) != os.path.normcase(QgsProject.instance().fileName()):
         iface.addProject(projectFile)
    def setUpClass(cls):
        ''' 'test' workspace cannot exist in the test catalog'''
        # setup auth configuration
        utils.initAuthManager()
        utils.populatePKITestCerts()

        # connect and prepare pki catalog
        cls.cat = utils.getGeoServerCatalog(authcfgid=utils.AUTHCFGID,
                                            authtype=utils.AUTHTYPE)
        utils.cleanCatalog(cls.cat.catalog)
        cls.cat.catalog.create_workspace(utils.WORKSPACE, "http://geoserver.com")
        cls.ws = cls.cat.catalog.get_workspace(utils.WORKSPACE)
        assert cls.ws is not None
        projectFile = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                                   "data", "test.qgs")
        if (os.path.normcase(projectFile) !=
           os.path.normcase(QgsProject.instance().fileName())):
            iface.addProject(projectFile)
Example #8
0
    def setUpClass(cls):
        ''' 'test' workspace cannot exist in the test catalog'''
        # setup auth configuration
        utils.initAuthManager()
        utils.populatePKITestCerts()

        # connect and prepare pki catalog
        cls.cat = utils.getGeoServerCatalog(authcfgid=utils.AUTHCFGID,
                                            authtype=utils.AUTHTYPE)
        utils.cleanCatalog(cls.cat.catalog)
        cls.cat.catalog.create_workspace(utils.WORKSPACE,
                                         "http://geoserver.com")
        cls.ws = cls.cat.catalog.get_workspace(utils.WORKSPACE)
        assert cls.ws is not None
        projectFile = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                                   "data", "test.qgs")
        if (os.path.normcase(projectFile) != os.path.normcase(
                QgsProject.instance().fileName())):
            iface.addProject(projectFile)
 def tearDownClass(cls):
     utils.cleanCatalog(cls.cat.catalog)
Example #10
0
 def tearDownClass(cls):
     utils.cleanCatalog(cls.cat)
     QSettings().setValue(SETTINGS_CACHE_TIME, cls.cache_time)
 def tearDownClass(cls):
     utils.cleanCatalog(cls.cat.catalog)
 def tearDownClass(cls):
     """Teardown test class."""
     utils.cleanCatalog(cls.cat.catalog)
     # remove certs
     pem.removeCatalogPkiTempFiles(cls.cat)
     utils.removePKITestCerts()
 def tearDownClass(cls):
     utils.cleanCatalog(cls.cat.catalog)
     # remove certs
     pem.removeCatalogPkiTempFiles(cls.cat)
Example #14
0
 def tearDownClass(cls):
     utils.cleanCatalog(cls.cat)
     setPluginSetting("AuthCatalogXMLCacheTime", cls.cache_time)
 def tearDownClass(cls):
     utils.cleanCatalog(cls.cat)
     utils.cleanDatabase(cls.conn)
Example #16
0
 def tearDownClass(cls):
     """Teardown test class."""
     utils.cleanCatalog(cls.cat.catalog)
     # remove certs
     pem.removeCatalogPkiTempFiles(cls.cat)
     utils.removePKITestCerts()