Skip to content

Checking failure notification just before creating PR #451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ jobs:
with:
runs-on: ubuntu-latest
os-name: linux
timeout-minutes: 90
timeout-minutes: 60
focus-or-skip: "-ginkgo.focus='@smoke'"
kubectl-version: "v1.22.0"
git-provider: gitlab
Expand All @@ -260,7 +260,7 @@ jobs:
management-cluster-kind: kind
gitops-bin-path: /usr/local/bin/gitops
database-type: sqlite
artifacts-base-dir: "/tmp/acceptance-test-gitlab"
artifacts-base-dir: "/tmp/smoke-test-gitlab"
secrets:
BUILD_BOT_USER: wge-build-bot
BUILD_BOT_PERSONAL_ACCESS_TOKEN: ${{ secrets.BUILD_BOT_PERSONAL_ACCESS_TOKEN }}
Expand All @@ -279,7 +279,7 @@ jobs:
with:
runs-on: ubuntu-latest
os-name: linux
timeout-minutes: 90
timeout-minutes: 60
focus-or-skip: "-ginkgo.focus='@smoke'"
kubectl-version: "v1.22.0"
git-provider: gitlab
Expand All @@ -288,7 +288,7 @@ jobs:
management-cluster-kind: kind
gitops-bin-path: /usr/local/bin/gitops
database-type: sqlite
artifacts-base-dir: "/tmp/acceptance-test-gitlab-on-prem"
artifacts-base-dir: "/tmp/smoke-test-gitlab-on-prem"
secrets:
BUILD_BOT_USER: wge-build-bot
BUILD_BOT_PERSONAL_ACCESS_TOKEN: ${{ secrets.BUILD_BOT_PERSONAL_ACCESS_TOKEN }}
Expand Down
20 changes: 12 additions & 8 deletions test/acceptance/test/ui_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,6 @@ func DescribeTemplates(gitopsTestRunner GitopsTestRunner) {

pages.ScrollWindow(webDriver, 0, 4000)

if pages.ElementExist(gitops.ErrorBar) {
Expect(gitops.ErrorBar.Click()).To(Succeed())
}

Expect(gitops.GitOpsFields[0].Label).Should(BeFound())
Expect(gitops.GitOpsFields[0].Field.SendKeys(prBranch)).To(Succeed())
Expect(gitops.GitOpsFields[1].Label).Should(BeFound())
Expand All @@ -517,6 +513,10 @@ func DescribeTemplates(gitopsTestRunner GitopsTestRunner) {
Expect(gitops.SuccessBar.Click()).To(Succeed())
}

if pages.ElementExist(gitops.ErrorBar) {
Expect(gitops.ErrorBar.Click()).To(Succeed())
}

Expect(gitops.CreatePR.Click()).To(Succeed())
})

Expand Down Expand Up @@ -554,6 +554,10 @@ func DescribeTemplates(gitopsTestRunner GitopsTestRunner) {
})

It("@integration @git Verify pull request can not be created by using exiting repository branch", func() {
if gitProviderEnv.Type == GitProviderGitLab {
Skip("Temporary skipping because the Gitops section resets afer oauth redirecrtion")
}

By("When I create a private repository for cluster configs", func() {
repoAbsolutePath = initAndCreateEmptyRepo(gitProviderEnv, true)
})
Expand Down Expand Up @@ -624,10 +628,6 @@ func DescribeTemplates(gitopsTestRunner GitopsTestRunner) {

pages.ScrollWindow(webDriver, 0, 4000)

if pages.ElementExist(gitops.ErrorBar) {
Expect(gitops.ErrorBar.Click()).To(Succeed())
}

Expect(gitops.GitOpsFields[0].Label).Should(BeFound())
Expect(gitops.GitOpsFields[0].Field.SendKeys(branchName)).To(Succeed())
Expect(gitops.GitOpsFields[1].Label).Should(BeFound())
Expand All @@ -638,6 +638,10 @@ func DescribeTemplates(gitopsTestRunner GitopsTestRunner) {
AuthenticateWithGitProvider(webDriver, gitProviderEnv.Type)
Eventually(gitops.GitCredentials).Should(BeVisible())

if pages.ElementExist(gitops.ErrorBar) {
Expect(gitops.ErrorBar.Click()).To(Succeed())
}

Expect(gitops.CreatePR.Click()).To(Succeed())
})

Expand Down