mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-28 09:44:08 -04:00
Split cmd package
This commit is contained in:
parent
63898c42bf
commit
de52bf14da
36 changed files with 1875 additions and 2302 deletions
|
@ -186,7 +186,7 @@ func TestPrintLogStream(t *testing.T) {
|
|||
},
|
||||
}
|
||||
client := NewActivationRespClient(respClient)
|
||||
out := bytes.NewBufferString("")
|
||||
out := &bytes.Buffer{}
|
||||
assert.NoError(client.WriteLogStream(out))
|
||||
assert.Equal(out.Len(), 10*11) // 10 messages * (len(message) + 1 newline)
|
||||
|
||||
|
@ -198,8 +198,7 @@ func TestPrintLogStream(t *testing.T) {
|
|||
recvErr: someErr,
|
||||
}
|
||||
client = NewActivationRespClient(respClient)
|
||||
out = bytes.NewBufferString("")
|
||||
assert.Error(client.WriteLogStream(out))
|
||||
assert.Error(client.WriteLogStream(&bytes.Buffer{}))
|
||||
}
|
||||
|
||||
func TestGetKubeconfig(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue