Debian Codegraph @

features/outdated.feature

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