Skip to content

Commit

Permalink
Change Setropts Trait names to match
Browse files Browse the repository at this point in the history
Changed to "maxSessionKeyInterval" and "base:max_session_key_interval" where appropriate. also change vtam header to appc and appcTransactionAudit to transactionAudit since it is within the APPC header.

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
  • Loading branch information
ElijahSwiftIBM committed Nov 15, 2023
1 parent 84f10ed commit f7b5c17
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
13 changes: 8 additions & 5 deletions pyracf/setropts/setropts_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(
"base:log_commands_issuesd_by_special_users": "racf:saudit",
"base:security_label_control": "racf:seclabct",
"base:secondary_language": "racf:seclang",
"base:session_key_verification_interval": "racf:sessint",
"base:max_session_key_interval": "racf:sessint",
"base:security_label_auditing": "racf:slabaudt",
"base:security_label_system": "racf:slbysys",
"base:security_level_auditing": "racf:slevaudt",
Expand All @@ -104,6 +104,9 @@ def __init__(
"base:program_control": "racf:whenprog",
}
}
self._extracted_key_value_pair_segment_traits_map = {
"base": {" session key verification interval": "maxSessionKeyInterval"}
}
super().__init__(
"systemSettings",
debug=debug,
Expand Down Expand Up @@ -462,13 +465,13 @@ def _format_profile(self, result: dict) -> None:
)
.replace(
"PARTNER LU-VERIFICATION SESSIONKEY INTERVAL MAXIMUM/DEFAULT",
"VTAM SESSION KEY VERIFICATION INTERVAL",
"APPC SESSION KEY VERIFICATION INTERVAL",
)
.replace(
"PARTNER LU-VERIFICATION SESSIONKEY INTERVAL DEFAULT",
"VTAM SESSION KEY VERIFICATION INTERVAL",
"APPC SESSION KEY VERIFICATION INTERVAL",
)
.replace("APPLAUDIT", "VTAM APPC TRANSACTION AUDIT")
.replace("APPLAUDIT", "APPC TRANSACTION AUDIT")
.splitlines()
)
# Merge multi-line fields into single line based on key-value relationship token.
Expand Down Expand Up @@ -521,7 +524,7 @@ def _format_profile(self, result: dict) -> None:
"LANGUAGE DEFAULT": "languageDefaults",
"DATA SET": "dataSets",
"SECURITY LABEL": "securityLabels",
"VTAM": "vtam",
"APPC": "appc",
"KERBEROS": "kerberos",
"GENERIC RULES": "genericRules",
"GROUP RULES": "groupRules",
Expand Down
4 changes: 2 additions & 2 deletions tests/setropts/setropts_log_samples/list_setropts_success.log
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,8 @@
"interprocessCommunications": false,
"nameHiding": false
},
"vtam": {
"sessionKeyVerificationInterval": 30
"appc": {
"maxSessionKeyInterval": 30
},
"kerberos": {
"encryptionLevel": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,9 @@
"interprocessCommunications": true,
"nameHiding": false
},
"vtam": {
"sessionKeyVerificationInterval": 30,
"appcTransactionAudit": true
"appc": {
"maxSessionKeyInterval": 30,
"transactionAudit": true
},
"kerberos": {
"encryptionLevel": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2017,9 +2017,9 @@
"interprocessCommunications": false,
"nameHiding": false
},
"vtam": {
"sessionKeyVerificationInterval": null,
"appcTransactionAudit": false
"appc": {
"maxSessionKeyInterval": null,
"transactionAudit": false
},
"kerberos": {
"encryptionLevel": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,8 @@
"interprocessCommunications": false,
"nameHiding": false
},
"vtam": {
"sessionKeyVerificationInterval": 30
"appc": {
"maxSessionKeyInterval": 30
},
"kerberos": {
"encryptionLevel": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@
"interprocessCommunications": true,
"nameHiding": false
},
"vtam": {
"sessionKeyVerificationInterval": 30,
"appcTransactionAudit": true
"appc": {
"maxSessionKeyInterval": 30,
"transactionAudit": true
},
"kerberos": {
"encryptionLevel": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1407,9 +1407,9 @@
"interprocessCommunications": false,
"nameHiding": false
},
"vtam": {
"sessionKeyVerificationInterval": null,
"appcTransactionAudit": false
"appc": {
"maxSessionKeyInterval": null,
"transactionAudit": false
},
"kerberos": {
"encryptionLevel": 0
Expand Down

0 comments on commit f7b5c17

Please sign in to comment.