Sha256: 59f5cee1c3ba024828e3dac8a5e876f119da5b50321a18a67a2929b36e00de45

Contents?: true

Size: 805 Bytes

Versions: 11

Compression:

Stored size: 805 Bytes

Contents

Feature: Show a resource

  Background:
    Given I load the policy:
    """
    - !user eve

    - !user alice

    - !resource
      kind: food
      id: bacon

    - !permit
      role: !user alice
      privilege: fry
      resource: !resource
        kind: food
        id: bacon
    """
  
  Scenario: Showing a resource displays all its fields
    When I successfully run `conjur show food: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 show any resource if you have a privilege on it
    Once alice has a permission to fry bacon, she can show everything
    about bacon.
  
    And I login as "alice"
    Then I successfully run `conjur show food:bacon`

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
conjur-cli-6.2.6 features/authorization/resource/show.feature
conjur-cli-6.2.5 features/authorization/resource/show.feature
conjur-cli-6.2.4 features/authorization/resource/show.feature
conjur-cli-6.2.3 features/authorization/resource/show.feature
conjur-cli-6.2.2 features/authorization/resource/show.feature
conjur-cli-6.2.1 features/authorization/resource/show.feature
conjur-cli-6.2.0 features/authorization/resource/show.feature
conjur-cli-6.1.0 features/authorization/resource/show.feature
conjur-cli-6.0.1 features/authorization/resource/show.feature
conjur-cli-6.0.0 features/authorization/resource/show.feature
conjur-cli-6.0.0.rc1 features/authorization/resource/show.feature