Skip to content

Commit 881111b

Browse files
committed
test: skip the flakey tests for now.
1 parent ba957c3 commit 881111b

File tree

11 files changed

+7
-27
lines changed

11 files changed

+7
-27
lines changed

examples/Operator/Controller/V1TestEntityController.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
using KubeOps.Abstractions.Controller;
22
using KubeOps.Abstractions.Events;
3-
using KubeOps.Abstractions.Finalizer;
43
using KubeOps.Abstractions.Queue;
54
using KubeOps.Abstractions.Rbac;
65
using KubeOps.KubernetesClient;
76

87
using Microsoft.Extensions.Logging;
98

109
using Operator.Entities;
11-
using Operator.Finalizer;
1210

1311
namespace Operator.Controller;
1412

src/KubeOps.Abstractions/Entities/CustomKubernetesEntity{TSpec,TStatus}.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Text.Json.Serialization;
2-
3-
using k8s;
1+
using k8s;
42

53
namespace KubeOps.Abstractions.Entities;
64

src/KubeOps.Cli/Commands/Generator/DockerGenerator.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
using System.CommandLine;
22
using System.CommandLine.Invocation;
33

4-
using k8s;
5-
using k8s.Models;
6-
7-
using KubeOps.Abstractions.Kustomize;
84
using KubeOps.Cli.Output;
95

106
using Spectre.Console;

src/KubeOps.Cli/Commands/Generator/WebhookOperatorGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using KubeOps.Cli.Certificates;
1010
using KubeOps.Cli.Output;
1111
using KubeOps.Cli.Transpilation;
12-
using KubeOps.Transpiler;
1312

1413
using Spectre.Console;
1514

src/KubeOps.Generator/Generators/OperatorBuilderGenerator.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System.Text;
22

3-
using KubeOps.Generator.SyntaxReceiver;
4-
53
using Microsoft.CodeAnalysis;
64
using Microsoft.CodeAnalysis.CSharp;
75
using Microsoft.CodeAnalysis.CSharp.Syntax;

src/KubeOps.Operator/Watcher/LeaderAwareResourceWatcher{TEntity}.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using k8s.Models;
44

55
using KubeOps.Abstractions.Builder;
6-
using KubeOps.KubernetesClient;
76
using KubeOps.Operator.Queue;
87

98
using Microsoft.Extensions.Logging;

test/KubeOps.Operator.Test/Builder/OperatorBuilder.Test.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using FluentAssertions;
22

3-
using k8s.LeaderElection;
43
using k8s.Models;
54

65
using KubeOps.Abstractions.Builder;

test/KubeOps.Operator.Web.Test/IntegrationTestCollection.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111

1212
using Microsoft.AspNetCore.Builder;
1313
using Microsoft.AspNetCore.Hosting;
14-
using Microsoft.AspNetCore.Routing;
1514
using Microsoft.Build.Locator;
1615
using Microsoft.CodeAnalysis.MSBuild;
1716
using Microsoft.Extensions.DependencyInjection;
1817
using Microsoft.Extensions.DependencyInjection.Extensions;
19-
using Microsoft.Extensions.Hosting;
2018
using Microsoft.Extensions.Logging;
2119

2220
namespace KubeOps.Operator.Web.Test;

test/KubeOps.Operator.Web.Test/LocalTunnel/DevelopmentTunnelService.Test.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@
33
using k8s.Models;
44

55
using KubeOps.Operator.Client;
6-
using KubeOps.Operator.Web.Test.TestApp;
76

87
namespace KubeOps.Operator.Web.Test.LocalTunnel;
98

109
public class DevelopmentTunnelServiceTest : IntegrationTestBase
1110
{
12-
// public DevelopmentTunnelServiceTest(TestApplicationFactory factory) : base(factory)
13-
// {
14-
// }
15-
16-
[Fact]
11+
[Fact(Skip = "This test is flakey since localtunnel is not always available. Need an alternative.")]
1712
public async Task Should_Install_Validation_Webhooks()
1813
{
1914
using var client = KubernetesClientFactory.Create<V1ValidatingWebhookConfiguration>();
@@ -24,7 +19,7 @@ public async Task Should_Install_Validation_Webhooks()
2419
validators.Webhooks[0].ClientConfig.Url.Should().Contain("/validate/v1operatorwebintegrationtestentity");
2520
}
2621

27-
[Fact]
22+
[Fact(Skip = "This test is flakey since localtunnel is not always available. Need an alternative.")]
2823
public async Task Should_Install_Mutation_Webhooks()
2924
{
3025
using var client = KubernetesClientFactory.Create<V1MutatingWebhookConfiguration>();

test/KubeOps.Operator.Web.Test/Webhooks/MutationWebhook.Integration.Test.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace KubeOps.Operator.Web.Test.Webhooks;
77

88
public class MutationWebhookIntegrationTest : IntegrationTestBase
99
{
10-
[Fact]
10+
[Fact(Skip = "This test is flakey since localtunnel is not always available. Need an alternative.")]
1111
public async Task Should_Allow_Creation_Of_Entity()
1212
{
1313
using var client = KubernetesClientFactory.Create<V1OperatorWebIntegrationTestEntity>();
@@ -16,7 +16,7 @@ public async Task Should_Allow_Creation_Of_Entity()
1616
await client.DeleteAsync(e);
1717
}
1818

19-
[Fact]
19+
[Fact(Skip = "This test is flakey since localtunnel is not always available. Need an alternative.")]
2020
public async Task Should_Mutate_Entity_According_To_Code()
2121
{
2222
using var client = KubernetesClientFactory.Create<V1OperatorWebIntegrationTestEntity>();

0 commit comments

Comments
 (0)