integration-cli: Enable TestGetContainersAttachWebsocket for Windows#43866
integration-cli: Enable TestGetContainersAttachWebsocket for Windows#43866thaJeztah merged 1 commit intomoby:masterfrom
Conversation
Signed-off-by: Olli Janatuinen <[email protected]>
cpuguy83
left a comment
There was a problem hiding this comment.
LGTM assuming everything is happy.
|
The "different encoding" is actually ANSI/VT terminal commands embedded in the output. The sequence |
|
I think it's ok for the scope of this test to remove the TTY But (as a follow-up) we should consider testing both with and without a TTY attached. which contains logic based on wether the container has a TTY or not; Lines 53 to 54 in cf8b057 🤔 So, I guess that's covered in moby/integration-cli/docker_api_attach_test.go Lines 98 to 99 in a61f7ab When fixing that, we should also consider rewriting that test to use subtests, as it looks like it's testing quite some variations. |
thaJeztah
left a comment
There was a problem hiding this comment.
LGTM
(but we should look at fixing some of these in follow-ups; see my comment above)
|
CI is happy; let me get this one in; I created #43868 for tracking the comment above |
integration-cli: Enable TestGetContainersAttachWebsocket for Windows Signed-off-by: CrazyMax <[email protected]>
- What I did
I have been trying to figure out why
TestExecWithCloseStdintest hangs forever in Windows + containerd combination and as part of it find out that there is other good attach tests which are not currently enabled on Windows. So this PR enablesTestGetContainersAttachWebsocket- How I did it
Disabled TTY because
is.DeepEquallooks to be comparing hex decimals and which does not work even without containerd on Windows because of different encoding/etcFor record error before disabling TTY was (or that looks to be from my test where message was "hello+r
For the record. I did also investigate
TestPostContainersAttachbut there even non-TTY tests looks to be problematic because those tests contains line breaks which does not end up to actual.- How to verify it
Should be good if CI passes on all combinations.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)