consolestream - consolestream  ✔ should be readable but not writable  api - jenkins  ✔ computer - should delegate to Swaggy getComputer  ✔ crumb - should delegate to Swaggy getCrumb  ✔ discover - should close socket and pass error to callback when socket emits error event  ✔ discover - should close socket and pass error to callback when an error occurs while sending a message  ✔ discover - should close socket and pass result to callback when socket emits message event  ✔ discover - should timeout and pass error when no instance is discovered  ✔ info - should delegate to Swaggy getJenkins  ✔ parseFeed - should parse feed from API endpoint  ✔ queue - should delegate to Swaggy getQueue  ✔ version - should pass version header value if exists  ✔ version - should pass error if version header value does not exist  ✔ version - should pass error if an error occurrs  api - job  ✔ create - should send request to API endpoint  ✔ read - should send request to API endpoint  ✔ readLatest - should send request to API endpoint  ✔ update - should send request to API endpoint  ✔ delete - should send request to API endpoint  ✔ stop - should send request to API endpoint  ✔ build - should send request to API endpoint without parameters when not supplied  ✔ build - should send request to API endpoint with parameters when supplied  ✔ checkStarted - returns true when build has an executable url  ✔ checkStarted - returns false when build does not yet have an executable url  ✔ streamConsole - should send request to API endpoint  ✔ streamConsole - should display console output once when there is no more text  ✔ streamConsole - should display no console output once when result does not have any body  ✔ streamConsole - should display console output once when there is more text but an error occurs  ✔ streamConsole - should display console output multiple times when there are more texts  ✔ streamConsole - should display console output once when the second text is undefined  ✔ enable - should send request to API endpoint  ✔ disable - should send request to API endpoint  ✔ copy - should send request to API endpoint  ✔ fetchConfig - should send request to API endpoint  ✔ parseFeed - should parse feed from API endpoint  api - util  ✔ passThroughResponse - should pass entire response  ✔ passThroughSuccess - should pass result body  ✔ passThroughSuccessJson - should pass result JSON body as an object  ✔ htmlError - should pass error with message parsed from Jenkins HTML error page  ✔ jobNotFoundError - should pass job does not exist error message  ✔ jobBuildNotFoundError - should pass job build does not exist error message  ✔ jobRequireParamsError - should pass job require params error message  ✔ viewNotFoundError - should pass view does not exist error message  api - view  ✔ create -should send request to API endpoint  ✔ read - should send request to API endpoint  ✔ update - should send request to API endpoint  ✔ fetchConfig - should send request to API endpoint  ✔ parseFeed - should parse feed from API endpoint  cli - jenkins  ✔ dashboard - should log Jobless Jenkins when exec dashboard is called and there is no job  ✔ dashboard - should log statuses when exec dashboard is called and Jenkins has running jobs  ✔ dashboard - should log statuses when exec dashboard is called and Jenkins has running jobs with animated value  ✔ dashboard - should log statuses when exec dashboard is called and Jenkins has running jobs with unknown color value  ✔ discover - should log version and url when exec discover is called and there is a running Jenkins instance  ✔ discover - should log version and url when exec discover is called with specified host  ✔ discover - should log host instead of url when exec discover result does not include any url  ✔ executor -should log no executor found when exec executor is called and there is no executor  ✔ executor -should pass correct idle, stuck, and progress status  ✔ feed -should parse job feed when job arg is provided  ✔ feed -should parse view feed when view arg is provided  ✔ feed -should parse Jenkins feed when neither job or view arg is provided  ✔ queue -should log queue empty message when there is no item  ✔ queue -should log job names when result contains items  ✔ version - should log version when exec ver is called and version exists  cli - job  ✔ create - should log job created success message  ✔ read - should log job status with correct color and health reports  ✔ read - should log status as-is in grey color when color is status value  ✔ readLatest - should display yellow building status and start time description  ✔ readLatest - should display completed status and finish time description  ✔ update - should log job updated success message  ✔ delete - should log job deleted success message  ✔ build - should log job started success message with no command and no params  ✔ stop - should log job stopped success message  ✔ console - should pipe console output stream to stdout  ✔ enable - should log job enabled success message  ✔ disable - should log job disabled success message  ✔ copy - should log job copy success message  ✔ fetchConfig - should log configuration  cli - util - colorByStatus  ✔ should show the correct color when Jenkins color contains non-status and not animated color  ✔ should show the correct color when Jenkins color contains animated color  ✔ should show grey color when Jenkins color is a status  ✔ should show grey color when Jenkins color is undefined  ✔ should show color based ons status when Jenkins color is not provided and status is known  ✔ should show grey color when Jenkins color is not provided and status is unknown  cli - util - statusByColor  ✔ should show the correct status for all supported colors  ✔ should show the correct status for actively running build  ✔ should return value as-is when status is a real status value  ✔ should show the correct status for undefined job color  cli - view  ✔ create - should log view created success message  ✔ update - should log view updated success message  ✔ fetchConfig - should log configuration  cli - exec actions  ✔ should contain commands with actions  cli - exec  ✔ should pass URL as-is when there is no interactive arg specified  ✔ should use environment variable as Jenkins URL when there is no interactive arg specified and URL parameter is not specified  ✔ should use default Jenkins URL when there is no interactive arg specified and no environment variable Jenkins URL  ✔ should pass username and password to Jenkins URL when interactive arg is set  jenkins - jenkins  ✔ should use custom url when specified  ✔ should use default url when url is not specified  ✔ should handle authentication failure error  ✔ should handle authentication required error  jenkins - csrf  ✔ should add crumb header  ✔ should pass error to callback  jenkins - monitor  ✔ should monitor all jobs on Jenkins instance when no job or view opt specified  ✔ should result in status non-success when a job has non-success color but no red and yellow  ✔ should result in status success when a job has all blue or green color  ✔ should result in status warn when view opt is specified and a job has yellow color but no red  ✔ should monitor the latest build of a job when job opt is specified   105 passing (125ms)