Sha256: c8abbbdeaf94cc086a09d9f87ca702aafa0e6834b9e686c8652d4dbbc4439b22

Contents?: true

Size: 1.31 KB

Versions: 4

Compression:

Stored size: 1.31 KB

Contents

Feature: Check an environment

  Background: 
    Given I run `conjur variable create $ns/access_key ABCDEF`
    And I run `conjur variable create $ns/secret_key XYZQWER`
    And I run `conjur variable create $ns/ssh_private_key PRIVATE_KEY_BODY`
    And I run `conjur user create -p alice@$ns` interactively
    And I type "foobar"
    And I type "foobar"
    And the exit status should be 0
    And I run `conjur resource permit variable:$ns/access_key user:alice@$ns execute`
    And I run `conjur resource permit variable:$ns/secret_key user:alice@$ns execute`
    And I run `conjur authn login -u alice@$ns` interactively
    And I type "foobar"
    And the exit status should be 0


  Scenario: Check against permitted variables

    When I run `conjur env check --yaml '{ aws_access_key: !var $ns/access_key , aws_secret_key: !var $ns/secret_key }'`
    Then the exit status should be 0
    And the stdout should contain "aws_access_key: available\naws_secret_key: available\n"

  Scenario: Check against restricted variables
    When I run `conjur env check --yaml '{ aws_access_key: !var $ns/access_key , ssh_private_key: !var $ns/ssh_private_key }'`
    Then the exit status should be 1
    And the stdout should contain "aws_access_key: available\nssh_private_key: unavailable\n"
                                                 

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
conjur-cli-4.28.2 acceptance-features/conjurenv/check.feature
conjur-cli-4.28.1 acceptance-features/conjurenv/check.feature
conjur-cli-4.28.0 acceptance-features/conjurenv/check.feature
conjur-cli-4.27.0 acceptance-features/conjurenv/check.feature