Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
[FIX JENKINS-40137] Test for: Fix encoding of job name in "Open Blue …
Browse files Browse the repository at this point in the history
…Ocean" URLs (#92)

* Add ability to connect debugger to Jenkins instance

* Added a check on the run details page after navigating via "Open Blue Ocean" for MBP with a slash in the branch name
  • Loading branch information
tfennelly committed Jan 5, 2017
1 parent d922177 commit 838879c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run.sh
Expand Up @@ -76,11 +76,14 @@ if [ "${DEV_JENKINS}" == "true" ]; then
echo "*****"
echo "***** Starting a test dev instance of Jenkins with the blueocean plugins."
echo "***** Watch console output for the URL to use while developing your test."
echo "***** You can debug the Jenkins instance on port 15000."
echo "*****"
echo "***** Be sure your test doesn't use JenkinsAcceptanceTestRule in any way"
echo "***** or you'll be defeating the purpose (e.g. via AbstractJUnitTest)."
echo "*****"
echo ""

JENKINS_JAVA_OPTS="${JENKINS_JAVA_OPTS} -Xrunjdwp:transport=dt_socket,server=y,address=15000,suspend=n"

# Exclude the actual tests from this run and just run the skeleton test in
# ExcludedRunnerTest. It will just run with the plugins and stay running
Expand Down
3 changes: 3 additions & 0 deletions src/test/java/utils/DevRunner.java
Expand Up @@ -42,6 +42,9 @@ public void runAndStayRunning() throws Exception {
System.out.println(" You should now be able to develop tests against this instance without");
System.out.println(" having to constantly restart Jenkins.");
System.out.println("");
System.out.println(" You should be able to connect your debugger to your running Jenkins.");
System.out.println(" instance on port 15000.");
System.out.println("");
System.out.println(" Open another terminal and run nightwatchjs commands to run specific tests.");
System.out.println(" Iterate and rerun tests.");
System.out.println(" See http://nightwatchjs.org/");
Expand Down
5 changes: 5 additions & 0 deletions src/test/js/edgeCases/folder.js
Expand Up @@ -197,6 +197,11 @@ module.exports = {
browser.url(function (response) {
sanityCheck(browser, response);
response.value.endsWith('/blue/organizations/jenkins/anotherFolder%2F三百%2Fñba%2F七%2FSohn/detail/feature%2F1/1/pipeline');

// Make sure the page has all the bits and bobs
// See JENKINS-40137
const blueRunDetailPage = browser.page.bluePipelineRunDetail();
blueRunDetailPage.assertBasicLayoutOkay();
});
},
};

0 comments on commit 838879c

Please sign in to comment.