Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion ferry_cli/helpers/supported_workflows/NewCapabilitySet.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ def __init__(self: "NewCapabilitySet") -> None:
"type": "string",
"required": False,
},
{
"name": "vault_storage_key",
"description": (
'The default will just be setname, but if the intent is to not store this vault storage key in LDAP, set this to the string "none"'
),
"type": "string",
"required": False,
},
]
super().__init__()

Expand Down Expand Up @@ -244,7 +252,9 @@ def run(self: "NewCapabilitySet", api: "FerryAPI", args: Any) -> Any: # type: i
"pattern": args["scopes_pattern"],
}
if args.get("token_subject", None) is not None:
new_cap_set_params["token_subject"] = args["token_subject"]
new_cap_set_params["tokensubject"] = args["token_subject"]
if args.get("vault_storage_key", None) is not None:
new_cap_set_params["vaultstoragekey"] = args["vault_storage_key"]

self.verify_output(
api,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_NewCapabilitySet.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
),
(
"Would call endpoint: https://example.com/createCapabilitySet with params\n"
+ "{'setname': 'testcapabilityset', 'pattern': 'scope1,scope2', 'token_subject': 'none'}"
+ "{'setname': 'testcapabilityset', 'pattern': 'scope1,scope2', 'tokensubject': 'none'}"
),
(
"Would call endpoint: https://example.com/addCapabilitySetToFQAN with params\n"
Expand Down