kudobuilder / kuttl

KUbernetes Test TooL (kuttl)
https://kuttl.dev
Apache License 2.0
672 stars 86 forks source link

Command.Script is ignored when creating error messages #493

Closed porridge closed 8 months ago

porridge commented 11 months ago

What happened:

My test using a command with script: failed and kuttl produced this unhelpful message:

 command "" exceeded 72 sec timeout, context deadline exceeded

What you expected to happen:

The error message should mention the content of script: somehow if command: was not provided.

How to reproduce it (as minimally and precisely as possible):

Use a step such as:

apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: make fail

Anything else we need to know?:

A workaround might be to use command: instead, but this is tricky if one wants to use shell syntax.