Set the credentials before test runs

This commit is contained in:
Grant Burgess
2020-01-14 10:31:30 +10:00
parent d26a0fda33
commit 4d7810e730

View File

@@ -10,6 +10,8 @@ RSpec.describe 'BeEF API Rate Limit' do
# Note: rake spec passes --patterns which causes BeEF to pickup this argument via optparse. I can't see a better way at the moment to filter this out. Therefore ARGV=[] for this test.
ARGV = []
@config = BeEF::Core::Configuration.instance
@config.set('beef.credentials.user', "beef")
@config.set('beef.credentials.passwd', "beef")
http_hook_server = BeEF::Core::Server.instance
http_hook_server.prepare
@pids = fork do