Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36177

Acceptance test for Multi-Branch flow

    Details

    • Similar Issues:
    • Sprint:
      1.0-m10, 1.0-m11, 1.0-m12, 1.0-pre-beta-1, 1.0-beta-1

      Description

      Create a v1 acceptance test for testing the the multibranch flow:

      1. Create the multibranch job. Will need to have branches.
      2. Inspect structure of the Branches tab. Use a Nightwatch page-object for this.
      3. Setup an SSE listener in the test to listen for runs of one of the branches.
      4. Press the "run" widget on the branch being listened to.
      5. Use the async SSE events to move the test to a successful "done()".
      6. Verify that the "Queued" and "Started" Toast components appeared at the right time. This will be tricky hmmm.

        Attachments

          Activity

          Hide
          michaelneale Michael Neale added a comment -

          As mentioned offline, would be nice to have this as a final stage of the main blueocean Jenkinsfile.

          It doesn't have to run as part of the main "mvn install" locally (as it puts requirements that may not be satisfied always).

          Show
          michaelneale Michael Neale added a comment - As mentioned offline, would be nice to have this as a final stage of the main blueocean Jenkinsfile. It doesn't have to run as part of the main "mvn install" locally (as it puts requirements that may not be satisfied always).
          Hide
          michaelneale Michael Neale added a comment -

          changed this to not-blocking as it is doesn't have a think linked that it is blocking.
          Cliff Meyers would like to have good coverage in ATH for these common cases, but not technically blocking.

          Show
          michaelneale Michael Neale added a comment - changed this to not-blocking as it is doesn't have a think linked that it is blocking. Cliff Meyers would like to have good coverage in ATH for these common cases, but not technically blocking.
          Hide
          michaelneale Michael Neale added a comment -

          Thorsten Scherler Tom FENNELLY I have thought about this, would be really nice to have.

          Instead of creating a repo programmatically, can we wire it up to a pre-existing github repo we establish for the purposes of this? (saves working out how to set it all up locally).

          Thoughts?

          Show
          michaelneale Michael Neale added a comment - Thorsten Scherler Tom FENNELLY I have thought about this, would be really nice to have. Instead of creating a repo programmatically, can we wire it up to a pre-existing github repo we establish for the purposes of this? (saves working out how to set it all up locally). Thoughts?
          Hide
          tfennelly Tom FENNELLY added a comment -

          Just pushed my WiP to https://github.com/tfennelly/blueocean-acceptance-test/tree/JENKINS-36177.

          I did this some time ago and more or less forget what state it's in, but ping me and I', sure I'll be able to resurrect it.

          Show
          tfennelly Tom FENNELLY added a comment - Just pushed my WiP to https://github.com/tfennelly/blueocean-acceptance-test/tree/JENKINS-36177 . I did this some time ago and more or less forget what state it's in, but ping me and I', sure I'll be able to resurrect it.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Thorsten Scherler
          Path:
          package.json
          src/main/js/api/git.js
          src/test/java/io/jenkins/blueocean/MultibranchTest.java
          src/test/js/multibranch.js
          src/test/resources/multibranch_1/Jenkinsfile
          http://jenkins-ci.org/commit/blueocean-acceptance-test/97f2d753a115fde64df7e9b3bdd1ba7647e66c68
          Log:
          Merge remote-tracking branch 'tom/JENKINS-36177' into JENKINS-36660

          Compare: https://github.com/jenkinsci/blueocean-acceptance-test/compare/805d74b40eb5...97f2d753a115

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Thorsten Scherler Path: package.json src/main/js/api/git.js src/test/java/io/jenkins/blueocean/MultibranchTest.java src/test/js/multibranch.js src/test/resources/multibranch_1/Jenkinsfile http://jenkins-ci.org/commit/blueocean-acceptance-test/97f2d753a115fde64df7e9b3bdd1ba7647e66c68 Log: Merge remote-tracking branch 'tom/ JENKINS-36177 ' into JENKINS-36660 Compare: https://github.com/jenkinsci/blueocean-acceptance-test/compare/805d74b40eb5...97f2d753a115

            People

            • Assignee:
              tscherler Thorsten Scherler
              Reporter:
              tfennelly Tom FENNELLY
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: