constellation/coordinator/cloudprovider/gcp/autoscaler_test.go

21 lines
512 B
Go
Raw Normal View History

package gcp
import (
"testing"
2022-05-24 04:04:42 -04:00
"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())
2022-05-24 04:04:42 -04:00
assert.Empty(autoscaler.Secrets(cloudtypes.Instance{}, ""))
assert.NotEmpty(autoscaler.Volumes())
assert.NotEmpty(autoscaler.VolumeMounts())
assert.NotEmpty(autoscaler.Env())
assert.True(autoscaler.Supported())
}