Exemple #1
0
    def setUpClass(cls):
        # setup auth configuration
        utils.initAuthManager()
        utils.populatePKITestCerts()

        # do workspace popuplation
        super(PkiDragDropTests, cls).setUpClass()
    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 setUpClass(cls):
        # setup auth configuration
        utils.initAuthManager()
        utils.populatePKITestCerts()

        # do workspace popuplation
        super(PkiDeleteTests, cls).setUpClass()

        cls.ws = cls.cat.get_workspace(utils.WORKSPACE)
        assert cls.ws is not None

        # load project
        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)
        # set flags to instruct GUI interaction
        cls.confirmDelete = QSettings().value("/GeoServer/Settings/General/ConfirmDelete", True, bool)
        QSettings().setValue("/GeoServer/Settings/General/ConfirmDelete", False)
Exemple #4
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 setUpClass(cls):
        # setup auth configuration
        utils.initAuthManager()
        utils.populatePKITestCerts()

        # do workspace population
        super(PkiDeleteTests, cls).setUpClass()

        cls.ws = cls.cat.get_workspace(utils.WORKSPACE)
        assert cls.ws is not None

        # load project
        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)
        # set flags to instruct GUI interaction
        cls.confirmDelete = pluginSetting("ConfirmDelete")
        setPluginSetting("ConfirmDelete", False)
Exemple #6
0
 def setUpClass(cls):
     """Run before all tests"""
     # setup auth configuration
     utils.initAuthManager()
     utils.populatePKITestCerts()
 def setUpClass(cls):
     """Run before all tests"""
     # setup auth configuration
     utils.initAuthManager()
     utils.populatePKITestCerts()
Exemple #8
0
 def setUpClass(cls):
     # setup auth configuration
     utils.initAuthManager()
     utils.populatePKITestCerts()
Exemple #9
0
    def setUpClass(cls):
        # setup auth configuration
        utils.initAuthManager()
        utils.populatePKITestCerts()

        super(PkiLayerDialogTests, cls).setUpClass()