I use below code to initialize connection to avi controller,
func TestAvi(t *testing.T) {
aviClient, err := clients.NewAviClient("<CONTROLLERNAME>", "<USERID>",
session.SetPassword("<PASSWORD"),
session.SetTenant("<TENANT>"),
session.SetInsecure)
if err != nil {
t.Error(err)
}
And then I run go test command to run the code. I would like to externalize CONTROLLERNAME, USERID, PASSWORD and TENANT. So that I can pass those as arguments to go test command.
Any assistance please?