k9s/internal/view/sts_test.go

22 lines
469 B
Go

// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of K9s
package view_test
import (
"testing"
"github.com/derailed/k9s/internal/client"
"github.com/derailed/k9s/internal/view"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestStatefulSetNew(t *testing.T) {
s := view.NewStatefulSet(client.StsGVR)
require.NoError(t, s.Init(makeCtx(t)))
assert.Equal(t, "StatefulSets", s.Name())
assert.Len(t, s.Hints(), 15)
}