//go:build !integration

package cluster

import (
	"testing"

	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"

	"gitlab.com/gitlab-org/cli/internal/testing/cmdtest"
)

func TestNewCmdCluster(t *testing.T) {
	ios, _, stdout, _ := cmdtest.TestIOStreams()
	cmd := NewCmdCluster(cmdtest.NewTestFactory(ios))
	cmd.SetOut(stdout)

	require.NoError(t, cmd.Execute())

	assert.Contains(t, stdout.String(), "Agents connect your cluster to GitLab")
}
