2022-03-22 11:03:15 -04:00
|
|
|
package gcp
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-05-24 04:04:42 -04:00
|
|
|
"github.com/edgelesssys/constellation/coordinator/cloudprovider/cloudtypes"
|
2022-03-22 11:03:15 -04:00
|
|
|
"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{}, ""))
|
2022-03-29 07:26:27 -04:00
|
|
|
assert.NotEmpty(autoscaler.Volumes())
|
|
|
|
assert.NotEmpty(autoscaler.VolumeMounts())
|
|
|
|
assert.NotEmpty(autoscaler.Env())
|
2022-03-22 11:03:15 -04:00
|
|
|
assert.True(autoscaler.Supported())
|
|
|
|
}
|