def setUp(self): """ Set replication to 2 other navistore http server instances. For simplicity those instances are going to be assumed to be running on the same machine this test runs. However, it should be easy to configure otherwise replacing the hostnames/ports and re-running the test. To run the test, have 2 other instancs running at ports 8889 and 8887. """ self.localstore = HttpStorageBackend(SERVER_HOST) self.localstore.save('/_replication_slaves', "http://localhost:8889,http://localhost:8887") self.remote1 = HttpStorageBackend(REMOTE1) self.remote2 = HttpStorageBackend(REMOTE2)
def setUp(self): """ create a backend object that allows us to interact with the key value storage """ self.store = HttpStorageBackend(SERVER_HOST)