Skip to content

Commit

Permalink
Add -use-services-alternate to test arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Nov 29, 2024
1 parent c9ccec3 commit ab899d5
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions aerospike_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -100,6 +101,7 @@ func initTestVars() {
// setup TLS
tlsConfig = initTLS()
clientPolicy.TlsConfig = tlsConfig
clientPolicy.UseServicesAlternate = *UseServicesAlternate

var dbHosts []*as.Host

Expand Down

0 comments on commit ab899d5

Please sign in to comment.