Sha256: d040c5164d8efd07e7df6b737a69ebee478ab2e999fb3da913a1de98e6187b9b
Contents?: true
Size: 1.25 KB
Versions: 4
Compression:
Stored size: 1.25 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": false, "member": "cucumber:group:developers", "role": "cucumber:group:everyone" }, { "admin_option": true, "member": "cucumber:user:admin", "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" } ] """ Scenario: Show a role's memberships non-recursive. When I run the code: """ $conjur.role('cucumber:group:developers').memberships(recursive: false).any? """ Then the result should be "true"
Version data entries
4 entries across 4 versions & 1 rubygems