[DRE-commits] [librarian-puppet] 89/97: Add a feature to test outdated command
Stig Sandbeck Mathisen
ssm at debian.org
Tue Mar 11 12:12:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository librarian-puppet.
commit 99f0651a73c7dcfeefb00818bcad820d081abf24
Author: Carlos Sanchez <csanchez at maestrodev.com>
Date: Tue Feb 11 19:29:43 2014 +0100
Add a feature to test outdated command
---
features/outdated.feature | 60 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/features/outdated.feature b/features/outdated.feature
new file mode 100644
index 0000000..1911da5
--- /dev/null
+++ b/features/outdated.feature
@@ -0,0 +1,60 @@
+Feature: cli/outdated
+ Puppet librarian needs to print outdated modules
+
+ Scenario: Running outdated with forge modules
+ Given a file named "Puppetfile" with:
+ """
+ forge "http://forge.puppetlabs.com"
+
+ mod 'puppetlabs/stdlib', '>=3.1.x'
+ """
+ And a file named "Puppetfile.lock" with:
+ """
+ FORGE
+ remote: http://forge.puppetlabs.com
+ specs:
+ puppetlabs/stdlib (3.1.0)
+
+ DEPENDENCIES
+ puppetlabs/stdlib (~> 3.0)
+ """
+ When I run `librarian-puppet outdated`
+ Then the exit status should be 0
+ And the output should match:
+ """
+ ^puppetlabs/stdlib \(3\.1\.0 -> [\.\d]+\)$
+ """
+
+ Scenario: Running outdated with git modules
+ Given a file named "Puppetfile" with:
+ """
+ forge "http://forge.puppetlabs.com"
+
+ mod 'test', :git => 'https://github.com/rodjek/librarian-puppet.git', :path => 'features/examples/test'
+ """
+ And a file named "Puppetfile.lock" with:
+ """
+ FORGE
+ remote: http://forge.puppetlabs.com
+ specs:
+ puppetlabs/stdlib (3.1.0)
+
+ GIT
+ remote: https://github.com/rodjek/librarian-puppet.git
+ path: features/examples/test
+ ref: master
+ sha: 517beed403cfe3b2b61598975d8cecd27c665add
+ specs:
+ test (0.0.1)
+ puppetlabs/stdlib (>= 0)
+
+ DEPENDENCIES
+ test (>= 0)
+ """
+ When I run `librarian-puppet outdated`
+ Then the exit status should be 0
+ And PENDING the output should match:
+ """
+ ^puppetlabs/stdlib \(3\.1\.0 -> [\.\d]+\)$
+ ^test .*$
+ """
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git
More information about the Pkg-ruby-extras-commits
mailing list