File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 1515def test_notifications ():
1616 logging .info ("Running notifications smoke test" )
1717
18- environment , storage_account , resource_group_name = configure ()
18+ environment = os .getenv ("ENVIRONMENT" )
19+ resource_group_name = f"rg-manbrs-{ environment } -container-app-uks"
1920
2021 if environment == "prod" :
2122 return
@@ -38,20 +39,6 @@ def test_notifications():
3839 logging .info ("Finished notifications smoke test" )
3940
4041
41- def configure ():
42- environment = os .getenv ("ENVIRONMENT" , "dev" )
43- pr_number = os .getenv ("PR_NUMBER" , "" )
44- storage_account = f"stmanbrs{ environment } uks"
45-
46- if pr_number != "" :
47- environment = f"pr-{ pr_number } "
48- storage_account = f"stmanbrspr{ pr_number } uks"
49-
50- resource_group_name = f"rg-manbrs-{ environment } -container-app-uks"
51-
52- return (environment , storage_account , resource_group_name )
53-
54-
5542def setup_mesh_inbox_test_data (environment : str , resource_group_name : str ):
5643 populate_mesh_env_vars (environment , resource_group_name )
5744 mesh_client ().send_message (
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ terraform-validate: terraform-init-no-backend # Validate Terraform changes - mak
7777
7878notifications-smoke-test :
7979 if test " ${RUN_NOTIFICATIONS_SMOKE_TEST} " == " true" ; then
80+ export ENVIRONMENT
8081 pip install pytest mesh-client
8182 pytest -vv scripts/python/smoke_test/notifications_smoke_test.py
8283 else
You can’t perform that action at this time.
0 commit comments