Files
csharp/tests/E2E.Tests/MinikubeFactAttribute.cs
Boshi Lian af7be8603a E2E test with minikube on gh action (#513)
* add minikube as e2e test server

* fix format

* update env

* force no skip

* fix then

* finish skip test

* add skip blocker

* fix path

* output skipped case

* enable test env var

* final merge

* add missing file
2020-11-01 12:30:51 -08:00

13 lines
338 B
C#

using System;
using Xunit;
namespace k8s.E2E
{
public sealed class MinikubeFactAttribute : FactAttribute
{
private static readonly bool HasEnv = !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("K8S_E2E_MINIKUBE"));
public override string Skip => !HasEnv ? "K8S_E2_MINIKUBE not set" : null;
}
}