2022-09-05 09:06:08 +02:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-03-22 16:03:15 +01:00
|
|
|
package gcp
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestTrivialAutoscalerFunctions(t *testing.T) {
|
|
|
|
assert := assert.New(t)
|
|
|
|
autoscaler := Autoscaler{}
|
|
|
|
|
|
|
|
assert.NotEmpty(autoscaler.Name())
|
2022-06-28 18:33:27 +02:00
|
|
|
assert.Empty(autoscaler.Secrets("", ""))
|
2022-03-29 13:26:27 +02:00
|
|
|
assert.NotEmpty(autoscaler.Volumes())
|
|
|
|
assert.NotEmpty(autoscaler.VolumeMounts())
|
|
|
|
assert.NotEmpty(autoscaler.Env())
|
2022-03-22 16:03:15 +01:00
|
|
|
assert.True(autoscaler.Supported())
|
|
|
|
}
|