Commit 191f2def authored by Dr. Stefan Schimanski's avatar Dr. Stefan Schimanski

Add test to check that NewSchedulerServer sets resource defaults

parent 3fced6f0
...@@ -28,6 +28,8 @@ import ( ...@@ -28,6 +28,8 @@ import (
"time" "time"
"github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/pkg/archive" "github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/pkg/archive"
mresource "github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/pkg/scheduler/resource"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )
...@@ -115,6 +117,14 @@ func Test_awaitFailoverDoneFailover(t *testing.T) { ...@@ -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) { func Test_StaticPods(t *testing.T) {
assert := assert.New(t) assert := assert.New(t)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment