Update rspec tests for creds and add stubs
parent
8c350cdcd7
commit
b8ae4f5d12
|
@ -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
|
|
@ -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
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue