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
Exemplo n.º 2
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 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)
Exemplo n.º 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)
Exemplo n.º 9
0
 def tearDownClass(cls):
     utils.cleanCatalog(cls.cat.catalog)
Exemplo n.º 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()
Exemplo n.º 13
0
 def tearDownClass(cls):
     utils.cleanCatalog(cls.cat.catalog)
     # remove certs
     pem.removeCatalogPkiTempFiles(cls.cat)
Exemplo n.º 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)
Exemplo n.º 16
0
 def tearDownClass(cls):
     """Teardown test class."""
     utils.cleanCatalog(cls.cat.catalog)
     # remove certs
     pem.removeCatalogPkiTempFiles(cls.cat)
     utils.removePKITestCerts()