Sha256: b442dd471e0359b3f49349cbbf325f3f7d7841d479a1a3d253c7500177519858

Contents?: true

Size: 1.16 KB

Versions: 15

Compression:

Stored size: 1.16 KB

Contents

Feature: knife vault update
  'knife vault update' is used to add clients, or administrators
  and to re-run the search query and update the vault's item values.

  Scenario: add admin to a vault
    Given a local mode chef repo with nodes 'one,two,three' with admins 'alice,bob'
    When I create a vault item 'test/item' containing the JSON '{"foo": "bar"}' encrypted for 'one,two,three' with 'alice' as admin
    Then 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'
      And 'alice' should be an admin for the vault item 'test/item'
      And I can decrypt the vault item 'test/item' as 'alice'
      But I can't decrypt the vault item 'test/item' as 'bob'
      And I can save the JSON object of the encrypted data bag for the vault item 'test/item'
    When I add 'bob' as an admin for the vault item 'test/item'
    Then 'alice,bob' should be an admin for the vault item 'test/item'
      And I can decrypt the vault item 'test/item' as 'alice'
      And I can decrypt the vault item 'test/item' as 'bob'
      And the data bag of the vault item 'test/item' has not been re-encrypted

Version data entries

15 entries across 15 versions & 1 rubygems

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