1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
Feature: cli/outdated
Puppet librarian needs to print outdated modules
Scenario: Running outdated with forge modules
Given a file named "Puppetfile" with:
"""
forge "https://forgeapi.puppet.com"
mod 'puppetlabs/stdlib', '>=3.1.x'
"""
And a file named "Puppetfile.lock" with:
"""
FORGE
remote: https://forgeapi.puppet.com
specs:
puppetlabs/stdlib (3.1.0)
DEPENDENCIES
puppetlabs/stdlib (~> 3.0)
"""
When I successfully run `librarian-puppet outdated`
And the output should match:
"""
^puppetlabs-stdlib \(3\.1\.0 -> [\.\d]+\)$
"""
Scenario: Running outdated with git modules
Given a file named "Puppetfile" with:
"""
forge "https://forgeapi.puppet.com"
mod 'test', :git => 'https://github.com/voxpupuli/librarian-puppet.git', :path => 'features/examples/test'
"""
And a file named "Puppetfile.lock" with:
"""
FORGE
remote: https://forgeapi.puppet.com
specs:
puppetlabs/stdlib (3.1.0)
GIT
remote: https://github.com/voxpupuli/librarian-puppet.git
path: features/examples/test
ref: master
sha: 10fdf98190a7a22e479628b3616f17f48a857e81
specs:
test (0.0.1)
puppetlabs/stdlib (>= 0)
DEPENDENCIES
test (>= 0)
"""
When I successfully run `librarian-puppet outdated`
And PENDING the output should match:
# """
# ^puppetlabs-stdlib \(3\.1\.0 -> [\.\d]+\)$
# ^test .*$
# """
|