Esempio n. 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()
Esempio n. 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)
Esempio n. 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)
Esempio n. 4
0
    def tearDown(self):
        """
        Override
        """

        try:
            dburl = dbconn.DbURL()
            self.standby.remove_catalog_standby(dburl)
        except Exception:
            pass
        cleanupFilespaces(dbname=self.db_name)
Esempio n. 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'))
Esempio n. 7
0
 def tearDown(self):
     walrepl.cleanupFilespaces(dbname=os.environ.get('PGDATABASE'))
     super(WalReplKillProcessScenarioTestCase, self).tearDown()
Esempio n. 8
0
 def tearDown(self):
     # Cleanup Filespaces
     walrepl.cleanupFilespaces(dbname=self.db_name)
Esempio n. 9
0
 def tearDown(self):
     walrepl.cleanupFilespaces(dbname=os.environ.get('PGDATABASE')) 
Esempio n. 10
0
 def tearDown(self):
     walrepl.cleanupFilespaces(dbname=os.environ.get('PGDATABASE'))
     super(WalReplKillProcessScenarioTestCase, self).tearDown()