-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
276878e
commit 68c14c5
Showing
9 changed files
with
29 additions
and
108 deletions.
There are no files selected for viewing
11 changes: 5 additions & 6 deletions
11
examples/simple-examples/src/mailgun/emails/purgeDomainQueues.ts
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ Given('the Mailgun service "Emails" is available', () => { | |
|
||
When('I send a request to send a text email', async () => { | ||
sendEmailResponse = await emailsApi.sendEmail(domainName, { | ||
from: 'Excited E2E user <[email protected]>', | ||
from: 'Excited E2E user ✉️ <[email protected]>', | ||
to: '[email protected]', | ||
subject: 'E2E test text email', | ||
text: 'Hello, this is a text message for E2E testing.', | ||
|
@@ -107,8 +107,7 @@ Then('the response contains the sending queues status', () => { | |
}); | ||
|
||
When('I send a request to purge the domain queues', async () => { | ||
emailsApi.setStorageHostnames(['http://localhost:3021']); | ||
purgeDomainQueuesResponse = await emailsApi.purgeDomainQueues(domainName, 'anyRegion'); | ||
purgeDomainQueuesResponse = await emailsApi.purgeDomainQueue(domainName, 'http://localhost:3021'); | ||
}); | ||
|
||
Then('the response indicates the purge has been done', () => { | ||
|
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