aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-11-09 11:28:56 +0000
committerStruan Donald <struan@exo.org.uk>2012-11-09 11:28:56 +0000
commit4a8ec58a44e09fa92d289d1a93eef1d8337b4385 (patch)
treee7a3e0a4bf2970f412105380af1baf620a93a5c9 /t/open311
parent3e0441e1dfc287bbdec0a5198f64ef3ff1f7f4ae (diff)
be less restrictive about how open 311 status updates can change states
as logged in council users don't have the same restrictions also, fix open311 status name of unable to fix
Diffstat (limited to 't/open311')
-rw-r--r--t/open311/getservicerequestupdates.t20
1 files changed, 16 insertions, 4 deletions
diff --git a/t/open311/getservicerequestupdates.t b/t/open311/getservicerequestupdates.t
index 680ea930c..9852e53b6 100644
--- a/t/open311/getservicerequestupdates.t
+++ b/t/open311/getservicerequestupdates.t
@@ -262,16 +262,28 @@ for my $test (
end_state => 'fixed - user',
},
{
- desc => 'closed status leaves fixed report as fixed',
+ desc => 'closed status updates fixed report',
updated_datetime => sprintf( '<updated_datetime>%s</updated_datetime>', $dt ),
description => 'This is a note',
external_id => 638344,
start_state => 'fixed - user',
- comment_status => 'UNABLE_TO_FIX',
+ comment_status => 'NO_FURTHER_ACTION',
mark_fixed => 0,
mark_open => 0,
- problem_state => undef,
- end_state => 'fixed - user',
+ problem_state => 'unable to fix',
+ end_state => 'unable to fix',
+ },
+ {
+ desc => 'no futher action status closes report',
+ updated_datetime => sprintf( '<updated_datetime>%s</updated_datetime>', $dt ),
+ description => 'This is a note',
+ external_id => 638344,
+ start_state => 'confirmed',
+ comment_status => 'NO_FURTHER_ACTION',
+ mark_fixed => 0,
+ mark_open => 0,
+ problem_state => 'unable to fix',
+ end_state => 'unable to fix',
},
{
desc => 'fixed status sets closed report as fixed',