File tree Expand file tree Collapse file tree
lung_cancer_screening/questions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ projects = {
2727}
2828
2929infra_key_vault_name = " kv-lungcs-live-inf"
30- infra_key_vault_rg = " rg-hub-live-uks-bootstrap"
30+ infra_key_vault_rg = " rg-hub-live-uks-bootstrap"
3131
3232diagnostic_settings = {
3333 metric_enabled = true
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ projects = {
2525}
2626
2727infra_key_vault_name = " kv-lungcs-nonlive-inf"
28- infra_key_vault_rg = " rg-hub-nonlive-uks-bootstrap"
28+ infra_key_vault_rg = " rg-hub-nonlive-uks-bootstrap"
2929
3030diagnostic_settings = {
3131 metric_enabled = true
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ module "webapp" {
1111 azurerm.hub = azurerm.hub
1212 }
1313
14- name = " ${ var . app_short_name } -web-${ var . environment } "
15- container_app_environment_id = var. container_app_environment_id
14+ name = " ${ var . app_short_name } -web-${ var . environment } "
15+ container_app_environment_id = var. container_app_environment_id
1616
1717 # alerts
1818 action_group_id = var. action_group_id
Original file line number Diff line number Diff line change @@ -62,13 +62,15 @@ module "container-app-environment" {
6262 azurerm.dns = azurerm.hub
6363 }
6464
65- name = " cae-${ var . environment } -uks-${ var . app_short_name } "
66- resource_group_name = azurerm_resource_group. main . name
67- internal_load_balancer_enabled = var. features . private_networking
68- log_analytics_workspace_id = module. log_analytics_workspace_audit . id
69- vnet_integration_subnet_id = module. container_app_subnet . id
70- private_dns_zone_rg_name = var. features . private_networking ? " rg-hub-${ var . hub } -uks-private-dns-zones" : null
71- zone_redundancy_enabled = var. cae_zone_redundancy_enabled
65+ name = " cae-${ var . environment } -uks-${ var . app_short_name } "
66+ resource_group_name = azurerm_resource_group. main . name
67+ internal_load_balancer_enabled = var. features . private_networking
68+ log_analytics_workspace_id = module. log_analytics_workspace_audit . id
69+ vnet_integration_subnet_id = module. container_app_subnet . id
70+ private_dns_zone_rg_name = var. features . private_networking ? " rg-hub-${ var . hub } -uks-private-dns-zones" : null
71+ zone_redundancy_enabled = var. cae_zone_redundancy_enabled
72+ logs_destination = " azure-monitor"
73+ monitor_diagnostic_setting_cae_enabled_logs = [" ContainerAppConsoleLogs" , " ContainerAppSystemLogs" ]
7274}
7375
7476module "app_insights_audit" {
Original file line number Diff line number Diff line change 1+ from django .test import TestCase , tag
2+ from django .urls import reverse
3+
4+ from .helpers .authentication import login_user
5+
6+ @tag ("BookAnAppointment" )
7+ class TestGetBookAnAppointment (TestCase ):
8+ def setUp (self ):
9+ self .user = login_user (self .client )
10+
11+ def test_get_redirects_if_the_user_is_not_logged_in (self ):
12+ self .client .logout ()
13+
14+ response = self .client .get (reverse ("questions:book_an_appointment" ))
15+
16+ self .assertRedirects (
17+ response ,
18+ "/oidc/authenticate/?next=/call-us-to-book-an-appointment" ,
19+ fetch_redirect_response = False ,
20+ )
Original file line number Diff line number Diff line change 11from django .shortcuts import render
22from django .views import View
3+ from django .contrib .auth .mixins import LoginRequiredMixin
34
4- from .mixins .ensure_response_set import EnsureResponseSet
55
6-
7- class BookAnAppointmentExitView (EnsureResponseSet , View ):
6+ class BookAnAppointmentExitView (LoginRequiredMixin , View ):
87 def get (self , request ):
98 return render (
109 request ,
You can’t perform that action at this time.
0 commit comments