Sha256: 1cf7d3ca7f7af9a626f0fccb5236b6921c51a6373dfc475e8b1249513aea7cd0

Contents?: true

Size: 1.73 KB

Versions: 18

Compression:

Stored size: 1.73 KB

Contents

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

18 entries across 18 versions & 1 rubygems

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