Closed homanchou closed 11 years ago
Nevermind, I think I figured it out. I will update the readme in my fork and issue a pull request when I am ready.
Hey, it's kind of a crappy system that I plan on changing around. You'll see @timestamp
variables in the specs. You'll have to update it to whatever Time.now returns. Thanks for the contributions!
Hi, I just forked the project and I would like to contribute to the feeds api. But first, can you help me understand what I need to do to get the tests to pass? I just ran rspec spec and I get failures like this (I tried looking through the source and tests, I took a look at the ephemeral_response gem and tried adding a credential.yml file afterwards, but I wasn't able to progress much):
....FFFFFFF.......
Failures:
1) MWS::API::Inventory requests list_inventory_supply should return items based on seller SKUs Failure/Error: items = @mws.inventory.list_inventory_supply :timestamp => @timestamp, MWS::ErrorResponse: RequestExpired: Request has expired. Timestamp date: 2012-04-25T21:42:11-04:00
./lib/ruby-mws/api/response.rb:22:in `handle_error_response'
2) MWS::API::Inventory requests list_inventory_supply should return items with inventory changes since a certain time Failure/Error: items = @mws.inventory.list_inventory_supply :timestamp => @timestamp, MWS::ErrorResponse: RequestExpired: Request has expired. Timestamp date: 2012-04-25T21:42:11-04:00
./lib/ruby-mws/api/response.rb:22:in `handle_error_response'
3) MWS::API::Order requests list_orders should receive a list of orders Failure/Error: orders = @mws.orders.list_orders :last_updated_after => "2012-01-15T13:07:26-05:00" , MWS::ErrorResponse: RequestExpired: Request has expired. Timestamp date: 2012-04-25T21:42:55-04:00
./lib/ruby-mws/api/response.rb:22:in `handle_error_response'
4) MWS::API::Order requests list_orders_by_next_token should receive a list_orders_by_next_token_result Failure/Error: orders = @mws.orders.list_orders_by_next_token :timestamp => @timestamp, MWS::ErrorResponse: RequestExpired: Request has expired. Timestamp date: 2012-04-25T21:42:55-04:00
./lib/ruby-mws/api/response.rb:22:in `handle_error_response'
5) MWS::API::Order requests get_order should return one order for one order id Failure/Error: order = @mws.orders.get_order :amazon_order_id => "102-4850183-7065809", MWS::ErrorResponse: RequestExpired: Request has expired. Timestamp date: 2012-04-25T21:42:55-04:00
./lib/ruby-mws/api/response.rb:22:in `handle_error_response'
6) MWS::API::Order requests get_order should return multiple orders for multiple order ids Failure/Error: orders = @mws.orders.get_order :amazon_order_id => ["102-4850183-7065809", "002-3400187-5292203"], MWS::ErrorResponse: RequestExpired: Request has expired. Timestamp date: 2012-04-25T21:42:55-04:00
./lib/ruby-mws/api/response.rb:22:in `handle_error_response'
7) MWS::API::Order requests list_order_items should return a list of items for an order Failure/Error: order = @mws.orders.list_order_items :amazon_order_id => "102-4850183-7065809", MWS::ErrorResponse: RequestExpired: Request has expired. Timestamp date: 2012-04-25T21:42:55-04:00
./lib/ruby-mws/api/response.rb:22:in `handle_error_response'