Sha256: fcd4b6ec6e5b905c55ccc37531aad73abeb44b1a70b0e80ce8fc7dde2c43f967

Contents?: true

Size: 2 KB

Versions: 26

Compression:

Stored size: 2 KB

Contents

@users
Feature: Perform test driven infrastructure with Cucumber-Chef
  In order to learn how to develop test driven infrastructure
  As an infrastructure developer
  I want to better understand how to use Cucumber-Chef

  Background:
    * I have a server called "users"
    * "users" is running "ubuntu" "lucid"
    * "users" has been provisioned
    * the following roles have been updated:
      | role | role_path |
      | users | ./support/roles/ |
    * the "users" role has been added to the "users" run list
    * the following databags have been updated:
      | databag | databag_path |
      | users | ./support/data_bags/users |
    * the chef-client has been run on "users"
    * I ssh to "users" with the following credentials:
      | username | keyfile |
      | root | ../.ssh/id_rsa |

  Scenario: The user has been removed
    * the following databags have been updated:
      | databag | databag_path |
      | users | ./support/data_bags/users-auto-remove |
    * the chef-client has been run on "users"
    When I run "cat /etc/passwd | grep [b]dobbs"
      Then I should not see "bdobbs" in the output
      And I should not see "/home/bdobbs" in the output
      And I should not see "/bin/bash" in the output

  Scenario: The user's group has been removed
    * the following databags have been updated:
      | databag | databag_path |
      | users | ./support/data_bags/users-auto-remove |
    * the chef-client has been run on "users"
    When I run "cat /etc/group | grep [b]dobbs"
      Then I should not see "bdobbs" in the output
      And I should not see "sysop" in the output
      And I should not see "dba" in the output
      And I should not see "dev" in the output

  Scenario: The user's directory has been preserved on remove
    * the following databags have been updated:
      | databag | databag_path |
      | users | ./support/data_bags/users-auto-remove |
    * the chef-client has been run on "users"
    When I run "[[ -e /home/bdobbs ]] && echo OK"
      Then I should see "OK" in the output

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
cucumber-chef-3.0.0.rc.1 examples/users_auto_remove.feature
cucumber-chef-3.0.0.rc.0 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.15 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.14 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.12 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.11 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.10 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.9 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.8 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.7 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.6 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.5 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.4 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.3 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.2 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.1 examples/users_auto_remove.feature
cucumber-chef-2.1.0.rc.0 examples/users_auto_remove.feature
cucumber-chef-2.0.7 examples/users_auto_remove.feature
cucumber-chef-2.0.6 examples/users_auto_remove.feature
cucumber-chef-2.0.5 examples/users_auto_remove.feature