RubyGems Navigation menu

chef-vault-testfixtures 0.1.1

chef-vault-testfixtures provides an RSpec shared context that dynamically stubs access to chef-vault encrypted data bags. chef-vault is a gem to manage distribution and control of keys to decrypt Chef encrypted data bags. When testing a cookbook that uses chef-vault, encryption is generally out of scope, which results in a large amount of stubs or mocks so that you get back fixture data without performing decryption. This gem makes testing Chef cookbooks easier using ChefSpec by dynamically stubbing attempts to access vault data to return invalid (i.e. not real passwords for any of your environments) that are properly formatted (e.g. a vault item containing an RSA key really contains one) The intended use case is that for each group of distinct secrets (e.g. an application stack, or a development team) you create one or more plugins. The plugins contain data that is specific to your application. Since plugins can be whitelisted or blacklisted when the shared context is created, this makes it easy to only include the appropriate secrets in a given cookbook's tests. Attempts to access secrets that would not be available to a node during a real chef-client run will not be mocked, which will cause the double to raise an 'unexpected message received' error.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 3.1.2 - July 05, 2021 (10.5 KB)
  2. 3.1.1 - July 30, 2020 (10.5 KB)
  3. 3.0.1 - May 04, 2017 (13.0 KB)
  4. 3.0.0 - April 27, 2017 (13.0 KB)
  5. 0.5.2 - February 08, 2016 (12.5 KB)
  6. 0.1.1 - February 24, 2015 (12.0 KB)
顯示所有版本(共 14)

Runtime 相依性套件 (4):

chef >= 11.14
chef-vault ~> 2.5
rspec ~> 3.1

Development 相依性套件 (15):

guard ~> 2.12
guard-rake ~> 0.0
guard-rspec ~> 4.2
guard-rubocop ~> 1.2
hoe ~> 3.13
hoe-gemspec ~> 1.0
pry-byebug ~> 3.0
pry-rescue ~> 1.3
rake ~> 10.3
rdoc ~> 4.0
rubocop ~> 0.29
simplecov ~> 0.9
yard ~> 0.8

擁有者:

作者:

  • James FitzGibbon

SHA 256 checksum:

f76ea95d9134b545122f1b442699c90ca68eb0fb8d47778cd075674992eeea14

總下載次數 150,102

這個版本 2,588

License:

apache2

Ruby 版本需求: >= 0

相關連結: