2013-04-01 21:06:40 +00:00
|
|
|
#
|
|
|
|
# Specs
|
|
|
|
#
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
#
|
|
|
|
# Project
|
|
|
|
#
|
|
|
|
|
|
|
|
require 'metasploit/framework/database'
|
|
|
|
require 'msf/core'
|
|
|
|
|
2015-10-16 20:57:04 +00:00
|
|
|
RSpec.describe Msf::DBManager do
|
2013-09-30 18:47:53 +00:00
|
|
|
include_context 'Msf::DBManager'
|
|
|
|
|
|
|
|
subject do
|
|
|
|
db_manager
|
|
|
|
end
|
|
|
|
|
2014-10-13 19:53:40 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Adapter'
|
2014-10-13 13:40:34 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Client'
|
2014-10-13 17:10:54 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Connection'
|
2014-10-09 16:44:15 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Cred'
|
2014-10-13 14:12:49 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Event'
|
2014-10-13 14:43:40 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::ExploitAttempt'
|
2014-10-09 17:58:30 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::ExploitedHost'
|
2014-10-09 16:16:04 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Host'
|
2014-10-13 15:27:55 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::HostDetail'
|
2014-10-13 16:03:21 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::HostTag'
|
2014-10-09 14:40:11 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::IPAddress'
|
2014-10-09 20:07:17 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Import'
|
2014-10-09 20:21:43 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Loot'
|
2014-10-08 20:30:20 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Migration'
|
2014-10-09 14:14:45 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::ModuleCache'
|
2014-10-09 20:39:55 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Note'
|
2014-10-13 15:12:09 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Ref'
|
2014-10-13 14:24:27 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Report'
|
2014-10-13 16:28:19 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Route'
|
2014-10-09 16:35:07 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Service'
|
2014-10-13 15:52:39 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Session'
|
2014-10-13 16:15:07 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::SessionEvent'
|
2014-10-13 14:32:42 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Task'
|
2014-10-09 20:51:39 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Vuln'
|
2014-10-13 16:34:12 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::VulnAttempt'
|
2014-10-13 14:58:59 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::VulnDetail'
|
2014-10-09 15:49:26 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::WMAP'
|
2014-10-13 17:01:49 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Web'
|
2014-10-08 20:54:29 +00:00
|
|
|
it_should_behave_like 'Msf::DBManager::Workspace'
|
2013-09-30 18:47:53 +00:00
|
|
|
|
2018-04-26 21:01:15 +00:00
|
|
|
# Not implemented in remote data service
|
2018-04-02 13:08:23 +00:00
|
|
|
unless ENV['REMOTE_DB']
|
|
|
|
it { is_expected.to respond_to :check }
|
|
|
|
it { is_expected.to respond_to :error }
|
|
|
|
it { is_expected.to respond_to :service_name_map }
|
|
|
|
end
|
|
|
|
|
2013-04-01 21:06:40 +00:00
|
|
|
end
|