Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <[email protected]>
  • Loading branch information
pavolloffay committed Mar 24, 2022
1 parent 007ae24 commit 66ed996
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pkg/controller/jaeger/jaeger_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,13 @@ func TestGetSecretsForNamespace(t *testing.T) {
}

func TestElasticsearchProvisioning(t *testing.T) {
ns := &corev1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: "jaeger",
},
}
namespacedName := types.NamespacedName{Name: "prod", Namespace: "jaeger"}
j := v1.NewJaeger(namespacedName)
j.Spec.Storage.Type = "elasticsearch"
j.Spec.Storage.Elasticsearch.Name = "elasticserach"
j.Spec.Storage.Elasticsearch.NodeCount = 1

reconciler, cl := getReconciler([]runtime.Object{ns, j})
reconciler, cl := getReconciler([]runtime.Object{j})

req := reconcile.Request{NamespacedName: namespacedName}
result, err := reconciler.Reconcile(req)
Expand Down Expand Up @@ -269,5 +264,5 @@ func getReconciler(objs []runtime.Object) (*ReconcileJaeger, client.Client) {
cl := fake.NewFakeClient(objs...)
r := New(cl, cl, s)
r.certGenerationScript = "../../../scripts/cert_generation.sh"
return New(cl, cl, s), cl
return r, cl
}

0 comments on commit 66ed996

Please sign in to comment.