Style fix final (#523)
* all net5 * var * SA1310 * SA1310 * allow 1031 * SA1805 * fix SA1642 * remove unused code * allow sa1405 * isempty * fix CA1714 * fix CA1806 * remove always false if * fix format * fix CA1062 * allow SA0001 * fix CA1062 * allow ca1034 and temp allow ca1835 * fix 16XX doc related warnings * elm SA16XX * elm SA16XX * fix CA2213 * revert to pass all test * move unclear rule to ruleset * follow up of moving ruleset * remove this * fix test flaky
This commit is contained in:
@@ -28,6 +28,7 @@ namespace k8s.Tests
|
||||
private readonly ITestOutputHelper testOutput;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PodExecTests"/> class.
|
||||
/// Create a new <see cref="KubeApiClient"/> exec-in-pod test suite.
|
||||
/// </summary>
|
||||
/// <param name="testOutput">
|
||||
@@ -58,13 +59,13 @@ namespace k8s.Tests
|
||||
testOutput.WriteLine("Invoking exec operation...");
|
||||
|
||||
WebSocket clientSocket = await client.WebSocketNamespacedPodExecAsync(
|
||||
name: "mypod",
|
||||
@namespace: "mynamespace",
|
||||
command: new string[] { "/bin/bash" },
|
||||
container: "mycontainer",
|
||||
stderr: false,
|
||||
stdin: false,
|
||||
stdout: true,
|
||||
"mypod",
|
||||
"mynamespace",
|
||||
new string[] { "/bin/bash" },
|
||||
"mycontainer",
|
||||
false,
|
||||
false,
|
||||
true,
|
||||
webSocketSubProtol: WebSocketProtocol.ChannelWebSocketProtocol,
|
||||
cancellationToken: TestCancellation).ConfigureAwait(false);
|
||||
Assert.Equal(
|
||||
@@ -92,8 +93,8 @@ namespace k8s.Tests
|
||||
Assert.Equal(expectedOutput, receivedText);
|
||||
|
||||
await Disconnect(clientSocket, serverSocket,
|
||||
closeStatus: WebSocketCloseStatus.NormalClosure,
|
||||
closeStatusDescription: "Normal Closure").ConfigureAwait(false);
|
||||
WebSocketCloseStatus.NormalClosure,
|
||||
"Normal Closure").ConfigureAwait(false);
|
||||
|
||||
WebSocketTestAdapter.CompleteTest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user