Skip to content

Commit

Permalink
Add integration tests when command has the expected argument and when…
Browse files Browse the repository at this point in the history
… argument is missing. #29
  • Loading branch information
cliffano committed Aug 28, 2014
1 parent 4445a60 commit e4a6079
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test-integration/failure.yml
Expand Up @@ -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 <job>'

0 comments on commit e4a6079

Please sign in to comment.