Sha256: 4bbaac77722d571cfb2f8d495280d84a47aa1a2b8a58a52ad151d17d022c5732

Contents?: true

Size: 1.52 KB

Versions: 13

Compression:

Stored size: 1.52 KB

Contents

Feature: determine if a data bag item is a vault
  If a data bag item is a vault, 'knife vault isvault VAULTNAME ITEMNAME'
  should exit 0.  Otherwise it should exit 1.

  Scenario: detect vault item
    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'
    And I check if the data bag item 'test/item' is a vault
    Then the exit status should be 0

  Scenario: detect vault item with keys in sparse mode
    Given a local mode chef repo with nodes 'one,two,three'
    And I create a vault item 'test/item' with keys in sparse mode containing the JSON '{"foo": "bar"}' encrypted for 'one,two,three'
    And I check if the data bag item 'test/item' is a vault
    Then the exit status should be 0

  Scenario: detect non-vault item (encrypted data bag)
    Given a local mode chef repo with nodes 'one,two,three'
    And I create an empty data bag 'test'
    And I create an encrypted data bag item 'test/item' containing the JSON '{"id": "item", "foo": "bar"}' with the secret 'sekrit'
    And I check if the data bag item 'test/item' is a vault
    Then the exit status should not be 0

  Scenario: detect non-vault item (normal data bag)
    Given a local mode chef repo with nodes 'one,two,three'
    And I create an empty data bag 'test'
    And I create a data bag item 'test/item' containing the JSON '{"id": "item", "foo": "bar"}'
    And I check if the data bag item 'test/item' is a vault
    Then the exit status should not be 0

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
chef-vault-3.4.0.pre.pre417 features/isvault.feature
chef-vault-3.3.0 features/isvault.feature
chef-vault-3.3.0.pre.pre415 features/isvault.feature
chef-vault-3.3.0.pre.pre416 features/isvault.feature
chef-vault-3.3.0.pre.pre414 features/isvault.feature
chef-vault-3.2.0.pre.pre408 features/isvault.feature
chef-vault-3.2.0.pre.pre407 features/isvault.feature
chef-vault-3.2.0 features/isvault.feature
chef-vault-3.1.0 features/isvault.feature
chef-vault-3.0.3 features/isvault.feature
chef-vault-3.0.2 features/isvault.feature
chef-vault-3.0.1 features/isvault.feature
chef-vault-3.0.0 features/isvault.feature