mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-26 07:16:08 -05:00
Fix autoscalingstrategy controller test
This commit is contained in:
parent
a29289c188
commit
1af3ffd46c
@ -128,9 +128,13 @@ var _ = Describe("AutoscalingStrategy controller", func() {
|
|||||||
}, timeout, interval).Should(Equal(int32(0)))
|
}, timeout, interval).Should(Equal(int32(0)))
|
||||||
|
|
||||||
By("enabling the autoscaler in the strategy")
|
By("enabling the autoscaler in the strategy")
|
||||||
Expect(k8sClient.Get(ctx, strategyLookupKey, strategy)).Should(Succeed())
|
Eventually(func() error {
|
||||||
strategy.Spec.Enabled = true
|
if err := k8sClient.Get(ctx, strategyLookupKey, strategy); err != nil {
|
||||||
Expect(k8sClient.Update(ctx, strategy)).Should(Succeed())
|
return err
|
||||||
|
}
|
||||||
|
strategy.Spec.Enabled = true
|
||||||
|
return k8sClient.Update(ctx, strategy)
|
||||||
|
}, timeout, interval).Should(Succeed())
|
||||||
|
|
||||||
By("checking the autoscaling deployment eventually has one replica")
|
By("checking the autoscaling deployment eventually has one replica")
|
||||||
Eventually(checkDeploymentReplicas, timeout, interval).Should(Equal(int32(1)))
|
Eventually(checkDeploymentReplicas, timeout, interval).Should(Equal(int32(1)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user