Fix downward api tests to output node allocatable not node capacity

This commit is contained in:
Avesh Agarwal 2016-08-26 12:53:24 -04:00
parent e24aff0711
commit db74d4dbc2
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ var _ = framework.KubeDescribe("Downward API", func() {
testDownwardAPI(f, podName, env, expectations)
})
It("should provide default limits.cpu/memory from node capacity", func() {
It("should provide default limits.cpu/memory from node allocatable", func() {
podName := "downward-api-" + string(uuid.NewUUID())
env := []api.EnvVar{
{

View File

@ -86,7 +86,7 @@ Docker Containers should be able to override the image's default commmand (docke
Docker Containers should use the image defaults if command and args are blank,vishh,0
Downward API should create a pod that prints his name and namespace,nhlfr,0
Downward API should provide container's limits.cpu/memory and requests.cpu/memory as env vars,deads2k,1
Downward API should provide default limits.cpu/memory from node capacity,derekwaynecarr,0
Downward API should provide default limits.cpu/memory from node allocatable,derekwaynecarr,0
Downward API should provide pod IP as an env var,nhlfr,0
Downward API should provide pod name and namespace as env vars,nhlfr,0
Downward API volume should provide container's cpu limit,smarterclayton,1

1 name owner auto-assigned
86 Docker Containers should use the image defaults if command and args are blank vishh 0
87 Downward API should create a pod that prints his name and namespace nhlfr 0
88 Downward API should provide container's limits.cpu/memory and requests.cpu/memory as env vars deads2k 1
89 Downward API should provide default limits.cpu/memory from node capacity Downward API should provide default limits.cpu/memory from node allocatable derekwaynecarr 0
90 Downward API should provide pod IP as an env var nhlfr 0
91 Downward API should provide pod name and namespace as env vars nhlfr 0
92 Downward API volume should provide container's cpu limit smarterclayton 1