mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 09:15:02 +00:00
Previously there was no test coverage of the https://holos.run/docs/guides/helm/ guide. This patch uses Roger's testscript package, which the CUE folks also use to add comprehensive test coverage of each step in the guide. Ideally we would execute these commands directly from the guide itself, but for now we'll duplicate the commands into the test script. This could be enhanced by generating the test script from the document itself in some way. When updating the script, use the `holos txtar` command to embed entire helm charts into the test script. It's not super fast, but it's better than network access and it's not terribly slow either. A few seconds to unpack. --- txtar: quote files for testscript unquote For the helm guide test script we want to include the entire helm chart which may have files that need to be quoted. This patch changes the default behavior of the holos txtar command to quote files if necessary and list them in an unquote script command in the comment of the archive. The purpose is for testscript authors to copy and paste the entire thing into a test script and include the unquote command at the top. --- This change also updates CUE to v0.10.1