twilio / authy-java

Java Client for Twilio Authy Two-Factor Authentication (2FA) API
https://www.twilio.com/docs/authy/api
MIT License
65 stars 46 forks source link

Fix JSON related flaky tests #70

Closed shunfan-shao closed 2 years ago

shunfan-shao commented 2 years ago

Description The test

com.authy.api.UserStatusTest#testToJSON

failed under environment NonDex which detect flakiness under non-deterministic data structure usages.

Whereas toJson utilize HashMap internally, so the order of objects might not be guaranteed. I added a library that tests JSON object without enforcing the order.

To Reproduce

mvn edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=com.authy.api.UserStatusTest#testToJSON  -DnondexSeed=933178

Please let me know if you have any question!

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

robinske commented 2 years ago

This library is no longer actively maintained. The Authy API has been replaced with the Twilio Verify API. Twilio will support the Authy API through November 1, 2022 for SMS/Voice. After this date, we’ll start to deprecate the service for SMS/Voice. Any requests sent to the API after May 1, 2023, will automatically receive an error. Push and TOTP will continue to be supported through July 2023.

Learn more about migrating from Authy to Verify.

Please visit the Twilio Docs for:

Please direct any questions to Twilio Support. Thank you!