opentelemetry-dotnet-contrib icon indicating copy to clipboard operation
opentelemetry-dotnet-contrib copied to clipboard

Move Existing ServerCertificateValidation Classes to Shared

Open anoopbabu29 opened this issue 1 year ago • 1 comments

Attempt to move the ServerCertificateValidtion Classes to the Shared folder. This use case is very generic and has potential to be used for multiple ResourceDetector Projects. It was also intended to be used in the ResourceDetectors.Container Project in https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/1529.

One reservation I have for this is the ideal location for the test cases, as they currently just exist in the ResourceDetectors.AWS.Tests Test project.

anoopbabu29 avatar Jan 26 '24 03:01 anoopbabu29

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.77%. Comparing base (71655ce) to head (fa08aa6). Report is 178 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1550      +/-   ##
==========================================
- Coverage   73.91%   73.77%   -0.14%     
==========================================
  Files         267      256      -11     
  Lines        9615     9415     -200     
==========================================
- Hits         7107     6946     -161     
+ Misses       2508     2469      -39     
Flag Coverage Δ
unittests-Exporter.Geneva 58.21% <ø> (?)
unittests-Exporter.OneCollector 89.72% <ø> (?)
unittests-Extensions 82.75% <ø> (?)
unittests-Instrumentation.AspNet 75.82% <ø> (?)
unittests-Instrumentation.EventCounters 75.92% <ø> (?)
unittests-Instrumentation.Owin 85.71% <ø> (?)
unittests-Instrumentation.Process 100.00% <ø> (?)
unittests-Instrumentation.Runtime 100.00% <ø> (?)
unittests-Instrumentation.StackExchangeRedis 71.00% <ø> (?)
unittests-Instrumentation.Wcf 78.47% <ø> (?)
unittests-PersistentStorage 65.78% <ø> (?)
unittests-ResourceDetectors.Azure 81.53% <ø> (?)
unittests-ResourceDetectors.Host 40.00% <ø> (?)
unittests-ResourceDetectors.Process 100.00% <ø> (?)
unittests-ResourceDetectors.ProcessRuntime 76.08% <ø> (?)
unittests-Solution 79.92% <100.00%> (?)

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

Files Coverage Δ
...ry.ResourceDetectors.AWS/AWSEKSResourceDetector.cs 58.62% <100.00%> (ø)
...y.ResourceDetectors.AWS/AWSResourcesEventSource.cs 62.50% <ø> (ø)

... and 200 files with indirect coverage changes

codecov[bot] avatar Jan 26 '24 03:01 codecov[bot]

This PR was marked stale due to lack of activity. It will be closed in 7 days.

github-actions[bot] avatar Feb 15 '24 03:02 github-actions[bot]

This PR was marked stale due to lack of activity. It will be closed in 7 days.

github-actions[bot] avatar Feb 26 '24 03:02 github-actions[bot]

This PR was marked stale due to lack of activity. It will be closed in 7 days.

github-actions[bot] avatar Mar 05 '24 03:03 github-actions[bot]

This PR was marked stale due to lack of activity. It will be closed in 7 days.

github-actions[bot] avatar Mar 13 '24 03:03 github-actions[bot]

@srprash @atshaw43 @ppittle - Could you please review?

vishweshbankwar avatar Mar 20 '24 00:03 vishweshbankwar

Attempt to move the ServerCertificateValidtion Classes to the Shared folder. This use case is very generic and has potential to be used for multiple ResourceDetector Projects. It was also intended to be used in the ResourceDetectors.Container Project in #1529.

@srprash @atshaw43 @ppittle This PR intends to move ServerCertificateValidation related code from OpenTelemetry.ResourceDetectors.AWS to src/Shared as that code is a good candidate to be shared by other components as well. If moved to the shared folder, OpenTelemetry.ResourceDetectors.Container would like to use them for #1529. Could you please review this change?

One reservation I have for this is the ideal location for the test cases, as they currently just exist in the ResourceDetectors.AWS.Tests Test project.

I think individual components that end up using the ServerCertificateValidation code can test the functionality in their own test projects.

utpilla avatar Mar 20 '24 00:03 utpilla

This PR was marked stale due to lack of activity. It will be closed in 7 days.

github-actions[bot] avatar Mar 27 '24 03:03 github-actions[bot]

This PR was marked stale due to lack of activity. It will be closed in 7 days.

github-actions[bot] avatar Apr 04 '24 03:04 github-actions[bot]

As @anoopbabu29 is not really active, I'm ready to help on this PR (especially to unblock #1562/#1529). If it's ok for you, you can close this PR and I'll open a new one then.

joegoldman2 avatar Apr 06 '24 17:04 joegoldman2

Closing, per https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/1550#issuecomment-2041144409

Kielek avatar Apr 08 '24 04:04 Kielek