Skip to content

Commit

Permalink
fix failling ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusdc committed Sep 24, 2024
1 parent 389eb5f commit 612574d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_nebari/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down
5 changes: 5 additions & 0 deletions tests/tests_unit/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 612574d

Please sign in to comment.