Skip to content
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

Merged
merged 11 commits into from
Dec 29, 2014
Merged

Refactor/Extract Common Credential Module #98

merged 11 commits into from
Dec 29, 2014

Conversation

sgreen-r7
Copy link
Contributor

Renamed Credential to SiteCredential.
Created a new super class Credential to hold the testing method(s), the constants and common modules.
This allowed both SiteCredential, and SharedCredential 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 the test method.
Everything else should be exactly the same



# Credential type options.
module Type
Copy link
Contributor

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.)

Copy link
Contributor Author

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 }
Copy link
Contributor

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.

mdaines-r7 added a commit that referenced this pull request Dec 29, 2014
Refactor/Extract Common Credential Module
@mdaines-r7 mdaines-r7 merged commit ff1ea3f into rapid7:master Dec 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants