1
0
Fork 0

fixed tests

This commit is contained in:
Frank Celler 2016-04-06 16:49:06 +02:00
parent f8f403e55d
commit e7f31748e8
1 changed files with 8 additions and 8 deletions

View File

@ -130,7 +130,7 @@ BOOST_AUTO_TEST_CASE (EndpointSpecification) {
CHECK_ENDPOINT_FEATURE(client, "SSL://127.0.0.5", specification, "http+ssl://127.0.0.5:8529");
CHECK_ENDPOINT_FEATURE(client, "httP@ssl://localhost:4635", specification, "http+ssl://localhost:4635");
CHECK_ENDPOINT_SERVER_FEATURE(server, "unix:///path/to/socket", specification, "unix:///path/to/socket");
CHECK_ENDPOINT_SERVER_FEATURE(server, "unix:///path/to/socket", specification, "http+unix:///path/to/socket");
CHECK_ENDPOINT_SERVER_FEATURE(server, "htTp@UNIx:///a/b/c/d/e/f.s", specification, "http+unix:///a/b/c/d/e/f.s");
}
@ -413,7 +413,7 @@ BOOST_AUTO_TEST_CASE (EndpointHostString) {
CHECK_ENDPOINT_FEATURE(client, "tcp://localhost", hostAndPort, "localhost:8529");
CHECK_ENDPOINT_FEATURE(client, "tcp://www.arangodb.org", hostAndPort, "www.arangodb.org:8529");
CHECK_ENDPOINT_FEATURE(client, "tcp://arangodb.org", hostAndPort, "arangodb.org:8529");
CHECK_ENDPOINT_FEATURE(client, "tcp://DE.triagens.ArangoDB.org", hostAndPort, "DE.triagens.ArangoDB.org:8529");
CHECK_ENDPOINT_FEATURE(client, "tcp://DE.triagens.ArangoDB.org", hostAndPort, "de.triagens.arangodb.org:8529");
CHECK_ENDPOINT_FEATURE(client, "tcp://192.168.173.13:8529", hostAndPort, "192.168.173.13:8529");
CHECK_ENDPOINT_FEATURE(client, "tcp://192.168.173.13:678", hostAndPort, "192.168.173.13:678");
CHECK_ENDPOINT_FEATURE(client, "tcp://127.0.0.1:8529", hostAndPort, "127.0.0.1:8529");
@ -440,7 +440,7 @@ BOOST_AUTO_TEST_CASE (EndpointHostString) {
CHECK_ENDPOINT_FEATURE(client, "ssl://localhost", hostAndPort, "localhost:8529");
CHECK_ENDPOINT_FEATURE(client, "ssl://www.arangodb.org", hostAndPort, "www.arangodb.org:8529");
CHECK_ENDPOINT_FEATURE(client, "ssl://arangodb.org", hostAndPort, "arangodb.org:8529");
CHECK_ENDPOINT_FEATURE(client, "ssl://DE.triagens.ArangoDB.org", hostAndPort, "DE.triagens.ArangoDB.org:8529");
CHECK_ENDPOINT_FEATURE(client, "ssl://DE.triagens.ArangoDB.org", hostAndPort, "de.triagens.arangodb.org:8529");
CHECK_ENDPOINT_FEATURE(client, "ssl://192.168.173.13:8529", hostAndPort, "192.168.173.13:8529");
CHECK_ENDPOINT_FEATURE(client, "ssl://192.168.173.13:1234", hostAndPort, "192.168.173.13:1234");
CHECK_ENDPOINT_FEATURE(client, "ssl://localhost:8529", hostAndPort, "localhost:8529");
@ -542,7 +542,7 @@ BOOST_AUTO_TEST_CASE (EndpointServerTcpIpv4WithPort) {
Endpoint* e;
e = arangodb::Endpoint::serverFactory("tcp://127.0.0.1:667", 1, true);
BOOST_CHECK_EQUAL("tcp://127.0.0.1:667", e->specification());
BOOST_CHECK_EQUAL("http+tcp://127.0.0.1:667", e->specification());
BOOST_CHECK_EQUAL(arangodb::Endpoint::EndpointType::SERVER, e->type());
BOOST_CHECK_EQUAL(arangodb::Endpoint::DomainType::IPV4, e->domainType());
BOOST_CHECK_EQUAL(arangodb::Endpoint::EncryptionType::NONE, e->encryption());
@ -562,7 +562,7 @@ BOOST_AUTO_TEST_CASE (EndpointServerUnix) {
Endpoint* e;
e = arangodb::Endpoint::serverFactory("unix:///path/to/arango.sock", 1, true);
BOOST_CHECK_EQUAL("unix:///path/to/arango.sock", e->specification());
BOOST_CHECK_EQUAL("http+unix:///path/to/arango.sock", e->specification());
BOOST_CHECK_EQUAL(arangodb::Endpoint::EndpointType::SERVER, e->type());
BOOST_CHECK_EQUAL(arangodb::Endpoint::DomainType::UNIX, e->domainType());
BOOST_CHECK_EQUAL(arangodb::Endpoint::EncryptionType::NONE, e->encryption());
@ -581,8 +581,8 @@ BOOST_AUTO_TEST_CASE (EndpointServerUnix) {
BOOST_AUTO_TEST_CASE (EndpointClientSslIpV6WithPortHttp) {
Endpoint* e;
e = arangodb::Endpoint::clientFactory("http@SSL://[0001:0002:0003:0004:0005:0006:0007:0008]:43425");
BOOST_CHECK_EQUAL("http@SSL://[0001:0002:0003:0004:0005:0006:0007:0008]:43425", e->specification());
e = arangodb::Endpoint::clientFactory("http+ssl://[0001:0002:0003:0004:0005:0006:0007:0008]:43425");
BOOST_CHECK_EQUAL("http+ssl://[0001:0002:0003:0004:0005:0006:0007:0008]:43425", e->specification());
BOOST_CHECK_EQUAL(arangodb::Endpoint::EndpointType::CLIENT, e->type());
BOOST_CHECK_EQUAL(arangodb::Endpoint::DomainType::IPV6, e->domainType());
BOOST_CHECK_EQUAL(arangodb::Endpoint::EncryptionType::SSL, e->encryption());
@ -602,7 +602,7 @@ BOOST_AUTO_TEST_CASE (EndpointClientTcpIpv6WithoutPort) {
Endpoint* e;
e = arangodb::Endpoint::clientFactory("tcp://[::]");
BOOST_CHECK_EQUAL("tcp://[::]", e->specification());
BOOST_CHECK_EQUAL("http+tcp://[::]:8529", e->specification());
BOOST_CHECK_EQUAL(arangodb::Endpoint::EndpointType::CLIENT, e->type());
BOOST_CHECK_EQUAL(arangodb::Endpoint::DomainType::IPV6, e->domainType());
BOOST_CHECK_EQUAL(arangodb::Endpoint::EncryptionType::NONE, e->encryption());