From fe6fc4146f6ce1a9297d10266ea367542fde9320 Mon Sep 17 00:00:00 2001 From: Jan Christoph Uhde Date: Fri, 23 Mar 2018 19:38:02 +0100 Subject: [PATCH] WIP: add CreateArangodClient --- tests/deployments_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/deployments_test.go b/tests/deployments_test.go index dbd1912c3..93ce6daa5 100644 --- a/tests/deployments_test.go +++ b/tests/deployments_test.go @@ -30,6 +30,7 @@ import ( driver "github.com/arangodb/go-driver" api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha" kubeArangoClient "github.com/arangodb/kube-arangodb/pkg/client" + arangod "github.com/arangodb/kube-arangodb/pkg/util/arangod" ) // environements: provided from outside @@ -131,6 +132,8 @@ func deploymentSubTest(t *testing.T, mode api.DeploymentMode, engine api.Storage t.Logf("agents len: %v", len(agents)) for _, server := range servers { + //func CreateArangodClient(ctx context.Context, cli corev1.CoreV1Interface, apiObject *api.ArangoDeployment, group api.ServerGroup, id string) (driver.Client, error) { + db_client, err := arangod.CreateArangodClient(ctx, k8sClient, deployment, "", server) t.Logf("Server: %v ", server) } t.Log("##################################")