Ejemplo n.º 1
0
    def test_identify_system(self):
        """
        Check if the system identifier matches.

        @tags sanity
        """

        with WalClient("replication=true") as client:
            (sysid, tli, xpos) = client.identify_system()

            datadir = os.environ['MASTER_DATA_DIRECTORY']
            controldata = PgControlData(datadir)

            assert sysid == controldata.get('Database system identifier')
Ejemplo n.º 2
0
    def test_identify_system(self):
        """
        Check if the system identifier matches.

        @tags sanity
        """

        with WalClient("replication=true") as client:
            (sysid, tli, xpos) = client.identify_system()

            datadir = os.environ['MASTER_DATA_DIRECTORY']
            controldata = PgControlData(datadir)

            assert sysid == controldata.get('Database system identifier')
Ejemplo n.º 3
0
 def fetch_tli(self, data_dir_path):
     controldata = PgControlData(data_dir_path)
     return controldata.get("Latest checkpoint's TimeLineID")