From e4a60795666522ad2b629e27997cb12fc081fc12 Mon Sep 17 00:00:00 2001 From: Cliffano Subagio Date: Fri, 29 Aug 2014 00:00:50 +1000 Subject: [PATCH] Add integration tests when command has the expected argument and when argument is missing. #29 --- test-integration/failure.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 '