Sha256: f7bc404fe4f842b0388b415a071cf109c990056f7b4e795e0cf1bacdeabfd9a6

Contents?: true

Size: 1.2 KB

Versions: 4

Compression:

Stored size: 1.2 KB

Contents

require 'integration_helper'
require 'mws/reports'

class TestReports < IntegrationTest
  def test_gets_report_request_count
    clients.each do |client|
      res = client.get_report_request_count
      refute_empty res.parse
    end
  end

  def test_gets_report_request_list
    clients.each do |client|
      res = client.get_report_request_list
      refute_empty res.parse
    end
  end

  def test_gets_report_schedule_count
    clients.each do |client|
      res = client.get_report_schedule_count
      refute_empty res.parse
    end
  end

  def test_lists_report_schedules
    clients.each do |client|
      res = client.get_report_schedule_list
      refute_empty res.parse
    end
  end

  def test_gets_report_count
    clients.each do |client|
      res = client.get_report_count
      refute_empty res.parse
    end
  end

  def test_gets_report_list
    clients.each do |client|
      res = client.get_report_list
      refute_empty res.parse
    end
  end

  def test_gets_report
    clients.each do |client|
      res = client.get_report_list(max_count: 1)
      id = res.parse['ReportInfo']['ReportId']
      res = client.get_report(id)
      refute_empty res.parse || res.records_count
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
peddler-1.6.0 test/integration/test_reports.rb
peddler-1.5.0 test/integration/test_reports.rb
peddler-1.4.1 test/integration/test_reports.rb
peddler-1.4.0 test/integration/test_reports.rb