Skip to content

Commit

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

Bromley are now ready to go live with this.

This reverts commit 35ad901.
  • Loading branch information
chrismytton committed Nov 24, 2023
1 parent 35ad901 commit c94c892
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,4 @@ 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: 0 additions & 1 deletion t/open311/endpoint/bromley.t
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ 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 c94c892

Please sign in to comment.