Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@tool @tool_mfa @factor_sms
2
Feature: Set up SMS factor when relevant gateway is not configured
3
  In order configure the SMS factor
4
  As an admin
5
  I want to be directed to the SMS gateway setup when necessary
6
 
7
  Scenario: Configuring gateways from the SMS factor settings
8
    Given I log in as "admin"
9
    And the following config values are set as admin:
10
      | enabled | 1 | tool_mfa |
11
      | lockout | 3 | tool_mfa |
12
    And the following config values are set as admin:
13
      | enabled  | 1    | factor_sms |
14
      | weight   | 100  | factor_sms |
15
      | duration | 1800 | factor_sms |
16
    When I navigate to "Plugins > Admin tools > Multi-factor authentication" in site administration
17
    And I follow "Edit settings for the SMS factor"
18
    Then I should see "To use SMS as an authentication factor, you first need to set up an SMS gateway."
19
    And I should see "set up an SMS gateway"
20
    And I follow "set up an SMS gateway"
21
    And I should see "Create new SMS gateway"
22
    And I set the following fields to these values:
23
      | SMS gateway provider      | AWS               |
24
      | Gateway name              | First AWS gateway |
25
      | Default country code      | 61                |
26
      | Access key                | key123            |
27
      | Secret access key         | secret456         |
28
      | Amazon API gateway region | ap-southeast-2    |
29
    And I press "Save changes"
30
    And I should see "SMS"
31
    And the "SMS gateway" select box should contain "First AWS gateway (AWS)"
32
    And I follow "create a new gateway"
33
    And I should see "Create new SMS gateway"
34
    And I set the following fields to these values:
35
      | SMS gateway provider      | AWS               |
36
      | Gateway name              | Second one        |
37
      | Default country code      | 1                 |
38
      | Access key                | key1234           |
39
      | Secret access key         | secret4567        |
40
      | Amazon API gateway region | ap-southeast-2    |
41
    And I press "Save changes"
42
    And I should see "SMS"
43
    And the "SMS gateway" select box should contain "First AWS gateway (AWS)"
44
    And the "SMS gateway" select box should contain "Second one (AWS)"