mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
21 lines
512 B
Go
21 lines
512 B
Go
package gcp
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/edgelesssys/constellation/coordinator/cloudprovider/cloudtypes"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestTrivialAutoscalerFunctions(t *testing.T) {
|
|
assert := assert.New(t)
|
|
autoscaler := Autoscaler{}
|
|
|
|
assert.NotEmpty(autoscaler.Name())
|
|
assert.Empty(autoscaler.Secrets(cloudtypes.Instance{}, ""))
|
|
assert.NotEmpty(autoscaler.Volumes())
|
|
assert.NotEmpty(autoscaler.VolumeMounts())
|
|
assert.NotEmpty(autoscaler.Env())
|
|
assert.True(autoscaler.Supported())
|
|
}
|