Sha256: 0237cd72e4a6769aa10555a497d960865c07c8945b4d6b822f321ee8143fb1c9
Contents?: true
Size: 1.1 KB
Versions: 18
Compression:
Stored size: 1.1 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 create a new user named "alice@$ns" 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 login as "alice@$ns" And I reset the command list 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
18 entries across 18 versions & 1 rubygems