From 3f58d1aff55c28d4b695e4d21d7b0db03a6421b6 Mon Sep 17 00:00:00 2001 From: Max Erenberg Date: Sun, 5 Feb 2023 23:48:38 -0500 Subject: [PATCH] print warning message when cloud account is created --- ceo/cli/cloud.py | 5 +++++ tests/ceo/cli/test_cloud.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ceo/cli/cloud.py b/ceo/cli/cloud.py index cae1650..26da873 100644 --- a/ceo/cli/cloud.py +++ b/ceo/cli/cloud.py @@ -28,6 +28,11 @@ def activate(): 'Congratulations! Your cloud account has been activated.', f'You may now login into https://cloud.{base_domain} with your CSC credentials.', "Make sure to enter 'Members' for the domain (no quotes).", + '', + 'Please note that your cloud account will be PERMANENTLY DELETED when', + 'your CSC membership expires, so make sure to purchase enough membership', + 'terms in advance. You will receive a warning email one week before your', + 'cloud account is deleted, so please make sure to check your Junk folder.', ] for line in lines: click.echo(line) diff --git a/tests/ceo/cli/test_cloud.py b/tests/ceo/cli/test_cloud.py index c44fe9c..b313cab 100644 --- a/tests/ceo/cli/test_cloud.py +++ b/tests/ceo/cli/test_cloud.py @@ -17,6 +17,11 @@ def test_cloud_account_activate(cli_setup, mock_cloud_server, new_user, cfg): 'Congratulations! Your cloud account has been activated.\n' f'You may now login into https://cloud.{base_domain} with your CSC credentials.\n' "Make sure to enter 'Members' for the domain (no quotes).\n" + '\n' + 'Please note that your cloud account will be PERMANENTLY DELETED when\n' + 'your CSC membership expires, so make sure to purchase enough membership\n' + 'terms in advance. You will receive a warning email one week before your\n' + 'cloud account is deleted, so please make sure to check your Junk folder.\n' ) assert result.exit_code == 0 assert result.output == expected