tty_stdin_test.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. suite: container tty and stdin test
  2. templates:
  3. - common.yaml
  4. tests:
  5. - it: should pass without tty and stdin
  6. set:
  7. image: &image
  8. repository: nginx
  9. tag: 1.19.0
  10. pullPolicy: IfNotPresent
  11. workload:
  12. workload-name:
  13. enabled: true
  14. primary: true
  15. type: Deployment
  16. podSpec:
  17. containers:
  18. container-name1:
  19. enabled: true
  20. primary: true
  21. imageSelector: image
  22. probes: &probes
  23. liveness:
  24. enabled: false
  25. readiness:
  26. enabled: false
  27. startup:
  28. enabled: false
  29. asserts:
  30. - documentIndex: &deploymentDoc 0
  31. isKind:
  32. of: Deployment
  33. - documentIndex: *deploymentDoc
  34. isAPIVersion:
  35. of: apps/v1
  36. - documentIndex: *deploymentDoc
  37. isSubset:
  38. path: spec.template.spec.containers[0]
  39. content:
  40. tty: false
  41. stdin: false
  42. - it: should pass with tty and stdin enabled
  43. set:
  44. image: *image
  45. workload:
  46. workload-name:
  47. enabled: true
  48. primary: true
  49. type: Deployment
  50. podSpec:
  51. containers:
  52. container-name1:
  53. enabled: true
  54. primary: true
  55. imageSelector: image
  56. probes: *probes
  57. tty: true
  58. stdin: true
  59. asserts:
  60. - documentIndex: &deploymentDoc 0
  61. isKind:
  62. of: Deployment
  63. - documentIndex: *deploymentDoc
  64. isAPIVersion:
  65. of: apps/v1
  66. - documentIndex: *deploymentDoc
  67. isSubset:
  68. path: spec.template.spec.containers[0]
  69. content:
  70. tty: true
  71. stdin: true