-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed X509 to read directly from file (#35)
* Changed X509 to read directly from file * Changed line endings * Cleanup and Added new tests
- Loading branch information
Showing
3 changed files
with
95 additions
and
56 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
16 changes: 16 additions & 0 deletions
16
test/Orleans.Clustering.Kubernetes.Test/IgnoreInsidePodFact.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,16 @@ | ||
using System.IO; | ||
using Xunit; | ||
|
||
namespace Orleans.Clustering.Kubernetes.Test | ||
{ | ||
public sealed class IgnoreInsidePodFact : FactAttribute | ||
{ | ||
private const string rootCertificatePath = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"; | ||
|
||
public IgnoreInsidePodFact() { | ||
if (File.Exists(rootCertificatePath)) { | ||
this.Skip = "Ignore when running inside a Pod"; | ||
} | ||
} | ||
} | ||
} |
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