Skip to content

Commit 1602b1c

Browse files
authored
chore: make template tests async and use editorconfig (#604)
This fixes #542.
1 parent 9e9bc0f commit 1602b1c

File tree

117 files changed

+651
-283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+651
-283
lines changed

.editorconfig

Lines changed: 331 additions & 142 deletions
Large diffs are not rendered by default.

DotnetOperatorSdk.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "config", "config", "{EF94C4
2323
ProjectSection(SolutionItems) = preProject
2424
config\CodeAnalysis.targets = config\CodeAnalysis.targets
2525
config\Common.targets = config\Common.targets
26-
config\project.ruleset = config\project.ruleset
2726
config\stylecop.json = config\stylecop.json
2827
.gitignore = .gitignore
2928
.releaserc.json = .releaserc.json
3029
renovate.json = renovate.json
3130
config\CommonTests.targets = config\CommonTests.targets
31+
.editorconfig = .editorconfig
3232
EndProjectSection
3333
EndProject
3434
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KubeOps.Testing", "src\KubeOps.Testing\KubeOps.Testing.csproj", "{4A6D1BEB-CB4C-495A-A20D-D8728F6BBC93}"

config/CodeAnalysis.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
</ItemGroup>
88

99
<PropertyGroup>
10-
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)/project.ruleset</CodeAnalysisRuleSet>
1110
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
1211
</PropertyGroup>
1312

config/project.ruleset

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/KubeOps.KubernetesClient/Entities/EntityList{TEntity}.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Text.Json.Serialization;
2+
23
using k8s;
34
using k8s.Models;
45

src/KubeOps.KubernetesClient/Entities/Extensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Reflection;
2+
23
using k8s;
34
using k8s.Models;
45

src/KubeOps.KubernetesClient/IKubernetesClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using k8s;
22
using k8s.Models;
3+
34
using KubeOps.KubernetesClient.LabelSelectors;
45

56
namespace KubeOps.KubernetesClient;

src/KubeOps.KubernetesClient/KubernetesClient.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using System.Net;
2+
23
using k8s;
34
using k8s.Autorest;
45
using k8s.Models;
6+
57
using KubeOps.KubernetesClient.Entities;
68
using KubeOps.KubernetesClient.LabelSelectors;
79

src/KubeOps.Testing/KubernetesOperatorFactory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using k8s;
22
using k8s.Models;
3+
34
using KubeOps.KubernetesClient;
45
using KubeOps.Operator.Controller;
56
using KubeOps.Operator.Kubernetes;
67
using KubeOps.Operator.Leadership;
8+
79
using Microsoft.AspNetCore.Hosting;
810
using Microsoft.AspNetCore.Mvc.Testing;
911
using Microsoft.AspNetCore.TestHost;

src/KubeOps.Testing/MockEventQueue.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using System.Reactive.Subjects;
2+
23
using k8s;
34
using k8s.Models;
5+
46
using KubeOps.Operator.Controller;
57

68
namespace KubeOps.Testing;

0 commit comments

Comments
 (0)