mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 00:31:00 +00:00
Add test to check that NewSchedulerServer sets resource defaults
This commit is contained in:
parent
3fced6f07b
commit
191f2def5f
@ -28,6 +28,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/pkg/archive"
|
||||
mresource "github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/pkg/scheduler/resource"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
@ -115,6 +117,14 @@ func Test_awaitFailoverDoneFailover(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_DefaultResourceLimits(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
s := NewSchedulerServer()
|
||||
assert.Equal(s.DefaultContainerCPULimit, mresource.DefaultDefaultContainerCPULimit)
|
||||
assert.Equal(s.DefaultContainerMemLimit, mresource.DefaultDefaultContainerMemLimit)
|
||||
}
|
||||
|
||||
func Test_StaticPods(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user