2020-07-08 05:20:34 +00:00
|
|
|
/*
|
|
|
|
Copyright 2020 VMware, Inc.
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2020-07-08 01:42:14 +00:00
|
|
|
package integration
|
|
|
|
|
|
|
|
import (
|
2020-07-08 23:37:06 +00:00
|
|
|
"os"
|
2020-07-08 01:42:14 +00:00
|
|
|
"os/exec"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGetNodes(t *testing.T) {
|
2020-07-08 23:37:06 +00:00
|
|
|
cmd := exec.Command("kubectl", "get", "nodes")
|
|
|
|
cmd.Stdout = os.Stdout
|
|
|
|
cmd.Stderr = os.Stderr
|
|
|
|
err := cmd.Run()
|
2020-07-08 01:42:14 +00:00
|
|
|
require.NoError(t, err)
|
|
|
|
}
|