Closed IamJeffG closed 3 weeks ago
This PR contains a couple improvements around the $$cap_gen_random_hex(...) replacement in one-click apps:
$$cap_gen_random_hex(...)
gen_random_hex
caproverOneClickApp.variables
gen_random_hex(n)
I confirmed both these behaviors now match what the Caprover frontend UI does.
Added a test suite around variable substitution, including bringing the tox invocation up-to-date.
This is ready for review & merge.
I'm happy to handle any merge conflicts between #6 and #7, if needed.
This PR contains a couple improvements around the
$$cap_gen_random_hex(...)
replacement in one-click apps:gen_random_hex
now works across whole YAML, not only under thecaproverOneClickApp.variables
section.gen_random_hex(n)
generates $n$ ascii characters, not the hex representation of $n$ bytes.I confirmed both these behaviors now match what the Caprover frontend UI does.
Added a test suite around variable substitution, including bringing the tox invocation up-to-date.