diff --git a/Makefile b/Makefile index 0c4df0c2e..c5e798342 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ container: docker build -t $(REPO):$(TAG) . e2e-test: - go test -timeout 20m -v ./test/e2e/ $(TEST_RUN_ARGS) --kubeconfig=$(KUBECONFIG) --operator-image=$(REPO):$(TAG) --namespace=$(NAMESPACE) + go test -timeout 40m -v ./test/e2e/ $(TEST_RUN_ARGS) --kubeconfig=$(KUBECONFIG) --operator-image=$(REPO):$(TAG) --namespace=$(NAMESPACE) e2e-status: kubectl get prometheus,alertmanager,servicemonitor,statefulsets,deploy,svc,endpoints,pods,cm,secrets,replicationcontrollers --all-namespaces diff --git a/test/e2e/prometheus_test.go b/test/e2e/prometheus_test.go index 6a49d5ca4..ebe2acb9b 100644 --- a/test/e2e/prometheus_test.go +++ b/test/e2e/prometheus_test.go @@ -248,9 +248,14 @@ scrape_configs: static_configs: - targets: - 111.111.111.111:9090 - - 111.111.111.112:9090 + - 111.111.111.112:9090 ` + cfg, err := framework.KubeClient.CoreV1().Secrets(ns).Get(cfg.Name, metav1.GetOptions{}) + if err != nil { + t.Fatal(errors.Wrap(err, "could not retrieve previous secret")) + } + cfg.Data["prometheus.yaml"] = []byte(secondConfig) if _, err := framework.KubeClient.CoreV1().Secrets(ns).Update(cfg); err != nil { t.Fatal(err)