Sha256: ecab1f730d8b1213682a625baadbdd293e1808dc089f96d37abf34f5978b9d90

Contents?: true

Size: 1.06 KB

Versions: 18

Compression:

Stored size: 1.06 KB

Contents

Feature: Show a resource

  Background:
    Given I successfully run `conjur resource create food:$ns/bacon`
    And I reset the command list
  
  Scenario: Showing a resource displays all its fields
    When I successfully run `conjur resource show food:$ns/bacon`
    Then the JSON should have "id"
    And the JSON should have "owner"
    And the JSON should have "permissions"
    And the JSON should have "annotations"

  Scenario: You can't show a resource on which you have no privileges
    Given I login as a new user
    And I reset the command list
    When I run `conjur resource show food:$ns/bacon`
    Then the exit status should be 1
    And the output should contain "Forbidden"
    
  Scenario: You can show any resource if you have a privilege on it
    Once alice has a permission to fry bacon, she can show everything
    about bacon.
  
    Given I create a new user named "alice@$ns"
    And I successfully run `conjur resource permit food:$ns/bacon user:alice@$ns fry`
    And I login as "alice@$ns"
    Then I successfully run `conjur resource show food:$ns/bacon`

Version data entries

18 entries across 18 versions & 1 rubygems

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