__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@core @core_admin
Feature: MoodleNet outbound configuration
In order to send activity/resource to MoodleNet
As a Moodle administrator
I need to set outbound configuration
Background:
Given I log in as "admin"
Scenario: Share to MoodleNet experimental flag
Given I navigate to "Development > Experimental" in site administration
Then "Enable sharing to MoodleNet" "field" should exist
And the field "Enable sharing to MoodleNet" matches value "0"
Scenario: Outbound configuration without experimental flag enable yet
Given I navigate to "MoodleNet" in site administration
Then I should not see "MoodleNet outbound settings"
Scenario: Outbound configuration without OAuth 2 service setup yet
Given the following config values are set as admin:
| enablesharingtomoodlenet | 1 |
When I navigate to "MoodleNet" in site administration
Then I should see "MoodleNet outbound settings"
And I click on "MoodleNet outbound settings" "link"
And the field "OAuth 2 service" matches value "None"
And I should see "Select a MoodleNet OAuth 2 service to enable sharing to that MoodleNet site. If the service doesn't exist yet, you will need to create it."
And I click on "create" "link"
And I should see "OAuth 2 services"
Scenario: Outbound configuration with OAuth 2 service setup
Given a MoodleNet mock server is configured
And the following config values are set as admin:
| enablesharingtomoodlenet | 1 |
And I navigate to "Server > OAuth 2 services" in site administration
And I press "Custom"
And I should see "Create new service: Custom"
And I set the following fields to these values:
| Name | Testing custom service |
| Client ID | thisistheclientid |
| Client secret | supersecret |
And I press "Save changes"
When I navigate to "MoodleNet > MoodleNet outbound settings" in site administration
Then the field "OAuth 2 service" matches value "None"
And I navigate to "Server > OAuth 2 services" in site administration
And I press "MoodleNet"
And I should see "Create new service: MoodleNet"
And I change the MoodleNet field "Service base URL" to mock server
And I press "Save changes"
And I navigate to "MoodleNet > MoodleNet outbound settings" in site administration
And the "OAuth 2 service" "field" should be enabled
And I should see "MoodleNet" in the "OAuth 2 service" "select"
And I should not see "Testing custom service" in the "OAuth 2 service" "select"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| assign.feature | File | 4.13 KB | 0777 |
|
| behat_admin.php | File | 5.19 KB | 0777 |
|
| browse_users.feature | File | 11.95 KB | 0777 |
|
| check.feature | File | 2.74 KB | 0777 |
|
| display_short_names.feature | File | 858 B | 0777 |
|
| enable_multiple_accounts_use_same_email.feature | File | 3.23 KB | 0777 |
|
| filter_users.feature | File | 11.17 KB | 0777 |
|
| invalid_allcountrycodes.feature | File | 1.41 KB | 0777 |
|
| language_settings.feature | File | 1.35 KB | 0777 |
|
| manage_blocks.feature | File | 2.45 KB | 0777 |
|
| manage_media.feature | File | 806 B | 0777 |
|
| moodlenet_outbound.feature | File | 2.5 KB | 0777 |
|
| outgoing_mail.feature | File | 1.29 KB | 0777 |
|
| plugins_overview.feature | File | 2.25 KB | 0777 |
|
| purge_caches.feature | File | 1.4 KB | 0777 |
|
| resetindentation.feature | File | 6.61 KB | 0777 |
|
| search_areas.feature | File | 1.02 KB | 0777 |
|
| set_admin_settings_value.feature | File | 895 B | 0777 |
|
| site_administration.feature | File | 1.01 KB | 0777 |
|
| task_logs.feature | File | 2.32 KB | 0777 |
|