-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with rake certify
#16
Comments
@adelevie Seems like |
The |
I have different errors root@88b3a5a2ef7c:/usr/src/app# USPS_USER="XXXXXXX" ruby -e "require 'usps/test'"
Loaded suite -e
Started
F
========================================================================================================================================
/usr/local/bundle/gems/usps-0.1.3/lib/usps/test/address_verification.rb:14:in `test_address_standardization_1'
11: assert_equal 'GREENBELT', address.city
12: assert_equal 'MD', address.state
13: assert_equal '20770', address.zip5
=> 14: assert_equal '1440', address.zip4
15: end
16:
17: def test_address_standardization_2
<"1440"> expected but was
<"1441">
diff:
? 1440
? 1
Failure: test_address_standardization_1(USPS::Test)
========================================================================================================================================
...E
========================================================================================================================================
/usr/local/bundle/gems/usps-0.1.3/lib/usps/test/tracking_lookup.rb:6:in `test_tracking_lookup_1'
3: def test_tracking_lookup_1
4: tracker_id = "EJ958083578US"
5: request = USPS::Request::TrackingLookup.new(tracker_id)
=> 6: results = request.send!
7:
8: assert_equal "Your item was delivered at 8:10 am on June 1 in Wilmington DE 19801.", results.summary
9: assert_equal 3, results.details.length
/usr/local/bundle/gems/usps-0.1.3/lib/usps/request/base.rb:22:in `send!'
/usr/local/bundle/gems/usps-0.1.3/lib/usps/client.rb:29:in `request'
Error: test_tracking_lookup_1(USPS::Test): USPS::Error: API Disabled: TrackV2. This test request is no longer valid. Please use http://stg-production.shippingapis.com/ShippingAPI.dll.
========================================================================================================================================
E
========================================================================================================================================
/usr/local/bundle/gems/usps-0.1.3/lib/usps/test/tracking_lookup.rb:19:in `test_tracking_lookup_2'
16: def test_tracking_lookup_2
17: tracker_id = "EJ958088694US"
18: request = USPS::Request::TrackingLookup.new(tracker_id)
=> 19: results = request.send!
20:
21: assert_equal "Your item was delivered at 1:39 pm on June 1 in WOBURN MA 01815.", results.summary
22: assert_equal 3, results.details.length
/usr/local/bundle/gems/usps-0.1.3/lib/usps/request/base.rb:22:in `send!'
/usr/local/bundle/gems/usps-0.1.3/lib/usps/client.rb:29:in `request'
Error: test_tracking_lookup_2(USPS::Test): USPS::Error: API Disabled: TrackV2. This test request is no longer valid. Please use http://stg-production.shippingapis.com/ShippingAPI.dll.
========================================================================================================================================
F
========================================================================================================================================
/usr/local/bundle/gems/usps-0.1.3/lib/usps/test/zip_code_lookup.rb:17:in `test_zip_code_lookup_1'
14: assert_equal 'GREENBELT', address.city
15: assert_equal 'MD', address.state
16: assert_equal '20770', address.zip5
=> 17: assert_equal '1440', address.zip4
18: end
19:
20: def test_zip_code_lookup_2
<"1440"> expected but was
<"1441">
diff:
? 1440
? 1
Failure: test_zip_code_lookup_1(USPS::Test)
========================================================================================================================================
.
Finished in 3.977059182 seconds.
----------------------------------------------------------------------------------------------------------------------------------------
8 tests, 26 assertions, 2 failures, 2 errors, 0 pendings, 0 omissions, 0 notifications
50% passed
----------------------------------------------------------------------------------------------------------------------------------------
2.01 tests/s, 6.54 assertions/s |
Certification is mostly working as a result of #24, with the exception of TrackingLookup. I've sent this email to USPS support:
|
I received a response with TrackV2 test value:
|
No runtime errors, but some failing tests:
I'm wondering if the test expectations should just be updated. Thoughts, @gaffneyc?
The text was updated successfully, but these errors were encountered: