enforce json_rpc_spec to treat db as disabled

This commit is contained in:
Jeffrey Martin 2020-03-20 17:24:35 -05:00
parent 54036d1f60
commit 772a24cb25
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,10 @@ RSpec.describe "Metasploit's json-rpc" do
::Msf::WebServices::JsonRpcApp.new
end
before(:example) do
allow(framework.db).to receive(:active).and_return(false)
end
def create_job
post api_url, {
'jsonrpc': '2.0',