Description: Command ‘kubectl run’ MUST create a running pod with possible replicas given a image using the option --image=’nginx’. The running Pod SHOULD have one container and the container SHOULD be running the image specified in the ‘run’ command.
Description: Command ‘kubectl run’ MUST create a running pod with possible replicas given a image using the option --image=’httpd’. The running Pod SHOULD have one container and the container SHOULD be running the image specified in the ‘run’ command.
*/
*/
framework.ConformanceIt("should create an rc or deployment from an image ",func(){
framework.ConformanceIt("should create an rc or deployment from an image ",func(){
e2elog.Failf("Failed creating 1 pod with expected image %s. Number of pods = %v",nginxImage,len(pods))
e2elog.Failf("Failed creating 1 pod with expected image %s. Number of pods = %v",httpdImage,len(pods))
}
}
})
})
})
})
@@ -1458,7 +1459,7 @@ metadata:
ginkgo.BeforeEach(func(){
ginkgo.BeforeEach(func(){
nsFlag=fmt.Sprintf("--namespace=%v",ns)
nsFlag=fmt.Sprintf("--namespace=%v",ns)
rcName="e2e-test-nginx-rc"
rcName="e2e-test-httpd-rc"
})
})
ginkgo.AfterEach(func(){
ginkgo.AfterEach(func(){
@@ -1468,19 +1469,19 @@ metadata:
/*
/*
Release : v1.9
Release : v1.9
Testname: Kubectl, run rc
Testname: Kubectl, run rc
Description: Command ‘kubectl run’ MUST create a running rc with default one replicas given a image using the option --image=’nginx’. The running replication controller SHOULD have one container and the container SHOULD be running the image specified in the ‘run’ command. Also there MUST be 1 pod controlled by this replica set running 1 container with the image specified. A ‘kubetctl logs’ command MUST return the logs from the container in the replication controller.
Description: Command ‘kubectl run’ MUST create a running rc with default one replicas given a image using the option --image=’httpd’. The running replication controller SHOULD have one container and the container SHOULD be running the image specified in the ‘run’ command. Also there MUST be 1 pod controlled by this replica set running 1 container with the image specified. A ‘kubetctl logs’ command MUST return the logs from the container in the replication controller.
*/
*/
framework.ConformanceIt("should create an rc from an image ",func(){
framework.ConformanceIt("should create an rc from an image ",func(){
e2elog.Failf("Failed creating 1 pod with expected image %s. Number of pods = %v",nginxImage,len(pods))
e2elog.Failf("Failed creating 1 pod with expected image %s. Number of pods = %v",httpdImage,len(pods))
}
}
ginkgo.By("confirm that you can get logs from an rc")
ginkgo.By("confirm that you can get logs from an rc")
@@ -1519,7 +1520,7 @@ metadata:
ginkgo.BeforeEach(func(){
ginkgo.BeforeEach(func(){
c=f.ClientSet
c=f.ClientSet
nsFlag=fmt.Sprintf("--namespace=%v",ns)
nsFlag=fmt.Sprintf("--namespace=%v",ns)
rcName="e2e-test-nginx-rc"
rcName="e2e-test-httpd-rc"
})
})
ginkgo.AfterEach(func(){
ginkgo.AfterEach(func(){
@@ -1532,24 +1533,24 @@ metadata:
Description: Command ‘kubectl rolling-update’ MUST replace the specified replication controller with a new replication controller by updating one pod at a time to use the new Pod spec.
Description: Command ‘kubectl rolling-update’ MUST replace the specified replication controller with a new replication controller by updating one pod at a time to use the new Pod spec.
*/
*/
framework.ConformanceIt("should support rolling-update to same image ",func(){
framework.ConformanceIt("should support rolling-update to same image ",func(){
Description: Command ‘kubectl run’ MUST create a deployment, with --generator=deployment, when a image name is specified in the run command. After the run command there SHOULD be a deployment that should exist with one container running the specified image. Also there SHOULD be a Pod that is controlled by this deployment, with a container running the specified image.
Description: Command ‘kubectl run’ MUST create a deployment, with --generator=deployment, when a image name is specified in the run command. After the run command there SHOULD be a deployment that should exist with one container running the specified image. Also there SHOULD be a Pod that is controlled by this deployment, with a container running the specified image.
*/
*/
framework.ConformanceIt("should create a deployment from an image ",func(){
framework.ConformanceIt("should create a deployment from an image ",func(){
e2elog.Failf("Failed creating 1 pod with expected image %s. Number of pods = %v",nginxImage,len(pods))
e2elog.Failf("Failed creating 1 pod with expected image %s. Number of pods = %v",httpdImage,len(pods))
}
}
})
})
})
})
@@ -1614,7 +1615,7 @@ metadata:
ginkgo.BeforeEach(func(){
ginkgo.BeforeEach(func(){
nsFlag=fmt.Sprintf("--namespace=%v",ns)
nsFlag=fmt.Sprintf("--namespace=%v",ns)
jobName="e2e-test-nginx-job"
jobName="e2e-test-httpd-job"
})
})
ginkgo.AfterEach(func(){
ginkgo.AfterEach(func(){
@@ -1627,16 +1628,16 @@ metadata:
Description: Command ‘kubectl run’ MUST create a job, with --generator=job, when a image name is specified in the run command. After the run command there SHOULD be a job that should exist with one container running the specified image. Also there SHOULD be a restart policy on the job spec that SHOULD match the command line.
Description: Command ‘kubectl run’ MUST create a job, with --generator=job, when a image name is specified in the run command. After the run command there SHOULD be a job that should exist with one container running the specified image. Also there SHOULD be a restart policy on the job spec that SHOULD match the command line.
*/
*/
framework.ConformanceIt("should create a job from an image when restart is OnFailure ",func(){
framework.ConformanceIt("should create a job from an image when restart is OnFailure ",func(){
e2elog.Failf("Failed creating a job with correct restart policy for --restart=OnFailure")
e2elog.Failf("Failed creating a job with correct restart policy for --restart=OnFailure")
@@ -1687,7 +1688,7 @@ metadata:
ginkgo.BeforeEach(func(){
ginkgo.BeforeEach(func(){
nsFlag=fmt.Sprintf("--namespace=%v",ns)
nsFlag=fmt.Sprintf("--namespace=%v",ns)
podName="e2e-test-nginx-pod"
podName="e2e-test-httpd-pod"
})
})
ginkgo.AfterEach(func(){
ginkgo.AfterEach(func(){
@@ -1700,16 +1701,16 @@ metadata:
Description: Command ‘kubectl run’ MUST create a pod, with --generator=run-pod, when a image name is specified in the run command. After the run command there SHOULD be a pod that should exist with one container running the specified image.
Description: Command ‘kubectl run’ MUST create a pod, with --generator=run-pod, when a image name is specified in the run command. After the run command there SHOULD be a pod that should exist with one container running the specified image.
*/
*/
framework.ConformanceIt("should create a pod from an image when restart is Never ",func(){
framework.ConformanceIt("should create a pod from an image when restart is Never ",func(){
e2elog.Failf("Failed getting pod %s: %v",podName,err)
e2elog.Failf("Failed getting pod %s: %v",podName,err)
}
}
containers:=pod.Spec.Containers
containers:=pod.Spec.Containers
ifcheckContainersImage(containers,nginxImage){
ifcheckContainersImage(containers,httpdImage){
e2elog.Failf("Failed creating pod %s with expected image %s",podName,nginxImage)
e2elog.Failf("Failed creating pod %s with expected image %s",podName,httpdImage)
}
}
ifpod.Spec.RestartPolicy!=v1.RestartPolicyNever{
ifpod.Spec.RestartPolicy!=v1.RestartPolicyNever{
e2elog.Failf("Failed creating a pod with correct restart policy for --restart=Never")
e2elog.Failf("Failed creating a pod with correct restart policy for --restart=Never")
@@ -1723,7 +1724,7 @@ metadata:
ginkgo.BeforeEach(func(){
ginkgo.BeforeEach(func(){
nsFlag=fmt.Sprintf("--namespace=%v",ns)
nsFlag=fmt.Sprintf("--namespace=%v",ns)
podName="e2e-test-nginx-pod"
podName="e2e-test-httpd-pod"
})
})
ginkgo.AfterEach(func(){
ginkgo.AfterEach(func(){
@@ -1736,8 +1737,8 @@ metadata:
Description: Command ‘kubectl replace’ on a existing Pod with a new spec MUST update the image of the container running in the Pod. A -f option to ‘kubectl replace’ SHOULD force to re-create the resource. The new Pod SHOULD have the container with new change to the image.
Description: Command ‘kubectl replace’ on a existing Pod with a new spec MUST update the image of the container running in the Pod. A -f option to ‘kubectl replace’ SHOULD force to re-create the resource. The new Pod SHOULD have the container with new change to the image.
*/
*/
framework.ConformanceIt("should update a single-container pod's image ",func(){
framework.ConformanceIt("should update a single-container pod's image ",func(){
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.