Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@auth @auth_oauth2 @javascript
2
Feature: OAuth2 settings test functionality
3
  In order to use them later for authentication
4
  As an administrator
5
  I need to be able to test configured OAuth2 login services.
6
 
7
  Background:
8
    Given I log in as "admin"
9
    And I change window size to "large"
10
 
11
  Scenario: Test oAuth2 authentication settings with no configured service.
12
    Given I navigate to "Plugins > Authentication > Manage authentication" in site administration
13
    And I click on "Test settings" "link" in the "OAuth 2" "table_row"
14
    Then I should see "There are no configured OAuth2 providers"
15
 
16
  Scenario: Test oAuth2 authentication settings for a configured service.
17
    Given I navigate to "Server > OAuth 2 services" in site administration
18
    And I press "Google"
19
    And I set the following fields to these values:
20
      | Name                       | Testing service                           |
21
      | Client ID                  | thisistheclientid                         |
22
      | Client secret              | supersecret                               |
23
    And I press "Save changes"
24
    And I navigate to "Plugins > Authentication > Manage authentication" in site administration
25
    And I click on "Test settings" "link" in the "OAuth 2" "table_row"
26
    Then I should see "Testing service"