Sha256: 26b7d769510d7ad109c5301b6257d39680f770de08fd3f70d0774dd1e542c496
Contents?: true
Size: 1001 Bytes
Versions: 3
Compression:
Stored size: 1001 Bytes
Contents
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
peddler-1.6.3 | test/integration/test_feeds.rb |
peddler-1.6.2 | test/integration/test_feeds.rb |
peddler-1.6.1 | test/integration/test_feeds.rb |