diff --git a/features/install/git.feature b/features/install/git.feature index 196e73a0..2b3b4625 100644 --- a/features/install/git.feature +++ b/features/install/git.feature @@ -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'/