Update rspec tests for creds and add stubs

GSoC/Meterpreter_Web_Console
James Barnett 2018-07-11 17:42:55 -05:00
parent 8c350cdcd7
commit b8ae4f5d12
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
3 changed files with 32 additions and 4 deletions

View File

@ -0,0 +1,18 @@
module LoginDataService
def creds(opts)
raise 'CredentialDataService#creds is not implemented'
end
def create_credential(opts)
raise 'CredentialDataService#create_credential is not implemented'
end
def update_credential(opts)
raise 'CredentialDataService#update_credential is not implemented'
end
def delete_credential(opts)
raise 'CredentialDataService#delete_credential is not implemented'
end
end

View File

@ -0,0 +1,14 @@
module LoginDataService
def logins(opts)
raise 'LoginDataService#logins is not implemented'
end
def create_credential_login(opts)
raise 'LoginDataService#create_credential_login is not implemented'
end
def update_login(hosts)
raise 'LoginDataService#update_login is not implemented'
end
end

View File

@ -1,9 +1,5 @@
RSpec.shared_examples_for 'Msf::DBManager::Cred' do
if ENV['REMOTE_DB']
before {skip("Awaiting cred port")}
end
it { is_expected.to respond_to :creds }
it { is_expected.to respond_to :each_cred }
it { is_expected.to respond_to :find_or_create_cred }