-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move existing ServerCertificateValidationHandler to Shared (#1640)
- Loading branch information
1 parent
d1a7283
commit 99f4fb1
Showing
10 changed files
with
115 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using System; | ||
|
||
namespace OpenTelemetry.ResourceDetectors; | ||
|
||
internal interface IServerCertificateValidationEventSource | ||
{ | ||
public void FailedToValidateCertificate(string error); | ||
|
||
public void FailedToCreateHttpHandler(Exception exception); | ||
|
||
public void CertificateFileDoesNotExist(string filename); | ||
|
||
public void FailedToLoadCertificateInTrustedStorage(string filename); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...nTelemetry.ResourceDetectors.AWS.Tests/Http/NoopServerCertificateValidationEventSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using System; | ||
|
||
namespace OpenTelemetry.ResourceDetectors.AWS.Tests.Http; | ||
|
||
internal sealed class NoopServerCertificateValidationEventSource : IServerCertificateValidationEventSource | ||
{ | ||
public static NoopServerCertificateValidationEventSource Instance { get; } = new NoopServerCertificateValidationEventSource(); | ||
|
||
public void FailedToValidateCertificate(string error) | ||
{ | ||
} | ||
|
||
public void FailedToCreateHttpHandler(Exception exception) | ||
{ | ||
} | ||
|
||
public void CertificateFileDoesNotExist(string filename) | ||
{ | ||
} | ||
|
||
public void FailedToLoadCertificateInTrustedStorage(string filename) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters