fujin (owner)

Revisions

gist: 212717 Download_button fork
public
Public Clone URL: git://gist.github.com/212717.git
Embed All Files: show embed
rake features:provider:package:gem #
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
@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 # features/provider/package/gem_package.feature:7
    Given a validated node # features/steps/node_steps.rb:22
    And it includes the recipe 'packages::gem_package' # features/steps/node_steps.rb:30
    And the gems server is running # features/steps/packages.rb:1
    When I run the chef-client # features/steps/run_client_steps.rb:22
    Then the run should exit '0' # features/steps/run_client_steps.rb:104
    And the gem 'chef-integration-test' version '0.1.0' should be installed # features/steps/packages.rb:33
rm: ./features/support/../data/tmp/search_index: Directory not empty
 
  Scenario: Upgrading a gem to a newer version # features/provider/package/gem_package.feature:15
 ~ Loading role_test
    Given a validated node # features/steps/node_steps.rb:22
    And it includes the recipe 'packages::upgrade_gem_package' # features/steps/node_steps.rb:30
    And the gems server is running # features/steps/packages.rb:1
    When I run the chef-client # features/steps/run_client_steps.rb:22
    Then the run should exit '0' # features/steps/run_client_steps.rb:104
    And the gem 'chef-integration-test' version '0.1.0' should be installed # features/steps/packages.rb:33
    And the gem 'chef-integration-test' version '0.1.1' should be installed # features/steps/packages.rb:33
 
  Scenario: Upgrading a gem manually by specifying a different version # features/provider/package/gem_package.feature:25
 ~ Loading role_test
    Given a validated node # features/steps/node_steps.rb:22
    And it includes the recipe 'packages::manually_upgrade_gem_package' # features/steps/node_steps.rb:30
    And the gems server is running # features/steps/packages.rb:1
    When I run the chef-client # features/steps/run_client_steps.rb:22
    Then the run should exit '0' # features/steps/run_client_steps.rb:104
    And the gem 'chef-integration-test' version '0.1.0' should be installed # features/steps/packages.rb:33
    And the gem 'chef-integration-test' version '0.1.1' should be installed # features/steps/packages.rb:33
 
3 scenarios (3 passed)
20 steps (20 passed)
0m59.284s