Пример #1
0
 def test_create_xdbc_server(self):
     server = XdbcServer("foo-xdbc", "Default", 10101, '/', 'Documents')
     assert "foo-xdbc" == server.server_name()
     server.create(self.connection)
     assert server is not None
     assert "xdbc" == server.server_type()
     server.delete(self.connection)
     server = Server.lookup(self.connection, "foo-xdbc")
     assert server is None
Пример #2
0
 def test_create_xdbc_server(self):
     server = XdbcServer("foo-xdbc", "Default", 10101, '/', 'Documents')
     assert "foo-xdbc" == server.server_name()
     server.create(self.connection)
     assert server is not None
     assert "xdbc" == server.server_type()
     server.delete(self.connection)
     server = Server.lookup(self.connection, "foo-xdbc")
     assert server is None
Пример #3
0
 def test_create_xdbc_server(self):
     connection = Connection.make_connection(tc.hostname, tc.admin, tc.password)
     server = XdbcServer("foo-xdbc", "Default", 10101, '/', 'Documents')
     self.assertEqual(server.server_name(), "foo-xdbc")
     server.create(connection)
     self.assertIsNotNone(server)
     self.assertEqual("xdbc", server.server_type())
     server.delete(connection)
     server = Server.lookup(connection, "foo-xdbc")
     self.assertIsNone(server)
Пример #4
0
 def test_create_xdbc_server(self):
     connection = Connection.make_connection(tc.hostname, tc.admin,
                                             tc.password)
     server = XdbcServer("foo-xdbc", "Default", 10101, '/', 'Documents')
     self.assertEqual(server.server_name(), "foo-xdbc")
     server.create(connection)
     self.assertIsNotNone(server)
     self.assertEqual("xdbc", server.server_type())
     server.delete(connection)
     server = Server.lookup(connection, "foo-xdbc")
     self.assertIsNone(server)