mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-19 04:44:42 -05:00
52ceced223
* Update image version * Introduce 'ValidK8sVersion' type. Ensures that consumers of the k8sVersion receive a valid version, without having to do their own validation. * Add testcase to check that kubeadm accepts the currently provided version.
19 lines
383 B
Go
19 lines
383 B
Go
package azure
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/edgelesssys/constellation/internal/versions"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestTrivialCNMFunctions(t *testing.T) {
|
|
assert := assert.New(t)
|
|
cloud := CloudNodeManager{}
|
|
|
|
assert.NotEmpty(cloud.Image(versions.Latest))
|
|
assert.NotEmpty(cloud.Path())
|
|
assert.NotEmpty(cloud.ExtraArgs())
|
|
assert.True(cloud.Supported())
|
|
}
|