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:
= Copiar al portapapeles ¡Copiado!

instalar:
=

Versiones:

  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 KB)
  4. 3.0.0 - April 27, 2017 (13 KB)
  5. 0.5.2 - February 08, 2016 (12,5 KB)
  6. 0.1.1 - February 24, 2015 (12 KB)
Mostrar todas las versiones (14 total)

dependencias de Runtime (4):

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

dependencias de 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

Propietarios:

Autores:

  • James FitzGibbon

SHA 256 checksum:

f76ea95d9134b545122f1b442699c90ca68eb0fb8d47778cd075674992eeea14

Total de descargas 150.479

Para esta versión 2.592

Licencia:

apache2

Versión de Ruby requerida: >= 0

Enlace: