Sha256: e5637a298a621c87050ed1b33eaf52cc25049f0f7cedf4a5f2a624359e0b5e8f

Contents?: true

Size: 633 Bytes

Versions: 3

Compression:

Stored size: 633 Bytes

Contents

Feature: Resources created by a policy are owned by the policy

  Background:
    Given a file named "policy.rb" with:
    """
policy 'test-policy-1.0' do
  resource 'webservice', 'web1'
end
    """

  Scenario: resource is create with correct ownership
    When I run `conjur policy load --collection $ns` interactively
    And I pipe in the file "policy.rb"
    And the exit status should be 0
    When I run `conjur resource show webservice:$ns/test-policy-1.0/web1 | jsonfield owner`
    Then the output from "conjur resource show webservice:$ns/test-policy-1.0/web1 | jsonfield owner" should match /policy:$ns.test-policy-1.0/

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
conjur-cli-4.28.2 acceptance-features/dsl/resource_owner.feature
conjur-cli-4.28.1 acceptance-features/dsl/resource_owner.feature
conjur-cli-4.28.0 acceptance-features/dsl/resource_owner.feature