Skip to content
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

Add unit tests for ToSnakeCase() #2859

Conversation

nr-ahemsath
Copy link
Member

Unit test a new helper method introduced for DynamoDB instrumentation.

@nr-ahemsath nr-ahemsath requested a review from a team as a code owner October 28, 2024 22:38
@nr-ahemsath nr-ahemsath merged commit 669f6d1 into feature/dynamodb-instrumentation Oct 28, 2024
12 checks passed
@nr-ahemsath nr-ahemsath deleted the featurework/tolowersnakecase-tests branch October 28, 2024 22:41
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.41%. Comparing base (fe09372) to head (f57e2d8).
Report is 1 commits behind head on feature/dynamodb-instrumentation.

Additional details and impacted files
@@                         Coverage Diff                          @@
##           feature/dynamodb-instrumentation    #2859      +/-   ##
====================================================================
+ Coverage                             81.37%   81.41%   +0.04%     
====================================================================
  Files                                   464      464              
  Lines                                 29524    29524              
  Branches                               3266     3266              
====================================================================
+ Hits                                  24026    24038      +12     
+ Misses                                 4702     4688      -14     
- Partials                                796      798       +2     
Flag Coverage Δ
Agent 82.32% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

nr-ahemsath added a commit that referenced this pull request Oct 29, 2024
* Bring initial POC to feature branch (#2836)

* First pass at DynamoDB support

* db.system attribute was not being set correctly

---------

Co-authored-by: chynesNR <chynes@newrelic.com>

* Clean up POC (#2839)

* Remove datastore vendor name from ConnectionInfo in MemcachedHelpers

* Get operation name from request type by converting PascalCaseRequest to snake_case

* Make operation name cache thread safe (#2841)

* Make operation name cache thread safe

* Cleaner implementation based on PR feedback

* Update src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/AwsSdk/DynamoDbRequestHandler.cs

Co-authored-by: Chris Ventura <45495992+nrcventura@users.noreply.github.com>

---------

Co-authored-by: Chris Ventura <45495992+nrcventura@users.noreply.github.com>

* DynamoDB integration tests (#2854)

* Rename things in preparation to add another AWS SDK test type

* Add project dependencies

* More renaming

* Initial plumbing created

* More cleanup

* Forklift exerciser methods from standalone test app

* Working tests

* Cleanup

* Fix port assignment issue seen in CI

* Only wait up to two minutes for table to become active

* List ports in use in container tests host

For temporary troubleshooting

* Update tests/Agent/IntegrationTests/ContainerApplications/AwsSdkTestApp/AwsSdkExercisers/AwsSdkDynamoDBExerciser.cs

Co-authored-by: Marty T <120425148+tippmar-nr@users.noreply.github.com>

* Fix port conflict issue plus PR feedback

---------

Co-authored-by: Marty T <120425148+tippmar-nr@users.noreply.github.com>

* Add unit tests for ToSnakeCase() (#2859)

Unit tests for ToSnakeCase()

---------

Co-authored-by: chynesNR <chynes@newrelic.com>
Co-authored-by: Chris Ventura <45495992+nrcventura@users.noreply.github.com>
Co-authored-by: Marty T <120425148+tippmar-nr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants