-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/Extract Common Credential Module #98
Conversation
… shared_credential classes.
|
||
|
||
# Credential type options. | ||
module Type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check to see if there are any new ones to go into the constants here. (Yes, unfortunately, it's a manual process.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All synced up, no new ones to add.
sc_creds_snmpv3authtype: @auth_type, | ||
sc_creds_snmpv3privtype: @privacy_type, | ||
sc_creds_snmpv3privpassword: @privacy_password, | ||
siteid: -1 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field doesn't matter, right? Technically we could have a site ID for site credentials, but I don't think it would get used, unless for logging.
…to ElevationType, changed test method signature to accept siteid.
Refactor/Extract Common Credential Module
Renamed
Credential
toSiteCredential
.Created a new super class
Credential
to hold the testing method(s), the constants and common modules.This allowed both
SiteCredential
, andSharedCredential
to have access to the testing method to test newly created credentials.Reference Issue: #96
@mdaines-r7 @asalazar-r7 @gschneider-r7
Main changes made are for the signature
_to_param(target, engine_id, port)
and setting the@port
inside thetest
method.Everything else should be exactly the same