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