Skip to content

Commit

Permalink
temp: add even more output
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
  • Loading branch information
kke committed Oct 30, 2024
1 parent 6a0d15f commit 95e5dbc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inttest/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,19 @@ func (s *CliSuite) TestK0sCliKubectlAndResetCommand() {
s.T().Run("k0sInstall", func(t *testing.T) {
// Install with some arbitrary kubelet flags so we see those get properly passed to the kubelet
out, err := ssh.ExecWithOutput(s.Context(), "/usr/local/bin/k0s install controller --enable-worker --disable-components konnectivity-server,metrics-server --kubelet-extra-args='--housekeeping-interval=10s --log-flush-frequency=5s'")
t.Logf("%s", out)
assert.NoError(t, err)
assert.Equal(t, "", out)
})

s.Run("k0sStart", func() {
assert := s.Assertions
require := s.Require()
out, _ := ssh.ExecWithOutput(s.Context(), "cat /etc/init.d/k0scontroller")
s.T().Logf("k0scontroller init script:\n%s", out)

_, err = ssh.ExecWithOutput(s.Context(), "/usr/local/bin/k0s start")
out, err := ssh.ExecWithOutput(s.Context(), "/usr/local/bin/k0s start")
s.T().Logf("%s", out)
require.NoError(err)

require.NoError(s.WaitForKubeAPI(s.ControllerNode(0)))
Expand Down

0 comments on commit 95e5dbc

Please sign in to comment.