Skip to content

Commit 5bb46fb

Browse files
silvestregeigerj0
andcommitted
fix(acceptance): Remove smoke test label from cf_metadata_test
# Issue The test cases `cf_metadata_test` were marked with the smoke test labels. This is not warranted, as smoke tests should be minimal. # Fix Remove the label. # Note Simplified test as well. Co-authored-by: Josua Geiger <[email protected]>
1 parent 9ece337 commit 5bb46fb

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed
Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package app_test
22

33
import (
4-
"acceptance"
54
. "acceptance/helpers"
65
"time"
76

@@ -24,26 +23,15 @@ var _ = Describe("AutoScaler CF metadata support", func() {
2423
})
2524
AfterEach(AppAfterEach)
2625

27-
Context("when scaling by custom metrics", func() {
28-
It("should scale out normally", Label(acceptance.LabelSmokeTests), func() {
29-
By("Scale out to 2 instances")
26+
When("the label app-autoscaler.cloudfoundry.org/disable-autoscaling is set", func() {
27+
It("should not scale out", func() {
28+
By("Set the label app-autoscaler.cloudfoundry.org/disable-autoscaling to true")
29+
SetLabel(cfg, appGUID, "app-autoscaler.cloudfoundry.org/disable-autoscaling", "true")
3030
scaleOut := sendMetricToAutoscaler(cfg, appGUID, appName, 550, true)
31-
Eventually(scaleOut).
31+
Consistently(scaleOut).
3232
WithTimeout(5 * time.Minute).
3333
WithPolling(15 * time.Second).
34-
Should(Equal(2))
35-
})
36-
37-
Context("when the label app-autoscaler.cloudfoundry.org/disable-autoscaling is set", func() {
38-
It("should not scale out", Label(acceptance.LabelSmokeTests), func() {
39-
By("Set the label app-autoscaler.cloudfoundry.org/disable-autoscaling to true")
40-
SetLabel(cfg, appGUID, "app-autoscaler.cloudfoundry.org/disable-autoscaling", "true")
41-
scaleOut := sendMetricToAutoscaler(cfg, appGUID, appName, 550, true)
42-
Consistently(scaleOut).
43-
WithTimeout(5 * time.Minute).
44-
WithPolling(15 * time.Second).
45-
Should(Equal(1))
46-
})
34+
Should(Equal(1))
4735
})
4836
})
4937
})

0 commit comments

Comments
 (0)