-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgem_package.feature
More file actions
48 lines (43 loc) · 2.03 KB
/
Copy pathgem_package.feature
File metadata and controls
48 lines (43 loc) · 2.03 KB
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
@provider @package @rubygems
Feature: Gem package
In order to manage software and applications that require ruby gem packages
As an OpsDev
I want to install upgrade and remove rubygems
Scenario: Installing a gem that is not installed
Given a validated node
And it includes the recipe 'packages::gem_package'
And the gems server is running
When I run the chef-client
Then the run should exit '0'
And the gem 'chef-integration-test' version '0.1.0' should be installed
Scenario: Installing a gem using only the gems api
Given a validated node
And it includes the recipe 'packages::install_gem_noshell'
And the gems server is running
When I run the chef-client
Then the run should exit '0'
And the gem 'chef-integration-test' version '0.1.0' should be installed
Scenario: Upgrading a gem to a newer version
Given a validated node
And it includes the recipe 'packages::upgrade_gem_package'
And the gems server is running
When I run the chef-client
Then the run should exit '0'
And the gem 'chef-integration-test' version '0.1.0' should be installed
And the gem 'chef-integration-test' version '0.1.1' should be installed
Scenario: Upgrading a gem using only the gems api
Given a validated node
And it includes the recipe 'packages::upgrade_gem_noshell'
And the gems server is running
When I run the chef-client
Then the run should exit '0'
And the gem 'chef-integration-test' version '0.1.0' should be installed
And the gem 'chef-integration-test' version '0.1.1' should be installed
Scenario: Upgrading a gem manually by specifying a different version
Given a validated node
And it includes the recipe 'packages::manually_upgrade_gem_package'
And the gems server is running
When I run the chef-client
Then the run should exit '0'
And the gem 'chef-integration-test' version '0.1.0' should be installed
And the gem 'chef-integration-test' version '0.1.1' should be installed