mirror of https://github.com/docker/cli.git
19 lines
390 B
Go
19 lines
390 B
Go
|
package kubernetes
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"gotest.tools/assert"
|
||
|
is "gotest.tools/assert/cmp"
|
||
|
)
|
||
|
|
||
|
func TestNewStackConverter(t *testing.T) {
|
||
|
_, err := NewStackConverter("v1alpha1")
|
||
|
assert.Check(t, is.ErrorContains(err, "stack version v1alpha1 unsupported"))
|
||
|
|
||
|
_, err = NewStackConverter("v1beta1")
|
||
|
assert.NilError(t, err)
|
||
|
_, err = NewStackConverter("v1beta2")
|
||
|
assert.NilError(t, err)
|
||
|
}
|