Skip to content

Commit

Permalink
Revert "[Bromley] Bromley have asked to have closed status functional…
Browse files Browse the repository at this point in the history
…ity"

Was premature in making this live as Bromley had changes to make at their
end. Reverting for the moment to go live later.

This reverts commit cf298a9.
  • Loading branch information
MorayMySoc committed Nov 17, 2023
1 parent 71027d5 commit 35ad901
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,13 @@ around BUILDARGS => sub {

has '+updates_url' => ( default => 'update.xml' );

around post_service_request_update => sub {
my ($orig, $self, $args) = @_;

# Does not handle CLOSED state
$args->{status} = 'OPEN' if $args->{status} eq 'CLOSED';

return $self->$orig($args);
};

1;
1 change: 1 addition & 0 deletions t/open311/endpoint/bromley.t
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ XML
my $lwp = Test::MockModule->new('LWP::UserAgent');
$lwp->mock(request => sub {
my ($ua, $req) = @_;
like $req->as_string, qr/status=OPEN/, 'Has OPEN status sent through';
return HTTP::Response->new(200, 'OK', [], $expected_update_post);
});

Expand Down

0 comments on commit 35ad901

Please sign in to comment.