Skip to content

Commit ecf0152

Browse files
committed
fix SA1707
1 parent 462d947 commit ecf0152

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/KubernetesClient.Tests/Kubernetes.Exec.Tests.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public PodExecTests(ITestOutputHelper testOutput)
4343
/// Verify that the client can request execution of a command in a pod's default container, with only the STDOUT stream enabled.
4444
/// </summary>
4545
[Fact(DisplayName = "Can exec in pod's default container, STDOUT only")]
46-
public async Task Exec_DefaultContainer_StdOut()
46+
public async Task ExecDefaultContainerStdOut()
4747
{
4848
if (!Debugger.IsAttached)
4949
{
@@ -100,15 +100,15 @@ await Disconnect(clientSocket, serverSocket,
100100
}
101101

102102
[Fact]
103-
public void GetExitCodeOrThrow_Success()
103+
public void GetExitCodeOrThrowSuccess()
104104
{
105105
var status = new V1Status() { Metadata = null, Status = "Success", };
106106

107107
Assert.Equal(0, Kubernetes.GetExitCodeOrThrow(status));
108108
}
109109

110110
[Fact]
111-
public void GetExitCodeOrThrow_NonZeroExitCode()
111+
public void GetExitCodeOrThrowNonZeroExitCode()
112112
{
113113
var status = new V1Status()
114114
{
@@ -129,7 +129,7 @@ public void GetExitCodeOrThrow_NonZeroExitCode()
129129
}
130130

131131
[Fact]
132-
public void GetExitCodeOrThrow_InvalidExitCode()
132+
public void GetExitCodeOrThrowInvalidExitCode()
133133
{
134134
var status = new V1Status()
135135
{
@@ -151,7 +151,7 @@ public void GetExitCodeOrThrow_InvalidExitCode()
151151
}
152152

153153
[Fact]
154-
public void GetExitCodeOrThrow_NoExitCode()
154+
public void GetExitCodeOrThrowNoExitCode()
155155
{
156156
var status = new V1Status()
157157
{
@@ -167,7 +167,7 @@ public void GetExitCodeOrThrow_NoExitCode()
167167
}
168168

169169
[Fact]
170-
public void GetExitCodeOrThrow_OtherError()
170+
public void GetExitCodeOrThrowOtherError()
171171
{
172172
var status = new V1Status() { Metadata = null, Status = "Failure", Reason = "SomethingElse" };
173173

@@ -176,7 +176,7 @@ public void GetExitCodeOrThrow_OtherError()
176176
}
177177

178178
[Fact]
179-
public async Task NamespacedPodExecAsync_ActionNull()
179+
public async Task NamespacedPodExecAsyncActionNull()
180180
{
181181
using (MemoryStream stdIn = new MemoryStream())
182182
using (MemoryStream stdOut = new MemoryStream())
@@ -208,7 +208,7 @@ await Assert.ThrowsAsync<ArgumentNullException>(() => client.NamespacedPodExecAs
208208
}
209209

210210
[Fact]
211-
public async Task NamespacedPodExecAsync_HttpException_WithStatus()
211+
public async Task NamespacedPodExecAsyncHttpExceptionWithStatus()
212212
{
213213
var kubernetesMock = new Moq.Mock<Kubernetes>(
214214
new object[] { Moq.Mock.Of<ServiceClientCredentials>(), new DelegatingHandler[] { } });
@@ -231,7 +231,7 @@ public async Task NamespacedPodExecAsync_HttpException_WithStatus()
231231
}
232232

233233
[Fact]
234-
public async Task NamespacedPodExecAsync_HttpException_NoStatus()
234+
public async Task NamespacedPodExecAsyncHttpExceptionNoStatus()
235235
{
236236
var kubernetesMock = new Moq.Mock<Kubernetes>(
237237
new object[] { Moq.Mock.Of<ServiceClientCredentials>(), new DelegatingHandler[] { } });
@@ -254,7 +254,7 @@ public async Task NamespacedPodExecAsync_HttpException_NoStatus()
254254
}
255255

256256
[Fact]
257-
public async Task NamespacedPodExecAsync_GenericException()
257+
public async Task NamespacedPodExecAsyncGenericException()
258258
{
259259
var kubernetesMock = new Moq.Mock<Kubernetes>(
260260
new object[] { Moq.Mock.Of<ServiceClientCredentials>(), new DelegatingHandler[] { } });
@@ -277,7 +277,7 @@ public async Task NamespacedPodExecAsync_GenericException()
277277
}
278278

279279
[Fact]
280-
public async Task NamespacedPodExecAsync_ExitCode_NonZero()
280+
public async Task NamespacedPodExecAsyncExitCodeNonZero()
281281
{
282282
var processStatus = new V1Status()
283283
{

0 commit comments

Comments
 (0)