Sha256: 14aa316fe5011ef36586c8b6b72e116d359c43a31c46e6d1c18cf16cfa385e8f

Contents?: true

Size: 1.6 KB

Versions: 5

Compression:

Stored size: 1.6 KB

Contents

Feature: clean unknown clients on vault refresh
  When refreshing a vault, new clients may be added if they match
  the search query or client list, but old clients that no longer
  exist will never be removed.  The --clean-unknown-clients switch
  will cause cause any unknown clients to be removed from the vault
  item's access list as well

  Scenario: Refresh without clean option
    Given a local mode chef repo with nodes 'one,two,three'
    And I create a vault item 'test/item' containing the JSON '{"foo": "bar"}' encrypted for 'one,two,three'
    Then the vault item 'test/item' should be encrypted for 'one,two,three'
    And I delete client 'one' from the Chef server
    And I refresh the vault item 'test/item'
    And the vault item 'test/item' should be encrypted for 'one,two,three'
    And 'one,two,three' should be a client for the vault item 'test/item'

  Scenario: Refresh with clean option
    Given a local mode chef repo with nodes 'one,two,three'
    And I create a vault item 'test/item' containing the JSON '{"foo": "bar"}' encrypted for 'one,two,three'
    Then the vault item 'test/item' should be encrypted for 'one,two,three'
    And I delete node 'one' from the Chef server
    And I refresh the vault item 'test/item' with the 'clean-unknown-clients' option
    Then the output should contain "Removing unknown client 'one'"
    And the vault item 'test/item' should be encrypted for 'two,three'
    And the vault item 'test/item' should not be encrypted for 'one'
    And 'two,three' should be a client for the vault item 'test/item'
    And 'one' should not be a client for the vault item 'test/item'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chef-vault-3.3.0.pre.pre414 features/clean_on_refresh.feature
chef-vault-3.2.0.pre.pre408 features/clean_on_refresh.feature
chef-vault-3.2.0.pre.pre407 features/clean_on_refresh.feature
chef-vault-3.2.0 features/clean_on_refresh.feature
chef-vault-3.1.0 features/clean_on_refresh.feature