From 612574d5d15055ed7bb331a03b751910e6088eb9 Mon Sep 17 00:00:00 2001 From: vinicius douglas cerutti Date: Tue, 24 Sep 2024 20:51:02 -0300 Subject: [PATCH] fix failling ci test --- src/_nebari/upgrade.py | 2 +- tests/tests_unit/test_upgrade.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/_nebari/upgrade.py b/src/_nebari/upgrade.py index acf08ef64..bcc08be0f 100644 --- a/src/_nebari/upgrade.py +++ b/src/_nebari/upgrade.py @@ -1256,7 +1256,7 @@ def _version_specific_upgrade( rich.print(text) confirm = Prompt.ask( - "[bold]Would you like Nebari to update your group permissions now?[/bold] (y/n)", + "[bold]Would you like Nebari to update your group permissions now?[/bold]", choices=["y", "N"], default="N", ) diff --git a/tests/tests_unit/test_upgrade.py b/tests/tests_unit/test_upgrade.py index a19095726..d328c74e9 100644 --- a/tests/tests_unit/test_upgrade.py +++ b/tests/tests_unit/test_upgrade.py @@ -67,6 +67,11 @@ def mock_input(prompt, **kwargs): == "Have you backed up your custom dashboards (if necessary), deleted the prometheus-node-exporter daemonset and updated the kube-prometheus-stack CRDs?" ): return "y" + elif ( + prompt + == "[bold]Would you like Nebari to update your group permissions now?[/bold]" + ): + return "N" # All other prompts will be answered with "y" else: return "y"