From 72c27d57824c0fd9a177e6fb352584e3e3276528 Mon Sep 17 00:00:00 2001 From: Piotr Szczesniak Date: Mon, 17 Aug 2015 16:12:32 +0200 Subject: [PATCH] Added more logs to Autoscaling e2e test --- test/e2e/autoscaling.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/autoscaling.go b/test/e2e/autoscaling.go index 9b7f3b65e59..221a171841d 100644 --- a/test/e2e/autoscaling.go +++ b/test/e2e/autoscaling.go @@ -94,7 +94,7 @@ var _ = Describe("Autoscaling", func() { func setUpAutoscaler(metric string, target float64, min, max int) { // TODO integrate with kube-up.sh script once it will support autoscaler setup. By("Setting up autoscaler to scale based on " + metric) - _, err := exec.Command("gcloud", "preview", "autoscaler", + out, err := exec.Command("gcloud", "preview", "autoscaler", "--zone="+testContext.CloudConfig.Zone, "create", "e2e-test-autoscaler", "--project="+testContext.CloudConfig.ProjectID, @@ -105,13 +105,13 @@ func setUpAutoscaler(metric string, target float64, min, max int) { fmt.Sprintf("--min-num-replicas=%v", min), fmt.Sprintf("--max-num-replicas=%v", max), ).CombinedOutput() - expectNoError(err) + expectNoError(err, "Output: "+string(out)) } func cleanUpAutoscaler() { By("Removing autoscaler") - _, err := exec.Command("gcloud", "preview", "autoscaler", "--zone="+testContext.CloudConfig.Zone, "delete", "e2e-test-autoscaler").CombinedOutput() - expectNoError(err) + out, err := exec.Command("gcloud", "preview", "autoscaler", "--zone="+testContext.CloudConfig.Zone, "delete", "e2e-test-autoscaler").CombinedOutput() + expectNoError(err, "Output: "+string(out)) } func CreateService(f *Framework, name string) {