| 1 |
Feature: cli/install/github_tarball |
| 2 |
Puppet librarian needs to install tarballed modules from github repositories |
| 3 |
|
| 4 |
@github |
| 5 |
Scenario: Installing a module from github tarballs |
| 6 |
Given a file named "Puppetfile" with: |
| 7 |
""" |
| 8 |
forge "https://forgeapi.puppet.com" |
| 9 |
|
| 10 |
mod 'puppetlabs/apache', '0.6.0', :github_tarball => 'puppetlabs/puppetlabs-apache' |
| 11 |
mod 'puppetlabs/stdlib', '2.3.0', :github_tarball => 'puppetlabs/puppetlabs-stdlib' |
| 12 |
""" |
| 13 |
When I successfully run `librarian-puppet install --verbose` |
| 14 |
And the output should contain "Downloading <https://api.github.com/repos/puppetlabs/puppetlabs-apache/tarball/0.6.0" |
| 15 |
And the output should contain "Downloading <https://api.github.com/repos/puppetlabs/puppetlabs-stdlib/tarball/2.3.0" |
| 16 |
And the file "modules/apache/Modulefile" should match /name *'puppetlabs-apache'/ |
| 17 |
And the file "modules/apache/Modulefile" should match /version *'0\.6\.0'/ |
| 18 |
And the file "modules/stdlib/Modulefile" should match /name *'puppetlabs-stdlib'/ |
| 19 |
And the file "modules/stdlib/Modulefile" should match /version *'2\.3\.0'/ |
| 20 |
|
| 21 |
@spaces |
| 22 |
@github |
| 23 |
Scenario: Installing a module in a path with spaces |
| 24 |
Given a file named "Puppetfile" with: |
| 25 |
""" |
| 26 |
mod 'puppetlabs/stdlib', '4.1.0', :github_tarball => 'puppetlabs/puppetlabs-stdlib' |
| 27 |
""" |
| 28 |
When I successfully run `librarian-puppet install` |
| 29 |
And the file "modules/stdlib/Modulefile" should match /name *'puppetlabs-stdlib'/ |