Sha256: bd4d2624bf5cc0d275c4a0aa642153d052abf6769700fe0bcf1685969e01c769

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

Feature: Show a resource

  Background:
    Given I successfully run `conjur resource create food:$ns/bacon`
  
  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
    When I run `conjur resource show food:$ns/bacon`
    Then the exit status should be 1
    And the output from "conjur resource show food:$ns/bacon" 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

4 entries across 4 versions & 1 rubygems

Version Path
conjur-cli-4.28.2 acceptance-features/authorization/resource/show.feature
conjur-cli-4.28.1 acceptance-features/authorization/resource/show.feature
conjur-cli-4.28.0 acceptance-features/authorization/resource/show.feature
conjur-cli-4.27.0 acceptance-features/authorization/resource/show.feature