From ab899d55450a8827099d2c8c0baef919f8cfaea4 Mon Sep 17 00:00:00 2001 From: Khosrow Afroozeh Date: Fri, 29 Nov 2024 13:15:41 +0100 Subject: [PATCH] Add -use-services-alternate to test arguments --- aerospike_suite_test.go | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/aerospike_suite_test.go b/aerospike_suite_test.go index 478c46d4..af301d88 100644 --- a/aerospike_suite_test.go +++ b/aerospike_suite_test.go @@ -39,18 +39,19 @@ import ( ) var ( - hosts = flag.String("hosts", "", "Comma separated Aerospike server seed hostnames or IP addresses and ports. eg: s1:3000,s2:3000,s3:3000") - host = flag.String("h", "127.0.0.1", "Aerospike server seed hostnames or IP addresses") - nativeHosts = flag.String("nh", "127.0.0.1:3000", "Native Aerospike server seed hostnames or IP addresses, used in tests for GRPC to support unsupported API") - port = flag.Int("p", 3000, "Aerospike server seed hostname or IP address port number.") - user = flag.String("U", "", "Username.") - password = flag.String("P", "", "Password.") - authMode = flag.String("A", "internal", "Authentication mode: internal | external") - useReplicas = flag.Bool("use-replicas", false, "Aerospike will use replicas as well as master partitions.") - debug = flag.Bool("debug", false, "Will set the logging level to DEBUG.") - proxy = flag.Bool("proxy", false, "Will use Proxy Client.") - dbaas = flag.Bool("dbaas", false, "Will run the tests for a dbaas environment.") - namespace = flag.String("n", "test", "Namespace") + hosts = flag.String("hosts", "", "Comma separated Aerospike server seed hostnames or IP addresses and ports. eg: s1:3000,s2:3000,s3:3000") + host = flag.String("h", "127.0.0.1", "Aerospike server seed hostnames or IP addresses") + nativeHosts = flag.String("nh", "127.0.0.1:3000", "Native Aerospike server seed hostnames or IP addresses, used in tests for GRPC to support unsupported API") + port = flag.Int("p", 3000, "Aerospike server seed hostname or IP address port number.") + user = flag.String("U", "", "Username.") + password = flag.String("P", "", "Password.") + authMode = flag.String("A", "internal", "Authentication mode: internal | external") + useReplicas = flag.Bool("use-replicas", false, "Aerospike will use replicas as well as master partitions.") + debug = flag.Bool("debug", false, "Will set the logging level to DEBUG.") + proxy = flag.Bool("proxy", false, "Will use Proxy Client.") + dbaas = flag.Bool("dbaas", false, "Will run the tests for a dbaas environment.") + namespace = flag.String("n", "test", "Namespace") + UseServicesAlternate = flag.Bool("use-services-alternate", false, "Will set ClientPolicy.UseServicesAlternate to true.") certFile = flag.String("cert_file", "", "Certificate file name.") keyFile = flag.String("key_file", "", "Key file name.") @@ -100,6 +101,7 @@ func initTestVars() { // setup TLS tlsConfig = initTLS() clientPolicy.TlsConfig = tlsConfig + clientPolicy.UseServicesAlternate = *UseServicesAlternate var dbHosts []*as.Host