-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Waste] [Echo] Check event before/after sending.
If we get an internal error from Echo when sending, try and look up the event directly to see if it has actually been created. Also do the same before sending as an extra check.
- Loading branch information
Showing
13 changed files
with
158 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,6 +223,8 @@ create_contact({ category => 'Additional collection', email => '[email protected] | |
{ code => 'service_id', required => 1, automated => 'hidden_field' }, | ||
); | ||
|
||
my $echo = shared_echo_mocks(); | ||
|
||
subtest "title is labelled 'location of problem' in open311 extended description" => sub { | ||
my ($problem) = $mech->create_problems_for_body(1, $brent->id, 'title', { | ||
category => 'Graffiti' , | ||
|
@@ -698,6 +700,8 @@ FixMyStreet::override_config { | |
$mech->host("brent.fixmystreet.com"); | ||
}; | ||
|
||
undef $echo; # Otherwise tests below fail | ||
|
||
package SOAP::Result; | ||
sub result { return $_[0]->{result}; } | ||
sub new { my $c = shift; bless { @_ }, $c; } | ||
|
@@ -906,6 +910,8 @@ FixMyStreet::override_config { | |
} | ||
}; | ||
|
||
$echo = shared_echo_mocks(); | ||
|
||
FixMyStreet::override_config { | ||
ALLOWED_COBRANDS => [ 'brent', 'tfl' ], | ||
MAPIT_URL => 'http://mapit.uk/', | ||
|
@@ -1587,6 +1593,7 @@ sub shared_echo_mocks { | |
}; | ||
}); | ||
$e->mock('GetEventsForObject', sub { [] }); | ||
$e->mock('GetEvent', sub { {} }); | ||
$e->mock('GetTasks', sub { [] }); | ||
return $e; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters