Sha256: ca029977f87db812041b5bc598f3ddb5a42201be6e91453cbb070deec76f36a6

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

Feature: knife encrypt
  In order to efficiently work with encrypted values
  As a knife user
  I want to encrypt values

Scenario: Command List
  When I run `knife`
  Then the output should contain:
    """
    knife encrypt DATA (options)
    """

Scenario: Encrypting a String
  Given a knife configuration with en encrypted data bag secret "my secret"
  When I successfully run `knife encrypt '"foo"'`
  Then the stdout should contain exactly:
    """
    e4ibEHAinGltDjYNQPV4rw==

    """

Scenario: Encrypting an Array
  Given a knife configuration with en encrypted data bag secret "my secret"
  When I successfully run `knife encrypt '["foo", "bar"]'`
  Then the stdout should contain exactly:
    """
    7wrizj9MAjmSVWWq69DUql0hNHFv7Hp/1tnQ/NJuD08=

    """

Scenario: Encrypting a Hash
  Given a knife configuration with en encrypted data bag secret "my secret"
  When I successfully run `knife encrypt '{"foo"=>{"bar"=>"baz"}}'`
  Then the stdout should contain exactly:
    """
    nsXFeAANrmnBNu+QPfOHZFB5szSRA+Ezu94fmrJnNhk=

    """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
knife-crypt-0.0.2 features/encrypt.feature
knife-crypt-0.0.1 features/encrypt.feature