Sha256: 2068dd2865322a096f82e37a702c65935bdd4ff8a378239e04f48d6490c92541

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

Feature: Display role members and memberships.

  Background:
    Given I run the code:
    """
    $conjur.load_policy 'root', <<-POLICY
    - !group everyone
    - !group developers
    - !grant
      role: !group everyone
      member: !group developers
    POLICY
    """

  Scenario: Show a role's members.
    When I run the code:
    """
    $conjur.role('cucumber:group:everyone').members.map(&:as_json)
    """
    Then the JSON should be:
    """
    [
      {
        "admin_option": true,
        "member": "cucumber:user:admin",
        "role": "cucumber:group:everyone"
      },
      {
        "admin_option": false,
        "member": "cucumber:group:developers",
        "role": "cucumber:group:everyone"
      }
    ]
    """

  Scenario: Show a role's memberships.
    When I run the code:
    """
    $conjur.role('cucumber:group:developers').memberships.map(&:as_json)
    """
    Then the JSON should be:
    """
    [
      {
        "id": "cucumber:group:developers"
      },
      {
        "id": "cucumber:group:everyone"
      }
    ]
    """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
conjur-api-5.1.0 features/members.feature
conjur-api-5.0.0 features/members.feature
conjur-api-5.0.0.rc1 features/members.feature