twilio / twilio-java

A Java library for communicating with the Twilio REST API and generating TwiML.
MIT License
484 stars 425 forks source link

feat: modify user agent string #683

Closed sbansla closed 2 years ago

sbansla commented 2 years ago

Fixes

Standardisation of UserAgent String as per below mentioned doc https://docs.google.com/document/d/1dDAvu9N4wkTnZKmWx5iiMfU42b7qYLAegA_QbZoBkU0/edit#

Checklist

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

shrutiburman commented 2 years ago

Could you link the issue that this PR solves, in the description ?

sbansla commented 2 years ago

Could you link the issue that this PR solves, in the description ?

Added

sbansla commented 2 years ago

High-level feedback on the new tests: they do execute the new/changed lines and have assertions, but the assertions are overly loose. They should assert on the expected impact of the new behavior rather than the new behavior not having a negative impact.

Let me know if you'd like to sync for more discussion/clarification.

---> Corrected the test cases wherever possible. File: TwilioRestClientTest, I have marked variable twilioRestClientExtension as @Injectable. If I don't mark it as @Injectable, Execution of method won't happen. twilioRestClientExtension.request(request) --> Won't succeed without @Injectable This behaviour was strange to me.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

87.9% 87.9% Coverage
0.0% 0.0% Duplication