2022-09-05 03:06:08 -04:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-03-29 07:30:50 -04:00
|
|
|
package azure
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
2022-06-30 09:24:36 -04:00
|
|
|
"go.uber.org/goleak"
|
2022-03-29 07:30:50 -04:00
|
|
|
)
|
|
|
|
|
2022-06-30 09:24:36 -04:00
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
goleak.VerifyTestMain(m)
|
|
|
|
}
|
|
|
|
|
2022-03-29 07:30:50 -04:00
|
|
|
func TestAutoscalingNodeGroup(t *testing.T) {
|
|
|
|
assert := assert.New(t)
|
|
|
|
nodeGroups := AutoscalingNodeGroup("scale-set", 0, 100)
|
2022-04-26 10:54:05 -04:00
|
|
|
wantNodeGroups := "0:100:scale-set"
|
|
|
|
assert.Equal(wantNodeGroups, nodeGroups)
|
2022-03-29 07:30:50 -04:00
|
|
|
}
|