Add test to check that NewSchedulerServer sets resource defaults
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user