Sha256: 71e09fb071ddc413b99a39023cdc04c8313dff8bcffd2c7d670dc3fa3d674ecd

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

Feature: eyaml outputs

  In order to better understand the link between eyaml and yaml files
  As a developer using hiera-eyaml
  I want to use the eyaml tool to output encrypted data in various yaml formats


  Scenario: encrypt a simple string with default output
    When I run `eyaml -e -s some_string`
    Then the output should match /string: ENC\[PKCS7,(.*?)\]/
    And the output should match /block: >\s*\n\s*ENC\[PKCS7,(.*?)\]/

  Scenario: encrypt a simple string with examples output
    When I run `eyaml -e -o examples -s some_string`
    Then the output should match /string: ENC\[PKCS7,(.*?)\]/
    And the output should match /block: >\s*\n\s*ENC\[PKCS7,(.*?)\]/

  Scenario: encrypt a simple string with string output
    When I run `eyaml -e -o string -s some_string`
    Then the output should match /^ENC\[PKCS7,(.*?)\]$/

  Scenario: encrypt a simple string with raw output
    When I run `eyaml -e -o raw -s some_string`
    Then the output should match /^ENC\[PKCS7,(.*?)\]$/
    And the output should contain "\n"

  Scenario: encrypt a simple string with block output
    When I run `eyaml -e -o block -s some_string`
    Then the output should match /^\s+ENC\[PKCS7,(.*?)\]$/
    

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hiera-eyaml-1.3.1 features/outputs.feature