mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
dns_autoscaling e2e: Dont expect configMap to be re-created with previous params
This commit is contained in:
parent
98ae572225
commit
a98992060c
@ -19,7 +19,6 @@ package e2e
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
"reflect"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -185,12 +184,9 @@ var _ = framework.KubeDescribe("DNS horizontal autoscaling", func() {
|
|||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
By("Wait for the ConfigMap got re-created")
|
By("Wait for the ConfigMap got re-created")
|
||||||
configMap, err := waitForDNSConfigMapCreated(c, DNSdefaultTimeout)
|
_, err = waitForDNSConfigMapCreated(c, DNSdefaultTimeout)
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
By("Check the new created ConfigMap got the same data as we have")
|
|
||||||
Expect(reflect.DeepEqual(previousParams, configMap.Data)).To(Equal(true))
|
|
||||||
|
|
||||||
By("Replace the dns autoscaling parameters with another testing parameters")
|
By("Replace the dns autoscaling parameters with another testing parameters")
|
||||||
err = updateDNSScalingConfigMap(c, packDNSScalingConfigMap(packLinearParams(&DNSParams_2)))
|
err = updateDNSScalingConfigMap(c, packDNSScalingConfigMap(packLinearParams(&DNSParams_2)))
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
Loading…
Reference in New Issue
Block a user