mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-61921 admin: Support XOAUTH2 for incoming mail
- Loading branch information
Showing
4 changed files
with
66 additions
and
0 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
25 changes: 25 additions & 0 deletions
25
admin/tool/messageinbound/tests/behat/incoming_mail.feature
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@tool @tool_messageinbound | ||
Feature: Incoming mail configuration | ||
In order to receive email from external | ||
As a Moodle administrator | ||
I need to set mail configuration | ||
|
||
Background: | ||
Given I log in as "admin" | ||
|
||
Scenario: Incoming mail server settings without OAuth 2 Service setup yet | ||
Given I navigate to "Server > Email > Incoming mail configuration" in site administration | ||
And "OAuth 2 Service" "select" should not exist | ||
|
||
Scenario: Incoming mail server settings with OAuth 2 Service setup | ||
Given I navigate to "Server > OAuth 2 services" in site administration | ||
And I press "Google" | ||
And I should see "Create new service: Google" | ||
And I set the following fields to these values: | ||
| Name | Testing service | | ||
| Client ID | thisistheclientid | | ||
| Client secret | supersecret | | ||
And I press "Save changes" | ||
When I navigate to "Server > Email > Incoming mail configuration" in site administration | ||
Then "OAuth 2 Service" "select" should exist | ||
And I should see "Testing service" in the "OAuth 2 Service" "select" |