Sha256: 9fa74e4d8e98632fca32c29398459181bdf59216be9ec7c41c9f9c52be65d87a

Contents?: true

Size: 1.16 KB

Versions: 18

Compression:

Stored size: 1.16 KB

Contents

Feature: Give a resource to another role

  Scenario: I can give a resource which I own to another role
    Given I successfully run `conjur resource create food:$ns/bacon`
    And I create a new user named "alice@$ns"
    Then I successfully run `conjur resource give food:$ns/bacon user:alice@$ns`
    And I reset the command list

  Scenario: Resource owner is in the 'owner' field
    Given I successfully run `conjur resource create food:$ns/bacon`
    And I create a new user named "alice@$ns"
    And I keep the JSON at "roleid" as "USERID"
    Then I successfully run `conjur resource give food:$ns/bacon user:alice@$ns`
    And I successfully run `conjur resource show food:$ns/bacon`
    Then the JSON at "owner" should be %{USERID}

  Scenario: When I give a resource away, I give all permissions
    Given I successfully run `conjur resource create food:$ns/bacon`
    And I create a new user named "alice@$ns"
    And I successfully run `conjur resource give food:$ns/bacon user:alice@$ns`
    And I login as "alice@$ns"
    And I reset the command list
    When I successfully run `conjur resource check food:$ns/bacon fry`
    Then the stdout should contain exactly "true"

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
conjur-cli-5.6.6 acceptance-features/authorization/resource/give.feature
conjur-cli-5.6.5 acceptance-features/authorization/resource/give.feature
conjur-cli-5.6.4 acceptance-features/authorization/resource/give.feature
conjur-cli-5.6.3 acceptance-features/authorization/resource/give.feature
conjur-cli-5.5.0 acceptance-features/authorization/resource/give.feature
conjur-cli-5.4.0 acceptance-features/authorization/resource/give.feature
conjur-cli-5.3.0 acceptance-features/authorization/resource/give.feature
conjur-cli-5.2.5 acceptance-features/authorization/resource/give.feature
conjur-cli-5.2.4 acceptance-features/authorization/resource/give.feature
conjur-cli-5.2.3 acceptance-features/authorization/resource/give.feature
conjur-cli-5.2.1 acceptance-features/authorization/resource/give.feature
conjur-cli-5.2.0 acceptance-features/authorization/resource/give.feature
conjur-cli-5.1.2 acceptance-features/authorization/resource/give.feature
conjur-cli-5.1.1 acceptance-features/authorization/resource/give.feature
conjur-cli-5.1.0 acceptance-features/authorization/resource/give.feature
conjur-cli-4.30.1 acceptance-features/authorization/resource/give.feature
conjur-cli-4.30.0 acceptance-features/authorization/resource/give.feature
conjur-cli-4.29.0 acceptance-features/authorization/resource/give.feature