Beispiel #1
0
 def tearDown(self):
     # Clean up filespaces to be tidy.  Although we want to preserve
     # it for the investigation in case of test failure, without cleaning
     # it up it will prevent next tests from running correctly.
     walrepl.cleanupFilespaces(dbname=self.db_name) 
     # remove standby
     cmd = Command('gpinitstandby', 'gpinitstandby -ar')
     cmd.run()
Beispiel #2
0
    def tearDown(self):
        # stop standby, but not delete directory, as sometimes it is
        # useful to see what's going wrong.
        self.standby.stop()

        # Clean up filespaces to be tidy.  Although we want to preserve
        # it for the investigation in case of test failure, without cleaning
        # it up it will prevent next tests from running correctly.
        if 'cleanup_filespace' in self._metadata:
            walrepl.cleanupFilespaces(dbname=self.db_name)
Beispiel #3
0
    def tearDown(self):
        # stop standby, but not delete directory, as sometimes it is
        # useful to see what's going wrong.
        self.standby.stop()

        # Clean up filespaces to be tidy.  Although we want to preserve
        # it for the investigation in case of test failure, without cleaning
        # it up it will prevent next tests from running correctly.
        if 'cleanup_filespace' in self._metadata:
            walrepl.cleanupFilespaces(dbname=self.db_name)
Beispiel #4
0
    def tearDown(self):
        """
        Override
        """

        try:
            dburl = dbconn.DbURL()
            self.standby.remove_catalog_standby(dburl)
        except Exception:
            pass
        cleanupFilespaces(dbname=self.db_name)
Beispiel #5
0
 def tearDown(self):
     """
     Override
     """
 
     try:
         dburl = dbconn.DbURL()
         self.standby.remove_catalog_standby(dburl)
     except Exception:
         pass
     cleanupFilespaces(dbname=self.db_name)
 def tearDown(self):
     walrepl.cleanupFilespaces(dbname=os.environ.get('PGDATABASE'))
Beispiel #7
0
 def tearDown(self):
     walrepl.cleanupFilespaces(dbname=os.environ.get('PGDATABASE'))
     super(WalReplKillProcessScenarioTestCase, self).tearDown()
Beispiel #8
0
 def tearDown(self):
     # Cleanup Filespaces
     walrepl.cleanupFilespaces(dbname=self.db_name)
 def tearDown(self):
     walrepl.cleanupFilespaces(dbname=os.environ.get('PGDATABASE')) 
 def tearDown(self):
     walrepl.cleanupFilespaces(dbname=os.environ.get('PGDATABASE'))
     super(WalReplKillProcessScenarioTestCase, self).tearDown()