vEPC tests with juju as an VNF manager
[functest.git] / functest / opnfv_tests / vnf / epc / featureFiles / Auth_NotAccept_by_UE_IMSIattach_MAC_code_failure.feature
1     ############################################################################################################################
2     #                                              Date: <13/12/2016> Version: <1.1>                                           #
3     ############################################################################################################################
4
5     Feature:Auth_NotAccept_by_UE_IMSIattach_MAC_code_failure
6
7     @authentication-procedure @Auth_NotAccept_by_UE_IMSIattach_MAC_code_failure @TS_24_301 @24_301_5_4_2_6 @24_301_5_4_2_7 @negTCs @Series-0002
8
9     Scenario: UE received invalid MAC code in AUTN parameter in the AUTHENTICATION REQUEST message. Authentication not accepted by the UE when attach with IMSI. UE responds the Authentication failure message with EMM cause (reject cause) #20 "MAC failure".
10
11     Given all configured endpoints for SSH are connected successfully
12
13     Given the steps below will be executed at the end
14     When I stop S1AP simulator on node ABOT
15     When I run the SSH command "sudo service mme_gw restart" on node MME
16     # WRONGIMSI is restored to false in teardown process
17     Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.USIM_API_K_VALUE=\"8BAF473F2F8FD09487CCCBD7097C6862\"" on node ABOT
18     Given the execution is paused for {abotprop.WAIT_10_SEC} seconds
19     Then the ending steps are complete
20
21     # set ABOT configuration
22     Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT
23     Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT
24
25     # CORRECT K_VALUE is 8BAF473F2F8FD09487CCCBD7097C6862 WRONG K_VALUE fec86ba6eb707ed08905757b1bb44b8f
26     Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.USIM_API_K=\"fec86ba6eb707ed08905757b1bb44b8f\"" on node ABOT
27
28     # Execute ABOT S1AP Simulator
29     When I run S1AP simulator on node ABOT with 1 UE
30
31     Given the execution is paused for {abotprop.WAIT_10_SEC} seconds
32     Given the execution is paused for {abotprop.WAIT_10_SEC} seconds
33
34     # Validate Test Case Execution at Simulator
35     Then I receive S1AP response on node ABOT and verify the presence of all the following values:
36     | responseResult                                 | existence               |
37     | Send Attach Request message with IMSI          | {string:nocase:present} |
38     | Received Authentication Request message        | {string:nocase:present} |
39     | Send Authentication Failure message (cause=20) | {string:nocase:present} |
40     | Received Authentication Reject message         | {string:nocase:present} |
41     | Authentication not accepted by the network     | {string:nocase:present} |
42