Skip to content

Commit

Permalink
install tidb-operator in test namespace in non-parallel test specs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sre-bot authored Mar 28, 2020
1 parent 2f385ed commit 8745751
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions tests/e2e/tidbcluster/serial.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ var _ = ginkgo.Describe("[tidb-operator][Serial]", func() {

ginkgo.BeforeEach(func() {
ocfg = &tests.OperatorConfig{
Namespace: "pingcap",
Namespace: ns,
ReleaseName: "operator",
Image: cfg.OperatorImage,
Tag: cfg.OperatorTag,
Expand Down Expand Up @@ -219,7 +219,7 @@ var _ = ginkgo.Describe("[tidb-operator][Serial]", func() {

ginkgo.BeforeEach(func() {
ocfg = &tests.OperatorConfig{
Namespace: "pingcap",
Namespace: ns,
ReleaseName: "operator",
Image: cfg.OperatorImage,
Tag: cfg.OperatorTag,
Expand Down Expand Up @@ -410,7 +410,7 @@ var _ = ginkgo.Describe("[tidb-operator][Serial]", func() {
var genericCli client.Client

ocfg = &tests.OperatorConfig{
Namespace: "pingcap",
Namespace: ns,
ReleaseName: "operator",
Image: cfg.OperatorImage,
Tag: cfg.OperatorTag,
Expand Down Expand Up @@ -458,7 +458,7 @@ var _ = ginkgo.Describe("[tidb-operator][Serial]", func() {
e2elog.Failf("at least 3 statefulsets must be created, got %d", len(stsList.Items))
}

podListBeforeUpgrade, err := c.CoreV1().Pods(tc.Namespace).List(metav1.ListOptions{})
podListBeforeUpgrade, err := c.CoreV1().Pods(tc.Namespace).List(listOption)
framework.ExpectNoError(err)

ginkgo.By("Upgrading tidb-operator with AdvancedStatefulSet feature")
Expand Down Expand Up @@ -493,7 +493,7 @@ var _ = ginkgo.Describe("[tidb-operator][Serial]", func() {

ginkgo.By("Make sure pods are not changed")
err = utilpod.WaitForPodsAreChanged(c, podListBeforeUpgrade.Items, time.Minute*3)
framework.ExpectEqual(err, wait.ErrWaitTimeout, "Pods was not affeteced after the operator is upgraded")
framework.ExpectEqual(err, wait.ErrWaitTimeout, "Pods are changed after the operator is upgraded")
})

// tidb-operator with pod admission webhook enabled
Expand All @@ -504,7 +504,7 @@ var _ = ginkgo.Describe("[tidb-operator][Serial]", func() {

ginkgo.BeforeEach(func() {
ocfg = &tests.OperatorConfig{
Namespace: "pingcap",
Namespace: ns,
ReleaseName: "operator",
Image: cfg.OperatorImage,
Tag: cfg.OperatorTag,
Expand Down Expand Up @@ -558,7 +558,7 @@ var _ = ginkgo.Describe("[tidb-operator][Serial]", func() {

ginkgo.BeforeEach(func() {
ocfg = &tests.OperatorConfig{
Namespace: "pingcap",
Namespace: ns,
ReleaseName: "operator",
Image: cfg.OperatorImage,
Tag: cfg.OperatorTag,
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tidbcluster/stability.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ var _ = ginkgo.Describe("[tidb-operator][Stability]", func() {

ginkgo.BeforeEach(func() {
ocfg = &tests.OperatorConfig{
Namespace: "pingcap",
Namespace: ns,
ReleaseName: "operator",
Image: cfg.OperatorImage,
Tag: cfg.OperatorTag,
Expand Down

0 comments on commit 8745751

Please sign in to comment.