In the Lightening test, for the secret question, I wrote the yaml file with com . . .

Nagesh Jayaram:
In the Lightening test, for the secret question, I wrote the yaml file with command : [“sleep”,“4800”], and Pod is running meeting the mentioned spec, But still the Test is showing it as failure

apiVersion: v1
kind: Pod
metadata:
  name: secret-1401
  namespace: admin1401
spec:
  containers:
  - image: busybox
    name: secret-admin
    command: ["sleep" , "4800"]
    volumeMounts:
    - name: mysec
      mountPath: /etc/secret-volume
      readOnly: true
  volumes:
  - name: mysec
    secret:
     secretName: dotfile-secret

Aziz Zoaib:

command: ['sh', '-c', 'sleep 4800']

A shivanand kumar:
under volumeMounts and volumes change the name mysec=secret-volume