returnfmt.Errorf("expected non-zero exitCode and non-empty terminated state reason. Got exitCode: %+v and terminated state reason: %+v",contTerminatedState.ExitCode,contTerminatedState.Reason)
}
returnnil
},time.Minute,time.Second*4).Should(BeNil())
...
...
@@ -125,7 +126,7 @@ var _ = framework.KubeDescribe("Kubelet", func() {
Context("when scheduling a busybox Pod with hostAliases",func(){
Testname: Kubelet, Pod with read only root file system
Description: Create a Pod with security context set with ReadOnlyRootFileSystem set to true. The Pod then tries to write to the /file on the root, write operation to the root filesystem MUST fail as expected.
*/
It("it should not write to root filesystem [NodeConformance]",func(){
It("should not write to root filesystem [NodeConformance]",func(){
isReadOnly:=true
podClient.CreateSync(&v1.Pod{
ObjectMeta:metav1.ObjectMeta{
...
...
@@ -185,7 +182,7 @@ var _ = framework.KubeDescribe("Kubelet", func() {
RestartPolicy:v1.RestartPolicyNever,
Containers:[]v1.Container{
{
Image:busyboxImage,
Image:framework.BusyBoxImage,
Name:podName,
Command:[]string{"/bin/sh","-c","echo test > /file; sleep 240"},