From 35f95e4b049de7dedffb3aa711f9f8769e6e139c Mon Sep 17 00:00:00 2001 From: Matthew Kienow Date: Fri, 18 Jan 2019 12:34:29 -0500 Subject: [PATCH] Update test for new cred methods Correct remote data service test behavior. --- .../shared/examples/msf/db_manager/cred.rb | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/spec/support/shared/examples/msf/db_manager/cred.rb b/spec/support/shared/examples/msf/db_manager/cred.rb index 20143e4a89..5c73b5a210 100644 --- a/spec/support/shared/examples/msf/db_manager/cred.rb +++ b/spec/support/shared/examples/msf/db_manager/cred.rb @@ -1,9 +1,15 @@ RSpec.shared_examples_for 'Msf::DBManager::Cred' do + unless ENV['REMOTE_DB'] + it { is_expected.to respond_to :each_cred } + it { is_expected.to respond_to :find_or_create_cred } + it { is_expected.to respond_to :report_auth } + it { is_expected.to respond_to :report_auth_info } + it { is_expected.to respond_to :report_cred } + 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 } - it { is_expected.to respond_to :report_auth } - it { is_expected.to respond_to :report_auth_info } - it { is_expected.to respond_to :report_cred } + it { is_expected.to respond_to :create_credential } + it { is_expected.to respond_to :update_credential } + it { is_expected.to respond_to :delete_credentials } end \ No newline at end of file