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 auth_rate_spec to account for password used in config #2182

Open
DeezyE opened this issue Oct 12, 2021 · 1 comment
Open

Refactor auth_rate_spec to account for password used in config #2182

DeezyE opened this issue Oct 12, 2021 · 1 comment

Comments

@DeezyE
Copy link
Contributor

DeezyE commented Oct 12, 2021

within /spec/beef/api/auth_rate_spec.rb

before(:all) do
@config = BeEF::Core::Configuration.instance
@config.set('beef.credentials.user', "beef")
@config.set('beef.credentials.passwd', "beef")
@username = @config.get('beef.credentials.user')
@password = @config.get('beef.credentials.passwd')

The setting (and using later) of passwords in this manner breaks the test when you set custom env variables for a test user (TEST_BEEF_PASSWD or TEST_BEEF_USER) within the spec/constants.

Suggest using the constants provided in the config or constants without requiring a specific user / pass

@DeezyE
Copy link
Contributor Author

DeezyE commented Mar 4, 2022

Once this is resolved, update the wiki https://github.com/beefproject/beef/wiki/BeEF-Testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants