Skip to content

Refactor auth_rate_spec to account for password used in config #2182

Open
@DeezyE

Description

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

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions