def setUp(self): TEST_SERVER_MANAGER.reset() self.foo_host = "http://crossref-foo-server" self.foo_id = "http://support.riverbed.com/apis/crossref.foo/1.0" self.fooserver = TEST_SERVER_MANAGER.register_server(self.foo_host, self.foo_id, None, CrossRefFooServer, self) self.fooserver.allowed_auth = {"test1": "password1"} self.bar_host = "http://crossref-bar-server" self.bar_id = "http://support.riverbed.com/apis/crossref.bar/1.0" self.barserver = TEST_SERVER_MANAGER.register_server(self.bar_host, self.bar_id, None, CrossRefBarServer, self) self.barserver.allowed_auth = {"test1": "password2"}
def setUp(self): self.id = 'http://support.riverbed.com/apis/basic/1.0' self.host = 'http://basic-server:80' TEST_SERVER_MANAGER.reset() self.server = TEST_SERVER_MANAGER.register_server( self.host, self.id, None, BasicServer, self) self.server.allowed_auth = {'test': 'password'}
def setUp(self): self.id = 'http://support.riverbed.com/apis/basic/1.0' self.host = 'http://basic-server:80' TEST_SERVER_MANAGER.reset() self.server = TEST_SERVER_MANAGER.register_server( self.host, self.id, None, BasicServer, self) self.service = SERVICE_MANAGER.find_by_id(self.host, self.id)
def setUp(self): TEST_SERVER_MANAGER.reset() foo_id = "http://support.riverbed.com/apis/crossref.foo/1.0" bar_id = "http://support.riverbed.com/apis/crossref.bar/1.0" TEST_SERVER_MANAGER.register_server("http://crossref-foo-server", foo_id, None, CrossRefFooServer, self) for i in range(3): TEST_SERVER_MANAGER.register_server( "http://crossref-bar-server-%d" % i, bar_id, None, CrossRefBarServer, self ) for j in range(3): TEST_SERVER_MANAGER.register_server( "http://crossref-bar-server-%d" % i, bar_id, "instance-%d" % j, CrossRefBarServer, self )