mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(sns) Allow to publish SMS using phone-number (#138)
Co-authored-by: tada <tada20591@cs.saisoncard.co.jp>
This commit is contained in:
1 parent
35e129d024
commit
788cf01d2c
4 files changed
+21
-6
No files matched your search
@@ -153,6 +153,12 @@ class SnsServiceTest {
|
||||
assertNotNull(messageId);
|
||||
}
|
||||
|
||||
@Test
|
||||
void publish_withPhoneNumber_returnsMessageId() {
|
||||
String messageId = snsService.publish(null, null, "+819012345678", "Hello phone!", null, null, REGION);
|
||||
assertNotNull(messageId);
|
||||
}
|
||||
|
||||
@Test
|
||||
void publish_requiresTopicArn() {
|
||||
assertThrows(AwsException.class,
|
||||
|
||||
Reference in new issue
Block a user