mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-02-09 13:30:14 +00:00
Remove the resource parameters from the velero server CLI. Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
20 lines
387 B
Go
20 lines
387 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/spf13/pflag"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGetDefaultConfig(t *testing.T) {
|
|
config := GetDefaultConfig()
|
|
assert.Equal(t, "0", config.PodResources.CPULimit)
|
|
}
|
|
|
|
func TestBindFlags(t *testing.T) {
|
|
config := GetDefaultConfig()
|
|
config.BindFlags(pflag.CommandLine)
|
|
assert.Equal(t, "0", config.PodResources.CPULimit)
|
|
}
|