test/unit/resources/mock/iam/aws_iam_access_key_mock.rb
def stub_data
    stub_data = []

    keys = { :client => Aws::IAM::Client,
             :method => :list_access_keys,
             :data => { :access_key_metadata => @access_keys }}

    password = { :client => Aws::IAM::Client,
                 :method => :get_access_key_last_used,
                 :data => @last_used }

    stub_data += [password]
    stub_data += [keys]
  end
# Provide the mapping for what to return when mocking calls to the AWS SDK.
Provide the mapping for what to return when mocking calls to the AWS SDK.
Provide the mapping for what to return when mocking calls to the AWS SDK .
def stub_data
    stub_data = []
    keys = { :client => Aws::IAM::Client,
             :method => :list_access_keys,
             :data => { :access_key_metadata => @access_keys }}
    password = { :client => Aws::IAM::Client,
                 :method => :get_access_key_last_used,
                 :data => @last_used }
    stub_data += [password]
    stub_data += [keys]
  end
def stub_data stub_data = [ ] keys = { :client => Aws :: IAM :: Client , :method => :list_access_keys , :data => { :access_key_metadata => @access_keys } } password = { :client => Aws :: IAM :: Client , :method => :get_access_key_last_used , :data => @last_used } stub_data += [ password ] stub_data += [ keys ] end
Provide the mapping for what to return when mocking calls to the AWS SDK.
Provide the mapping for what to return when mocking calls to the AWS SDK .