Sha256: 6ec9a460dbdfceae7746a7b44e81ae04c4ab48bace8e3fa4e592307b9d03430d
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true require 'integration_helper' require 'mws/feeds' class TestFeeds < IntegrationTest def test_gets_feed_submission_count clients.each do |client| res = client.get_feed_submission_count refute_empty res.parse end end def test_gets_feed_submission_list clients.each do |client| res = client.get_feed_submission_list refute_empty res.parse end end def test_submits_feeds feed_content = "sku\tprice\tquantity\nwidget\t\t0\n" feed_type = '_POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA_' clients.each do |client| res = client.submit_feed(feed_content, feed_type) feed_submission_id = res.dig('FeedSubmissionInfo', 'FeedSubmissionId') assert feed_submission_id res = client.get_feed_submission_result(feed_submission_id) assert res.records_count # Clean up client.cancel_feed_submissions( feed_submission_id: feed_submission_id, feed_type_list: feed_type ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
peddler-1.6.7 | test/integration/test_feeds.rb |
peddler-1.6.6 | test/integration/test_feeds.rb |
peddler-1.6.5 | test/integration/test_feeds.rb |
peddler-1.6.4 | test/integration/test_feeds.rb |