Sha256: 2c85bc01efec3faaaef9a8564eccd3b06e6e1182f8a0df8b21842df87ad0335d

Contents?: true

Size: 1.74 KB

Versions: 37

Compression:

Stored size: 1.74 KB

Contents

@real-api
Feature: Retrieving role graphs
  As a Conjur user
  In order to understand the role hierarchy
  I want to retrieve role graphs and present them in a useful format

Background:
  Given a graph with edges
    | Tywin     | Jamie         |
    | Tywin     | Cersei        |
    | Cersei    | Joffrey       |
    | Jamie     | Joffrey       |
    | Aerys     | Tyrion        |
    | Joanna    | Tyrion        |

  Scenario: Showing the graph as JSON
    When I successfully run with role expansion "conjur role graph --as-role Joffrey Joffrey"
    Then the graph JSON should be:
      """
        {
          "graph": [
            { "parent": "Tywin",  "child": "Jamie" },
            { "parent": "Tywin",  "child": "Cersei"},
            { "parent": "Cersei", "child": "Joffrey"},
            { "parent": "Jamie",  "child": "Joffrey" }
          ]
        }
      """

  Scenario: Short JSON output
    When I successfully run with role expansion "conjur role graph --short --as-role Joffrey Joffrey"
    Then the graph JSON should be:
      """
        [
          [ "Tywin", "Jamie"   ],
          [ "Tywin", "Cersei"  ],
          [ "Jamie", "Joffrey" ],
          [ "Cersei", "Joffrey"]
        ]
      """

  Scenario: I can restrict the output to show only ancestors or descendants
    When I successfully run with role expansion "conjur role graph --short --no-ancestors --as-role Cersei Cersei"
    Then the graph JSON should be:
      """
        [
          [ "Cersei", "Joffrey" ]
        ]
      """
    When I successfully run with role expansion "conjur role graph --short --no-descendants --as-role Cersei Cersei Jamie"
    Then the graph JSON should be:
      """
        [
          [ "Tywin", "Cersei" ],
          [ "Tywin", "Jamie"  ]
        ]
      """

Version data entries

37 entries across 33 versions & 1 rubygems

Version Path
conjur-cli-5.6.6 features/role_graph.feature
conjur-cli-5.6.5 features/role_graph.feature
conjur-cli-5.6.4 features/role_graph.feature
conjur-cli-5.6.3 features/role_graph.feature
conjur-cli-5.5.0 features/role_graph.feature
conjur-cli-5.4.0 features/role_graph.feature
conjur-cli-5.3.0 features/role_graph.feature
conjur-cli-5.2.5 features/role_graph.feature
conjur-cli-5.2.4 features/role_graph.feature
conjur-cli-5.2.3 features/role_graph.feature
conjur-cli-5.2.1 features/role_graph.feature
conjur-cli-5.2.0 features/role_graph.feature
conjur-cli-5.1.2 features/role_graph.feature
conjur-cli-5.1.1 features/role_graph.feature
conjur-cli-5.1.0 features/role_graph.feature
conjur-cli-4.30.1 features/role_graph.feature
conjur-cli-4.30.0 features/role_graph.feature
conjur-cli-4.29.0 features/role_graph.feature
conjur-cli-4.28.2 features/role_graph.feature
conjur-cli-4.28.2 acceptance-features/authorization/role/graph.feature