Skip to content

Commit

Permalink
[patch] fix: remove testrunnerOverride condition (#139)
Browse files Browse the repository at this point in the history
* fix: remove testrunnerOverride condition

* fix: invlid redis tag

* fix: staging e2e test

* remove focus test
  • Loading branch information
sunny299 authored Oct 3, 2022
1 parent 245835f commit a970348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions internal/staging/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ func (c *controller) getTestConfiguration(queue *s2hv1.Queue) *s2hv1.ConfigTestR
}

// try to infer gitlab MR branch in PR flow
if queue.IsPullRequestQueue() && testRunner != nil &&
testRunnerOverrider.Gitlab.Branch == nil {
if queue.IsPullRequestQueue() && testRunner != nil {
gitlabClientGetter := func() gitlab.Gitlab {
return gitlab.NewClient(c.gitlabBaseURL, c.gitlabToken)
}
Expand Down
12 changes: 6 additions & 6 deletions test/e2e/staging/ctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ var _ = Describe("[e2e] Staging controller", func() {
Chart: s2hv1.ComponentChart{
Repository: "https://charts.bitnami.com/bitnami",
Name: redisCompName,
Version: "12.10.1",
Version: "17.2.0",
},
Image: s2hv1.ComponentImage{
Repository: "bitnami/redis",
Pattern: "5.*debian-9.*",
Pattern: ".*debian-.*",
},
Source: &compSource,
Values: s2hv1.ComponentValues{
Expand Down Expand Up @@ -534,7 +534,7 @@ var _ = Describe("[e2e] Staging controller", func() {
Expect(err).NotTo(HaveOccurred(), "Testing error")

By("Collecting")
err = wait.PollImmediate(2*time.Second, 60*time.Second, func() (ok bool, err error) {
err = wait.PollImmediate(2*time.Second, 90*time.Second, func() (ok bool, err error) {
redisStableComp := &s2hv1.StableComponent{}
err = client.Get(ctx, types.NamespacedName{Namespace: namespace, Name: redisCompName},
redisStableComp)
Expand Down Expand Up @@ -581,7 +581,7 @@ var _ = Describe("[e2e] Staging controller", func() {
}

for _, p := range svc.Spec.Ports {
if p.NodePort == 31002 {
if p.NodePort != 0 {
ok = true
return
}
Expand Down Expand Up @@ -641,7 +641,7 @@ var _ = Describe("[e2e] Staging controller", func() {
By("Delete Promote to Active Queue")
Expect(queue.DeletePromoteToActiveQueue(client, namespace))

}, 300)
}, 330)

It("should successfully deploy pull request type", func() {
authToken := "12345"
Expand Down Expand Up @@ -761,7 +761,7 @@ var _ = Describe("[e2e] Staging controller", func() {
go stagingCtrl.Start(chStop)

redis := queue.NewQueue(teamName, namespace, redisCompName, "",
s2hv1.QueueComponents{{Name: redisCompName, Repository: "bitnami/redis", Version: "5.0.5-debian-9-r185"}},
s2hv1.QueueComponents{{Name: redisCompName, Repository: "bitnami/redis", Version: "7.0.4-debian-11-r13"}},
s2hv1.QueueTypeUpgrade,
)
Expect(client.Create(ctx, redis)).To(BeNil())
Expand Down

0 comments on commit a970348

Please sign in to comment.