2022-03-22 15:03:15 +00:00
|
|
|
package gcp
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-06-28 14:08:05 +00:00
|
|
|
"github.com/edgelesssys/constellation/internal/cloud/metadata"
|
2022-03-22 15:03:15 +00:00
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestTrivialAutoscalerFunctions(t *testing.T) {
|
|
|
|
assert := assert.New(t)
|
|
|
|
autoscaler := Autoscaler{}
|
|
|
|
|
|
|
|
assert.NotEmpty(autoscaler.Name())
|
2022-06-28 14:08:05 +00:00
|
|
|
assert.Empty(autoscaler.Secrets(metadata.InstanceMetadata{}, ""))
|
2022-03-29 11:26:27 +00:00
|
|
|
assert.NotEmpty(autoscaler.Volumes())
|
|
|
|
assert.NotEmpty(autoscaler.VolumeMounts())
|
|
|
|
assert.NotEmpty(autoscaler.Env())
|
2022-03-22 15:03:15 +00:00
|
|
|
assert.True(autoscaler.Supported())
|
|
|
|
}
|