8000 [Mailer] Changed the region in the tests to the (default) `eu-west-1` by cafferata · Pull Request #52958 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Mailer] Changed the region in the tests to the (default) eu-west-1 #52958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function getTransportData()
return [
[
new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY']))),
'ses+api://ACCESS_KEY@us-east-1',
'ses+api://ACCESS_KEY@eu-west-1',
],
[
new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'region' => 'us-west-1']))),
Expand All @@ -55,7 +55,7 @@ public static function getTransportData()
],
[
new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'sessionToken' => 'SESSION_TOKEN']))),
'ses+api://ACCESS_KEY@us-east-1',
'ses+api://ACCESS_KEY@eu-west-1',
],
[
new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'region' => 'us-west-1', 'sessionToken' => 'SESSION_TOKEN']))),
Expand All @@ -76,7 +76,7 @@ public function testSend()
{
$client = new MockHttpClient(function (string $method, string $url, array $options): ResponseInterface {
$this->assertSame('POST', $method);
$this->assertSame('https://email.us-east-1.amazonaws.com/v2/email/outbound-emails', $url);
$this->assertSame('https://email.eu-west-1.amazonaws.com/v2/email/outbound-emails', $url);

$content = json_decode($options['body'], true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function getTransportData()
return [
[
new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY']))),
'ses+https://ACCESS_KEY@us-east-1',
'ses+https://ACCESS_KEY@eu-west-1',
],
[
new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'region' => 'us-west-1']))),
Expand All @@ -55,7 +55,7 @@ public static function getTransportData()
],
[
new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'sessionToken' => 'SESSION_TOKEN']))),
'ses+https://ACCESS_KEY@us-east-1',
'ses+https://ACCESS_KEY@eu-west-1',
],
[
new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'region' => 'us-west-1', 'sessionToken' => 'SESSION_TOKEN']))),
Expand All @@ -76,7 +76,7 @@ public function testSend()
{
$client = new MockHttpClient(function (string $method, string $url, array $options): ResponseInterface {
$this->assertSame('POST', $method);
$this->assertSame('https://email.us-east-1.amazonaws.com/v2/email/outbound-emails', $url);
$this->assertSame('https://email.eu-west-1.amazonaws.com/v2/email/outbound-emails', $url);

$body = json_decode($options['body'], true);
$content = base64_decode($body['Content']['Raw']['Data']);
Expand Down
0