Sha256: 4213f420ec596462f133a2fe6d751b661e2f686ace9ad35e541416e911a23c3c

Contents?: true

Size: 727 Bytes

Versions: 11

Compression:

Stored size: 727 Bytes

Contents

Feature: Test existence of a role

  Scenario: A never-created role does not exist
    When I successfully run `conjur role exists --json food:nonesuch`
    Then the JSON at "exists" should be false

  Scenario: A created role does exist
    Given I load the policy:
    """
    - !role
      kind: job
      id: cook
    """
    And I successfully run `conjur role exists --json job:cook`
    Then the JSON at "exists" should be true

  Scenario: Even foreign user can check existance of a role 
    Given I load the policy:
    """
    - !user alice

    - !role
      kind: job
      id: cook
    """
    And I login as "alice"
    And I run `conjur role exists --json job:cook`
    Then the JSON at "exists" should be true

Version data entries

11 entries across 11 versions & 1 rubygems

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