-
Notifications
You must be signed in to change notification settings - Fork 720
Mark IDeveloperCertificateService experimental #12648
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ public void VerifyYarpResourceWithTargetPort() | |
| [InlineData(false)] | ||
| public async Task VerifyRunEnvVariablesAreSet(bool containerCertificateSupport) | ||
| { | ||
| #pragma warning disable ASPIRECERTIFICATES001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. | ||
|
||
| var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Run); | ||
|
|
||
| // Report that developer certificates won't support container scenarios | ||
|
|
@@ -57,6 +58,7 @@ public async Task VerifyRunEnvVariablesAreSet(bool containerCertificateSupport) | |
| var value = Assert.Contains("YARP_UNSAFE_OLTP_CERT_ACCEPT_ANY_SERVER_CERTIFICATE", env); | ||
| Assert.Equal("true", value); | ||
| } | ||
| #pragma warning restore ASPIRECERTIFICATES001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. | ||
| } | ||
|
|
||
| [Fact] | ||
|
|
@@ -78,6 +80,7 @@ public async Task VerifyPublishEnvVariablesAreSet() | |
| [Fact] | ||
| public async Task VerifyWithStaticFilesAddsEnvironmentVariable() | ||
| { | ||
| #pragma warning disable ASPIRECERTIFICATES001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. | ||
| var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Run); | ||
|
|
||
| // Yarp requires an IDeveloperCertificateService in run mode when building it's environment variables. | ||
|
|
@@ -94,11 +97,13 @@ public async Task VerifyWithStaticFilesAddsEnvironmentVariable() | |
|
|
||
| var value = Assert.Contains("YARP_ENABLE_STATIC_FILES", env); | ||
| Assert.Equal("true", value); | ||
| #pragma warning restore ASPIRECERTIFICATES001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. | ||
| } | ||
|
|
||
| [Fact] | ||
| public async Task VerifyWithStaticFilesWorksInPublishOperation() | ||
| { | ||
| #pragma warning disable ASPIRECERTIFICATES001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. | ||
| var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish); | ||
|
|
||
| // Yarp requires an IDeveloperCertificateService in run mode when building it's environment variables. | ||
|
|
@@ -114,11 +119,13 @@ public async Task VerifyWithStaticFilesWorksInPublishOperation() | |
|
|
||
| var value = Assert.Contains("YARP_ENABLE_STATIC_FILES", env); | ||
| Assert.Equal("true", value); | ||
| #pragma warning restore ASPIRECERTIFICATES001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. | ||
| } | ||
|
|
||
| [Fact] | ||
| public async Task VerifyWithStaticFilesBindMountAddsEnvironmentVariable() | ||
| { | ||
| #pragma warning disable ASPIRECERTIFICATES001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. | ||
| var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Run); | ||
|
|
||
| // Yarp requires an IDeveloperCertificateService in run mode when building it's environment variables. | ||
|
|
@@ -137,6 +144,7 @@ public async Task VerifyWithStaticFilesBindMountAddsEnvironmentVariable() | |
|
|
||
| var value = Assert.Contains("YARP_ENABLE_STATIC_FILES", env); | ||
| Assert.Equal("true", value); | ||
| #pragma warning restore ASPIRECERTIFICATES001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. | ||
| } | ||
|
|
||
| [Fact] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The field declaration and constructor parameter both suppress the same warning. Consider placing the pragma at file scope to avoid duplicating the suppression for both the field (lines 73-75) and constructor parameter (lines 110-112).