ContainerImage.Pinniped/test/integration/kubectl_test.go

26 lines
430 B
Go
Raw Normal View History

/*
Copyright 2020 VMware, Inc.
SPDX-License-Identifier: Apache-2.0
*/
package integration
import (
"os"
"os/exec"
"testing"
"github.com/stretchr/testify/require"
2020-08-20 17:54:15 +00:00
"github.com/suzerain-io/pinniped/test/library"
)
func TestGetNodes(t *testing.T) {
library.SkipUnlessIntegration(t)
cmd := exec.Command("kubectl", "get", "nodes")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
require.NoError(t, err)
}