Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 4... Línea 4...
4
  As an user
4
  As an user
5
  I need to be able to login
5
  I need to be able to login
Línea 6... Línea 6...
6
 
6
 
7
  Background:
7
  Background:
-
 
8
    Given I log in as "admin"
-
 
9
    And the following "core_sms > sms_gateways" exist:
-
 
10
      | name          | classname              | enabled | config                                                                                                         |
8
    Given I log in as "admin"
11
      | Dummy gateway | smsgateway_aws\gateway | 1       | {"countrycode":"+61", "gateway":"aws_sns", "api_region":"ap-southeast-2", "api_key":"abc", "api_secret":"123"} |
9
    And the following config values are set as admin:
12
    And the following config values are set as admin:
10
      | enabled | 1 | tool_mfa |
13
      | enabled | 1 | tool_mfa |
11
      | lockout | 3 | tool_mfa |
14
      | lockout | 3 | tool_mfa |
12
    And the following config values are set as admin:
15
    And the following config values are set as admin:
-
 
16
      | enabled  | 1    | factor_sms |
-
 
17
      | weight   | 100  | factor_sms |
-
 
18
      | duration | 1800 | factor_sms |
-
 
19
    And the following config values are set as admin:
-
 
20
      | enabled | 0 | factor_email |
-
 
21
    And I navigate to "Plugins > Admin tools > Multi-factor authentication" in site administration
-
 
22
    And I follow "Edit settings for the SMS factor"
-
 
23
    And I set the field "SMS gateway" to "Dummy gateway (AWS)"
-
 
24
    And I press "Save changes"
13
      | enabled | 1 | factor_sms |
25
    And I should see "Changes saved"
14
    # Set up user SMS factor in user preferences.
26
    # Set up user SMS factor in user preferences.
15
    When I follow "Preferences" in the user menu
27
    When I follow "Preferences" in the user menu
16
    And I click on "Multi-factor authentication preferences" "link"
28
    And I click on "Multi-factor authentication preferences" "link"
17
    And I click on "Set up" "button"
29
    And I click on "Set up" "button"