diff --git a/test-integration/failure.yml b/test-integration/failure.yml index c0ef1f1..b3207da 100644 --- a/test-integration/failure.yml +++ b/test-integration/failure.yml @@ -5,3 +5,13 @@ command: 'JENKINS_URL=http://someinexistinghost {nestor} dashboard' exitcode: 1 output: 'getaddrinfo ENOTFOUND|ETIMEDOUT' + +- description: Command job should display error message when job does not exist + command: 'JENKINS_URL=http://ci.jenkins-ci.org {nestor} job someinexistingjob' + exitcode: 1 + output: 'Job someinexistingjob does not exist' + +- description: Command job should display usage info when there is no argument + command: 'JENKINS_URL=http://ci.jenkins-ci.org {nestor} job' + exitcode: 1 + output: 'Usage: nestor job '