test/plugin/test_out_google_cloud_grpc.rb
# Verify the number and the content of the log entries match the expectation.
# The caller can optionally provide a block which is called for each entry.
Verify the number and the content of the log entries match the expectation.
The caller can optionally provide a block which is called for each entry.
Verify the number and the content of the log entries match the expectation . The caller can optionally provide a block which is called for each entry .
def verify_log_entries(n, params, payload_type = 'textPayload',
                         check_exact_entry_labels = true, &block)
    @requests_sent.each do |request|
      @logs_sent << {
        'entries' => request.entries.map { |entry| JSON.parse(entry.to_json) },
        'labels' => request.labels,
        'resource' => request.resource,
        'logName' => request.log_name
      }
    end
    verify_json_log_entries(n, params, payload_type, check_exact_entry_labels,
                            &block)
  end
def verify_log_entries ( n , params , payload_type = 'textPayload' , check_exact_entry_labels = true , & block ) @requests_sent . each do | request | @logs_sent << { 'entries' => request . entries . map { | entry | JSON . parse ( entry . to_json ) } , 'labels' => request . labels , 'resource' => request . resource , 'logName' => request . log_name } end verify_json_log_entries ( n , params , payload_type , check_exact_entry_labels , & block ) end
Verify the number and the content of the log entries match the expectation.
Verify the number and the content of the log entries match the expectation .
n
<not_specific>
params
<not_specific>
payload_type
<not_specific>
check_exact_entry_labels
<not_specific>
block
<not_specific>