From 4d7810e73069c96d993fc9a4d00c7f07430376f7 Mon Sep 17 00:00:00 2001 From: Grant Burgess Date: Tue, 14 Jan 2020 10:31:30 +1000 Subject: [PATCH] Set the credentials before test runs --- spec/beef/api/auth_rate_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/beef/api/auth_rate_spec.rb b/spec/beef/api/auth_rate_spec.rb index 0ebcc3e40..288475510 100644 --- a/spec/beef/api/auth_rate_spec.rb +++ b/spec/beef/api/auth_rate_spec.rb @@ -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