Skip to content

Commit

Permalink
Issue #180 #13 Add pending tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Sanchez committed Mar 24, 2014
1 parent 31d6f5b commit b6c2bac
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions features/install/git.feature
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,30 @@ Feature: cli/install/git
Then the exit status should be 0
And the file "modules/test/Modulefile" should match /version *'0\.0\.1'/
And a file named "modules/stdlib/Modulefile" should exist

@slow
@announce
Scenario: Install a module with mismatching Puppetfile and Modulefile
Given a file named "Puppetfile" with:
"""
mod 'duritong/munin', :git => 'https://github.com/2ndquadrant-it/puppet-munin.git', :ref => '0bb71e'
"""
When PENDING I run `librarian-puppet install --verbose`
Then the exit status should be 0
And the file "modules/munin/Modulefile" should match /name *'duritong-munin'/
And the file "modules/concat/Modulefile" should match /name *'puppetlabs-concat'/

@slow
@announce
Scenario: Install from Puppetfile with duplicated entries
Given a file named "Puppetfile" with:
"""
mod 'stdlib',
:git => 'git://github.com/puppetlabs/puppetlabs-stdlib.git'
mod 'stdlib',
:git => 'https://github.com/puppetlabs/puppetlabs-stdlib.git'
"""
When PENDING I run `librarian-puppet install --verbose`
Then the exit status should be 0
And the file "modules/stdlib/Modulefile" should match /name *'puppetlabs-stdlib'/

0 comments on commit b6c2bac

Please sign in to comment.