Verified Commit 75c7c25a authored by Adrian DC's avatar Adrian DC
Browse files

fix(menus): resolve support for empty CI/CD inputs strings input

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent e47fe0b6
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for src/features/menus.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ class MenusFeature:
                    ).ask()
                else: # pragma: no cover
                    answers = None
                if not answers:
                if answers is None: # pragma: no cover
                    raise KeyboardInterrupt
                result[variable] = str(answers)

+6 −0
Changes for tests/inputs/test.sh: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -50,6 +50,12 @@ gcil -c ./.gitlab-ci.types.array.unsupported.yml --dump && exit 1 || true
gcil -c ./.gitlab-ci.types.array.unsupported.yml --dump && exit 1 || true
gcil -c ./.gitlab-ci.types.boolean.true.yml --configure --input stage='components_input' --input name='job_input' --input flag='false' --dump </dev/null
gcil -c ./.gitlab-ci.types.boolean.true.yml --configure --input stage='components_input' --input name='job_input' --input flag='no' --dump </dev/null && exit 1 || true
gcil -c ./.gitlab-ci.types.strings.empty.yml --configure --input stage='components_input' --input name='job_input' --input comments='' --dump </dev/null
pexpect-executor \
    --press '\-stage' --enter \
    --down --enter \
    --down --enter \
    -- gcil -c ./.gitlab-ci.types.strings.empty.yml --configure --dump --pipeline </dev/null
gcil -c ./.gitlab-ci.types.strings.empty.yml --configure --dump </dev/null
pexpect-executor \
    --press '\-stage' --enter \