From 5ca9ec1075f1bed2bdbe584e5af341934f7a58d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Thu, 3 Jul 2025 12:38:35 +0200 Subject: [PATCH] Removing juju_epc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I492bbfe52b9094fcf2941955f2a4f6a987953304 Signed-off-by: Cédric Ollivier (cherry picked from commit 6d92758c4fe01ed117769f4b5f6fe371670e96b9) --- README.md | 2 - docker/vnf/Dockerfile | 5 - docker/vnf/testcases.yaml | 13 - docs/release/release-notes/functest-release.rst | 1 - docs/spelling_wordlist.txt | 3 - docs/testing/user/configguide/configguide.rst | 1 - docs/testing/user/userguide/test_details.rst | 32 -- docs/testing/user/userguide/test_results.rst | 2 - functest/ci/testcases.yaml | 13 - functest/opnfv_tests/vnf/epc/__init__.py | 0 .../epc/featureFiles/000-local-commands.feature | 12 - .../Attach_Procedure_AttachWithIMSI.feature | 39 -- ...tach_Procedure_AttachWithIMSI_Wrong_MCC.feature | 32 -- ...tach_Procedure_AttachWithIMSI_Wrong_MNC.feature | 33 -- ...tach_Procedure_AttachWithIMSI_Wrong_TAC.feature | 33 -- .../Attach_Procedure_Attach_With_GUTI.feature | 36 -- ..._Procedure_With_DNS_Server_Addr_Request.feature | 44 -- ..._Procedure_With_DSMIPv6_HA_Addr_Request.feature | 44 -- ...rocedure_With_DSMIPv6_HN_Prefix_Request.feature | 44 -- ...edure_With_DSMIPv6_IPv4_HA_Addr_Request.feature | 44 -- ...Procedure_With_IM_CN_SS_Signalling_Flag.feature | 44 -- ...ach_Procedure_With_IP_Addr_Alloc_DHCPv4.feature | 44 -- ...edure_With_IP_Addr_Alloc_NAS_Signalling.feature | 44 -- ..._With_MS_Support_Bearer_Ctrl_Indication.feature | 44 -- ...tach_Procedure_With_P_CSCF_Addr_Request.feature | 44 -- .../vnf/epc/featureFiles/Auth_Accept.feature | 45 -- ...y_Network_GUTIattach_AuthReject_re_Auth.feature | 47 -- ..._GUTIattach_IMSIdiff_AuthReject_re_Auth.feature | 38 -- ...y_Network_IMSIattach_AuthReject_re_Auth.feature | 62 --- ...ccept_by_UE_GUTIattach_MAC_code_failure.feature | 45 -- ...ccept_by_UE_IMSIattach_MAC_code_failure.feature | 42 -- .../Auth_NotAccept_by_UE_SQN_failure.feature | 46 -- ...uth_NotAccept_by_UE_non_EPS_AuthUnaccpt.feature | 45 -- .../vnf/epc/featureFiles/ResourceBundle.xml | 4 - functest/opnfv_tests/vnf/epc/juju_epc.py | 483 --------------------- functest/opnfv_tests/vnf/epc/juju_epc.yaml | 32 -- functest/tests/unit/vnf/epc/__init__.py | 0 functest/tests/unit/vnf/epc/test_juju_epc.py | 78 ---- 38 files changed, 1620 deletions(-) delete mode 100644 functest/opnfv_tests/vnf/epc/__init__.py delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/000-local-commands.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_MCC.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_MNC.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_TAC.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_Attach_With_GUTI.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DNS_Server_Addr_Request.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_HA_Addr_Request.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_HN_Prefix_Request.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_IPv4_HA_Addr_Request.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IM_CN_SS_Signalling_Flag.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IP_Addr_Alloc_DHCPv4.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IP_Addr_Alloc_NAS_Signalling.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_MS_Support_Bearer_Ctrl_Indication.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_P_CSCF_Addr_Request.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Auth_Accept.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_GUTIattach_AuthReject_re_Auth.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_GUTIattach_IMSIdiff_AuthReject_re_Auth.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_IMSIattach_AuthReject_re_Auth.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_GUTIattach_MAC_code_failure.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_IMSIattach_MAC_code_failure.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_SQN_failure.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_non_EPS_AuthUnaccpt.feature delete mode 100644 functest/opnfv_tests/vnf/epc/featureFiles/ResourceBundle.xml delete mode 100644 functest/opnfv_tests/vnf/epc/juju_epc.py delete mode 100644 functest/opnfv_tests/vnf/epc/juju_epc.yaml delete mode 100644 functest/tests/unit/vnf/epc/__init__.py delete mode 100644 functest/tests/unit/vnf/epc/test_juju_epc.py diff --git a/README.md b/README.md index a1d201e1b..38ac18090 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,6 @@ sudo docker run --env-file env \ | cinder_test | functest | healthcheck | 01:05 | PASS | | tempest_smoke | functest | healthcheck | 05:39 | PASS | | tempest_horizon | functest | healthcheck | 01:05 | PASS | -| odl | functest | healthcheck | 00:00 | SKIP | +--------------------------+------------------+---------------------+------------------+----------------+ ``` @@ -206,6 +205,5 @@ sudo docker run --env-file env \ | cloudify_ims | functest | vnf | 24:46 | PASS | | heat_ims | functest | vnf | 33:12 | PASS | | vyos_vrouter | functest | vnf | 15:53 | PASS | -| juju_epc | functest | vnf | 27:52 | PASS | +----------------------+------------------+--------------+------------------+----------------+ ``` diff --git a/docker/vnf/Dockerfile b/docker/vnf/Dockerfile index 5280de0b4..aa5e1590a 100644 --- a/docker/vnf/Dockerfile +++ b/docker/vnf/Dockerfile @@ -6,7 +6,6 @@ ARG CLOUDIFY_VIMS_TAG=gambia ARG HEAT_VIMS_TAG=release-130 ARG VROUTER_TAG=fraser ARG VROUTER_BP_TAG=8a6d3eb9f6e5e9f387e16507971462bfa7514700 -ARG ABOT_CHARM=opnfv-fraser COPY clearwater-heat-singlenet-deps.patch /tmp/clearwater-heat-singlenet-deps.patch RUN apk --no-cache add --update \ @@ -45,10 +44,6 @@ RUN apk --no-cache add --update \ (cd /home/opnfv/functest/data/router/opnfv-vnf-data && \ git fetch --tags https://github.com/oolorg/opnfv-vnf-data.git $VROUTER_TAG && \ git checkout FETCH_HEAD) && \ - git init /src/epc-requirements/abot_charm && \ - (cd /src/epc-requirements/abot_charm && \ - git fetch --tags https://github.com/collivier/abot_charm.git $ABOT_CHARM && \ - git checkout FETCH_HEAD) && \ (cd /src/vims-test && bundle config build.nokogiri --use-system-libraries && bundle install --system && bundle update rest-client) && \ rm -r /src/vims-test/.git /src/cloudify_vims/.git /src/heat_vims/.git /src/vims-test/quaff/.git \ /src/vims-test/build-infra/.git /src/opnfv-vnf-vyos-blueprint/.git \ diff --git a/docker/vnf/testcases.yaml b/docker/vnf/testcases.yaml index 6b483af6a..9b2c0a76e 100644 --- a/docker/vnf/testcases.yaml +++ b/docker/vnf/testcases.yaml @@ -53,16 +53,3 @@ tiers: - NO_TENANT_NETWORK: '^(?![tT]rue$)' run: name: vyos_vrouter - - - - case_name: juju_epc - project_name: functest - criteria: 100 - blocking: false - description: >- - vEPC validation with Juju as VNF manager and ABoT as test - executor. - dependencies: - - NO_TENANT_NETWORK: '^(?![tT]rue$)' - run: - name: juju_epc diff --git a/docs/release/release-notes/functest-release.rst b/docs/release/release-notes/functest-release.rst index 47dec9080..760ae4921 100644 --- a/docs/release/release-notes/functest-release.rst +++ b/docs/release/release-notes/functest-release.rst @@ -60,7 +60,6 @@ The internal test cases are: * cloudify_ims * heat_ims * vyos_vrouter - * juju_epc Kubernetes ---------- diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt index f4dcea507..bb9f909a1 100644 --- a/docs/spelling_wordlist.txt +++ b/docs/spelling_wordlist.txt @@ -27,7 +27,6 @@ dockerhub enduser env EnvironmentVariable -epc fds frontend functest @@ -67,10 +66,8 @@ nofeature noha nosdn octavia -odl onboarding ons -Opendaylight openstack Openstack opnfv diff --git a/docs/testing/user/configguide/configguide.rst b/docs/testing/user/configguide/configguide.rst index 47c25adb1..02763b5f7 100644 --- a/docs/testing/user/configguide/configguide.rst +++ b/docs/testing/user/configguide/configguide.rst @@ -223,7 +223,6 @@ Results shall be displayed as follows:: | cloudify_ims | functest | vnf | 24:46 | PASS | | heat_ims | functest | vnf | 33:12 | PASS | | vyos_vrouter | functest | vnf | 15:53 | PASS | - | juju_epc | functest | vnf | 27:52 | PASS | +----------------------+------------------+--------------+------------------+----------------+ Functest Dockers for Kubernetes deployment diff --git a/docs/testing/user/userguide/test_details.rst b/docs/testing/user/userguide/test_details.rst index 98247d488..c20eb47d5 100644 --- a/docs/testing/user/userguide/test_details.rst +++ b/docs/testing/user/userguide/test_details.rst @@ -340,38 +340,6 @@ The Workflow is as follows: The vyos-vrouter architecture is described in `[14]`_ -juju_epc -^^^^^^^^ -The Evolved Packet Core (EPC) is the main component of the System Architecture -Evolution (SAE) which forms the core of the 3GPP LTE specification. - -vEPC has been integrated in Functest to demonstrate the capability to deploy a -complex mobility-specific NFV scenario on the OPNFV platform. The OAI EPC -supports most of the essential functions defined by the 3GPP Technical Specs; -hence the successful execution of functional tests on the OAI EPC provides a -good endorsement of the underlying NFV platform. - -This integration also includes ABot, a Test Orchestration system that enables -test scenarios to be defined in high-level DSL. ABot is also deployed as a -VM on the OPNFV platform; and this provides an example of the automation -driver and the Test VNF being both deployed as separate VNFs on the underlying -OPNFV platform. - -The Workflow is as follows: - * Deploy Orchestrator - Deploy Juju controller using Bootstrap command. - * Deploy VNF - Deploy ABot orchestrator and OAI EPC as Juju charms. - Configuration of ABot and OAI EPC components is handled through - built-in Juju relations. - * Test VNF - Execution of ABot feature files triggered by Juju actions. - This executes a suite of LTE signalling tests on the OAI EPC. - * Reporting - ABot test results are parsed accordingly and pushed to Functest Db. - -Details of the ABot test orchestration tool may be found in `[15]`_ - Kubernetes (K8s) ---------------- diff --git a/docs/testing/user/userguide/test_results.rst b/docs/testing/user/userguide/test_results.rst index 10f87d8ec..482223352 100644 --- a/docs/testing/user/userguide/test_results.rst +++ b/docs/testing/user/userguide/test_results.rst @@ -36,7 +36,6 @@ Healthcheck suite:: | cinder_test | functest | healthcheck | 01:05 | PASS | | tempest_smoke | functest | healthcheck | 05:39 | PASS | | tempest_horizon | functest | healthcheck | 01:05 | PASS | - | odl | functest | healthcheck | 00:00 | SKIP | +--------------------------+------------------+---------------------+------------------+----------------+ Smoke suite:: @@ -110,7 +109,6 @@ Vnf suite:: | cloudify_ims | functest | vnf | 24:46 | PASS | | heat_ims | functest | vnf | 33:12 | PASS | | vyos_vrouter | functest | vnf | 15:53 | PASS | - | juju_epc | functest | vnf | 27:52 | PASS | +----------------------+------------------+--------------+------------------+----------------+ Kubernetes healthcheck suite:: diff --git a/functest/ci/testcases.yaml b/functest/ci/testcases.yaml index b356362bb..ae041b2cc 100644 --- a/functest/ci/testcases.yaml +++ b/functest/ci/testcases.yaml @@ -1042,16 +1042,3 @@ tiers: - NO_TENANT_NETWORK: '^(?![tT]rue$)' run: name: vyos_vrouter - - - - case_name: juju_epc - project_name: functest - criteria: 100 - blocking: false - description: >- - vEPC validation with Juju as VNF manager and ABoT as test - executor. - dependencies: - - NO_TENANT_NETWORK: '^(?![tT]rue$)' - run: - name: juju_epc diff --git a/functest/opnfv_tests/vnf/epc/__init__.py b/functest/opnfv_tests/vnf/epc/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/000-local-commands.feature b/functest/opnfv_tests/vnf/epc/featureFiles/000-local-commands.feature deleted file mode 100644 index 438e2c0e7..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/000-local-commands.feature +++ /dev/null @@ -1,12 +0,0 @@ - Feature: Local_Commands_Testing - - @local-commands - Scenario: Local Commands testing - Given all configured endpoints for SSH are connected successfully - When I execute the command ifconfig in this system and check the presence of following strings in the response: - | responseResult | existence | - | inet | {string:nocase:present} | - | UP | {string:nocase:present} | - | BROADCAST | {string:nocase:present} | - | RUNNING | {string:nocase:present} | - | MULTICAST | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI.feature deleted file mode 100644 index 678315804..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI.feature +++ /dev/null @@ -1,39 +0,0 @@ -############################################################################################################################ -# Date: <22/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature:Attach_Procedure_AttachWithIMSI - -@attach-procedure @Attach_Procedure_AttachWithIMSI @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 - -Scenario: Attach Procedure Success configured with AttachWithIMSI when Selected PLMN is neither the registered PLMN nor in the list of equivalent PLMNs - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# Set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Wait for execution to complete before checking results -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with IMSI | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_MCC.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_MCC.feature deleted file mode 100644 index 4e3cfd7b6..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_MCC.feature +++ /dev/null @@ -1,32 +0,0 @@ -############################################################################################################################ -# Date: <31/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature:Attach_Procedure_AttachWithIMSI_Wrong_MCC - -@attach-procedure @Attach_Procedure_AttachWithIMSI_Wrong_MCC @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 - -Scenario: Attach Procedure Failure due to wrong MCC. - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with EPC parameter "ABOT.ENB.mobile_country_code=201" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Received s1 setup failure for MME | {string:nocase:present} | - diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_MNC.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_MNC.feature deleted file mode 100644 index 6082db06f..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_MNC.feature +++ /dev/null @@ -1,33 +0,0 @@ -############################################################################################################################ -# Date: <31/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature:Attach_Procedure_AttachWithIMSI_Wrong_MNC - -@attach-procedure @Attach_Procedure_AttachWithIMSI_Wrong_MNC @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 - -Scenario: Attach Procedure Failure due to wrong MNC. - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with EPC parameter "ABOT.ENB.mobile_network_code=95" on node ABOT - -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Received s1 setup failure for MME | {string:nocase:present} | - - diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_TAC.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_TAC.feature deleted file mode 100644 index 855ffd632..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_AttachWithIMSI_Wrong_TAC.feature +++ /dev/null @@ -1,33 +0,0 @@ -############################################################################################################################ -# Date: <31/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature:Attach_Procedure_AttachWithIMSI_Wrong_TAC - -@attach-procedure @Attach_Procedure_AttachWithIMSI_Wrong_TAC @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 - -Scenario: Attach Procedure Failure due to wrong TAC - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with EPC parameter "ABOT.ENB.tracking_area_code=10" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Received s1 setup failure for MME | {string:nocase:present} | - - diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_Attach_With_GUTI.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_Attach_With_GUTI.feature deleted file mode 100644 index d6ca03691..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_Attach_With_GUTI.feature +++ /dev/null @@ -1,36 +0,0 @@ -############################################################################################################################ -# Date: <31/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature:Attach_Procedure_Attach_With_GUTI - -@attach-procedure @Attach_Procedure_Attach_With_GUTI @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 -Scenario: Attach Procedure Success with right GUTI. - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=false" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with GUTI | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | - diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DNS_Server_Addr_Request.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DNS_Server_Addr_Request.feature deleted file mode 100644 index f68e18124..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DNS_Server_Addr_Request.feature +++ /dev/null @@ -1,44 +0,0 @@ -############################################################################################################################ -# Date: <22/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature: Attach Procedure With DNS Server Address Request Indication in PCO - -@attach-procedure @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 -@TS_36_523_9_2_1_1_3 @Attach_Procedure_DNS_Server_Address_Request @PCO - -Scenario: Attach Procedure indicating a request DNS Server Address in the protocol configuration options - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# Set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - -Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.PCO.IPV6_DNS_SERVER_ADDR_REQ=true" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Wait for execution to complete before checking results -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with IMSI | {string:nocase:present} | -| Send PDN Connectivity Request message with DNS Server Address Request | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | -| Received Activate Default EPS Bearer Context Request message with PCO contain Protocol ID 0003 | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_HA_Addr_Request.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_HA_Addr_Request.feature deleted file mode 100644 index 92c38a2b1..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_HA_Addr_Request.feature +++ /dev/null @@ -1,44 +0,0 @@ -############################################################################################################################ -# Date: <22/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature: Attach Procedure with DSMIPv6 Home Agent Address Request Indication in PCO - -@attach-procedure @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 -@TS_36_523_9_2_1_1_3 @Attach_Procedure_DSMIPv6_Home_Agent_Address_Request @PCO - -Scenario: Attach Procedure indicating a request for DSMIPv6 Home Agent Address in the protocol configuration options - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# Set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - -Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.PCO.IPV6_HA_ADDR_REQ=true" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Wait for execution to complete before checking results -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with IMSI | {string:nocase:present} | -| Send PDN Connectivity Request message with DSMIPv6 Home Agent Address Request | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | -| Received Activate Default EPS Bearer Context Request message with PCO contain Protocol ID 0007 | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_HN_Prefix_Request.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_HN_Prefix_Request.feature deleted file mode 100644 index fe389028c..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_HN_Prefix_Request.feature +++ /dev/null @@ -1,44 +0,0 @@ -############################################################################################################################ -# Date: <22/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature: Attach Procedure With DSMIPv6 Home Network Prefix Request Indication in PCO - -@attach-procedure @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 -@TS_36_523_9_2_1_1_3 @Attach_Procedure_DSMIPv6_Home_Network_Prefix_Request @PCO - -Scenario: Attach Procedure indicating a request for DSMIPv6 Home Network Prefix Request in the protocol configuration options - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# Set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - -Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.PCO.IPV6_HN_PREFIX_REQ=true" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Wait for execution to complete before checking results -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with IMSI | {string:nocase:present} | -| Send PDN Connectivity Request message with DSMIPv6 Home Network Prefix Request | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | -| Received Activate Default EPS Bearer Context Request message with PCO contain Protocol ID 0008 | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_IPv4_HA_Addr_Request.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_IPv4_HA_Addr_Request.feature deleted file mode 100644 index 5821cd555..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_DSMIPv6_IPv4_HA_Addr_Request.feature +++ /dev/null @@ -1,44 +0,0 @@ -############################################################################################################################ -# Date: <22/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature: Attach Procedure With DSMIPv6 IPv4 Home Agent Address Request Indication in PCO - -@attach-procedure @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 -@TS_36_523_9_2_1_1_3 @Attach_Procedure_DSMIPv6_IPv4_Home_Agent_Address_Request @PCO - -Scenario: Attach Procedure indicating a request for DSMIPv6 IPv4 Home Agent Address in the protocol configuration options - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# Set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - -Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.PCO.IPV6_IPV4_HA_ADDR_REQ=true" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Wait for execution to complete before checking results -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with IMSI | {string:nocase:present} | -| Send PDN Connectivity Request message with DSMIPv6 IPv4 Home Agent Address Request | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | -| Received Activate Default EPS Bearer Context Request message with PCO contain Protocol ID 0009 | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IM_CN_SS_Signalling_Flag.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IM_CN_SS_Signalling_Flag.feature deleted file mode 100644 index 81f4fbc4a..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IM_CN_SS_Signalling_Flag.feature +++ /dev/null @@ -1,44 +0,0 @@ -############################################################################################################################ -# Date: <22/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature: Attach Procedure With IM CN Subsystem Signalling Flag Indication in PCO - -@attach-procedure @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 -@TS_36_523_9_2_1_1_3 @Attach_Procedure_IM_CN_Subsystem_Signalling_Flag @PCO - -Scenario: Attach Procedure indicating IM CN Subsystem Signalling Flag in the protocol configuration options - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# Set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - -Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.PCO.IM_CN_SS_SIGNAL_FLAG=true" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Wait for execution to complete before checking results -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with IMSI | {string:nocase:present} | -| Send PDN Connectivity Request message with IM CN Subsystem Signalling Flag | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | -| Received Activate Default EPS Bearer Context Request message with PCO contain Protocol ID 0002 | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IP_Addr_Alloc_DHCPv4.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IP_Addr_Alloc_DHCPv4.feature deleted file mode 100644 index fba01f24d..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IP_Addr_Alloc_DHCPv4.feature +++ /dev/null @@ -1,44 +0,0 @@ -############################################################################################################################ -# Date: <22/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature: Attach Procedure with IPv4 Address Allocation Via DHCPv4 Indication in PCO - -@attach-procedure @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 -@TS_36_523_9_2_1_1_3 @Attach_Procedure_IPv4_Address_Allocation_Via_DHCPv4 @PCO - -Scenario: Attach Procedure indicating IPv4 address allocation via DHCPv4 in the protocol configuration options - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# Set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - -Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.PCO.IP_ADDR_ALLOC_DHCPV4=true" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Wait for execution to complete before checking results -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with IMSI | {string:nocase:present} | -| Send PDN Connectivity Request message with IPv4 address allocation via DHCPv4 | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | -| Received Activate Default EPS Bearer Context Request message with PCO contain Protocol ID 000B | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IP_Addr_Alloc_NAS_Signalling.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IP_Addr_Alloc_NAS_Signalling.feature deleted file mode 100644 index 1cb869b4e..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_IP_Addr_Alloc_NAS_Signalling.feature +++ /dev/null @@ -1,44 +0,0 @@ -############################################################################################################################ -# Date: <22/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature: Attach Procedure With IP Address Allocation Via NAS Signalling Indication in PCO - -@attach-procedure @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 -@TS_36_523_9_2_1_1_3 @Attach_Procedure_IP_Address_Allocation_Via_NAS_Signalling @PCO - -Scenario: Attach Procedure indicating IP address allocation via NAS signalling in the protocol configuration options - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# Set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - -Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.PCO.IP_ADDR_NAS_SIGNALING=true" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Wait for execution to complete before checking results -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with IMSI | {string:nocase:present} | -| Send PDN Connectivity Request message with IP address allocation via NAS signalling | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | -| Received Activate Default EPS Bearer Context Request message with PCO contain Protocol ID 000A | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_MS_Support_Bearer_Ctrl_Indication.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_MS_Support_Bearer_Ctrl_Indication.feature deleted file mode 100644 index bfc7515cd..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_MS_Support_Bearer_Ctrl_Indication.feature +++ /dev/null @@ -1,44 +0,0 @@ -############################################################################################################################ -# Date: <22/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature: Attach Procedure With MS Support of Network Requested Bearer Control indicator in PCO - -@attach-procedure @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 -@TS_36_523_9_2_1_1_3 @Attach_Procedure_MS_Support_Network_Requested_Bearer_Control_Indicator @PCO - -Scenario: Attach Procedure indicating MS Support of Network Requested Bearer Control indicator - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# Set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - -Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.PCO.MS_SUPPORT_BEARER_CTRL_IND=true" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Wait for execution to complete before checking results -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with IMSI | {string:nocase:present} | -| Send PDN Connectivity Request message with MS Support of Network Requested Bearer Control indicator | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | -| Received Activate Default EPS Bearer Context Request message with PCO contain Protocol ID 0005 | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_P_CSCF_Addr_Request.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_P_CSCF_Addr_Request.feature deleted file mode 100644 index 605bb934f..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Attach_Procedure_With_P_CSCF_Addr_Request.feature +++ /dev/null @@ -1,44 +0,0 @@ -############################################################################################################################ -# Date: <22/08/2016> Version: <1.1> # -############################################################################################################################ - -Feature: Attach Procedure With P-CSCF Address Request Indication in PCO - -@attach-procedure @TS_24_301 @24_301_5_5 @24_301_5_5_1_2_2 @TS_24_368 @24_368_4 @24_368-5_4 @Series-0000 -@TS_36_523_9_2_1_1_3 @Attach_Procedure_P-CSCF_Address_Request @PCO - -Scenario: Attach Procedure indicating a request for P-CSCF address in the protocol configuration options - -Given all configured endpoints for SSH are connected successfully - -Given the steps below will be executed at the end -When I stop S1AP simulator on node ABOT -When I run the SSH command "sudo service mme_gw restart" on node MME -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds -Then the ending steps are complete - -# Set ABOT configuration -Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT -Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - -Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.PCO.IPV6_P_CSCF_ADDR_REQ=true" on node ABOT - -# Execute ABOT S1AP Simulator -When I run S1AP simulator on node ABOT with 1 UE - -# Wait for execution to complete before checking results -Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - -# Validate Test Case Execution at Simulator -Then I receive S1AP response on node ABOT and verify the presence of all the following values: -| responseResult | existence | -| Send Attach Request message with IMSI | {string:nocase:present} | -| Send PDN Connectivity Request message with P-CSCF Address Request | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Authentication Request message | {string:nocase:present} | -| Send Authentication Response message | {string:nocase:present} | -| Received Security Mode Command message | {string:nocase:present} | -| Send Security Mode Complete message | {string:nocase:present} | -| Received Attach Accept message | {string:nocase:present} | -| Received Activate Default EPS Bearer Context Request message with PCO contain Protocol ID 0001 | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_Accept.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Auth_Accept.feature deleted file mode 100644 index 3136dbdb7..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_Accept.feature +++ /dev/null @@ -1,45 +0,0 @@ - ############################################################################################################################ - # Date: <13/01/2017> Version: <1.1> # - ############################################################################################################################ - - - Feature:Auth_Accept - - @authentication-procedure @Auth_Accept @TS_24_301 @24_301_5_4_2_1 @24_301_5_4_2_3 @33_401_6_1_1 @Series-0004 - - Scenario: UE receives an AUTHENTICATION REQUEST message. UE responds with a correct AUTHENTICATION RESPONSE message and establishes correct - EPS security context. - - Given all configured endpoints for SSH are connected successfully - - Given the steps below will be executed at the end - When I stop S1AP simulator on node ABOT - When I run the SSH command "sudo service mme_gw restart" on node MME - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Then the ending steps are complete - - # Set ABOT configuration - Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=false" on node ABOT - - # Execute ABOT S1AP Simulator - When I run S1AP simulator on node ABOT with 1 UE - - # Wait for execution to complete before checking results - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - - # Validate Test Case Execution at Simulator - Then I receive S1AP response on node ABOT and verify the presence of all the following values: - | responseResult | existence | - | Send Attach Request message with GUTI | {string:nocase:present} | - | Received Identity Request message | {string:nocase:present} | - | Identification requested type = IMSI | {string:nocase:present} | - | Send Identity Response message | {string:nocase:present} | - | Received Authentication Request message | {string:nocase:present} | - | Send Authentication Response message | {string:nocase:present} | - | Received Security Mode Command message | {string:nocase:present} | - | Send Security Mode Complete message | {string:nocase:present} | - | Received Attach Accept message | {string:nocase:present} | - - - diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_GUTIattach_AuthReject_re_Auth.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_GUTIattach_AuthReject_re_Auth.feature deleted file mode 100644 index fa0d37643..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_GUTIattach_AuthReject_re_Auth.feature +++ /dev/null @@ -1,47 +0,0 @@ - ############################################################################################################################ - # Date: <22/11/2016> Version: <1.1> # - ############################################################################################################################ - - - Feature:Auth_NotAccept_by_Network_GUTIattach_AuthReject_re_Auth - - @authentication-procedure @Auth_NotAccept_by_Network_GUTIattach_AuthReject_re_Auth @TS_24_301 @24_301_5_3_3 @24_301_5_5_1_2_2 @24_301_5_5_1_2_4 @24_301_6_5_1_2 @24_301_9_9_3_33 @TS_36_304 @36_304_4_3 @negTCs @Series-0001 - - Scenario: Authentication not accepted by the network when attach with GUTI, Authentication reject when RES is different from UE and MME. IMSI given by the UE during the identification procedure is same from the IMSI the network had associated with the GUTI. - - Given all configured endpoints for SSH are connected successfully - - Given the steps below will be executed at the end - When I stop S1AP simulator on node ABOT - When I run the SSH command "sudo service mme_gw restart" on node MME - #RES is restored to 0x00 in teardown process - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.RES=0x00" on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Then the ending steps are complete - - # set ABOT configuration - Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=false" on node ABOT - # set the value of RES parameter (other than 0x00) manually in Authentication Response message which is sent from UE to MME - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.RES=0xFF" on node ABOT - - - # Execute ABOT S1AP Simulator - When I run S1AP simulator on node ABOT with 1 UE - - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - - # Validate Test Case Execution at Simulator - Then I receive S1AP response on node ABOT and verify the presence of all the following values: - | responseResult | existence | - | Send Attach Request message with GUTI | {string:nocase:present} | - | Received Identity Request message | {string:nocase:present} | - | Identification requested type = IMSI | {string:nocase:present} | - | Send Identity Response message | {string:nocase:present} | - | Received Authentication Request message | {string:nocase:present} | - | Send Authentication Response message | {string:nocase:present} | - | Received Authentication Reject message | {string:nocase:present} | - | Authentication not accepted by the network | {string:nocase:present} | - diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_GUTIattach_IMSIdiff_AuthReject_re_Auth.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_GUTIattach_IMSIdiff_AuthReject_re_Auth.feature deleted file mode 100644 index 4c00c8787..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_GUTIattach_IMSIdiff_AuthReject_re_Auth.feature +++ /dev/null @@ -1,38 +0,0 @@ - ############################################################################################################################ - # Date: <22/11/2016> Version: <1.1> # - ############################################################################################################################ - - Feature:Auth_NotAccept_by_Network_GUTIattach_IMSIdiff_AuthReject_re_Auth - - @authentication-procedure @Auth_NotAccept_by_Network_GUTIattach_IMSIdiff_AuthReject_re_Auth @TS_24_301 @24_301_5_3_3 @24_301_5_5_1_2_2 @24_301_5_5_1_2_4 @24_301_6_5_1_2 @24_301_9_9_3_33 @TS_36_304 @36_304_4_3 @negTCs @Series-0001 - - Scenario: Authentication not accepted by the network when attach with GUTI, Authentication reject when RES is different from UE and MME. IMSI given by the UE during the identification procedure differs from the IMSI the network had associated with the GUTI - - Given all configured endpoints for SSH are connected successfully - - Given the steps below will be executed at the end - When I stop S1AP simulator on node ABOT - When I run the SSH command "sudo service mme_gw restart" on node MME - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.RES=0x00" on node ABOT - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.WRONGIMSI=false" on node ABOT - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Then the ending steps are complete - - # set ABOT configuration - Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=false" on node ABOT - # set the value of RES parameter (other than 0x00) manually in Authentication Response message which is sent from UE to MME - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.RES=0xFF" on node ABOT - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.WRONGIMSI=true" on node ABOT - - # Execute ABOT S1AP Simulator - When I run S1AP simulator on node ABOT with 1 UE - - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - - # Validate Test Case Execution at Simulator - Then I receive S1AP response on node ABOT and verify the presence of all the following values: - | responseResult | existence | - | Send Attach Request message with GUTI | {string:nocase:present} | - | Received Authentication Request message | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_IMSIattach_AuthReject_re_Auth.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_IMSIattach_AuthReject_re_Auth.feature deleted file mode 100644 index cce93f426..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_Network_IMSIattach_AuthReject_re_Auth.feature +++ /dev/null @@ -1,62 +0,0 @@ - ############################################################################################################################ - # Date: <22/11/2016> Version: <1.1> # - ############################################################################################################################ - - Feature:Auth_NotAccept_by_Network_IMSIattach_AuthReject_re_Auth - - @authentication-procedure @Auth_NotAccept_by_Network_IMSIattach_AuthReject_re_Auth @TS_24_301 @24_301_5_3_3 @24_301_5_5_1_2_2 @24_301_5_5_1_2_4 @24_301_6_5_1_2 @24_301_9_9_3_33 @TS_36_304 @36_304_4_3 @negTCs @Series-0001 - - Scenario: Authentication not accepted by the network when attach with IMSI, Authentication reject when RES is different from UE and MME - - Given all configured endpoints for SSH are connected successfully - - Given the steps below will be executed at the end - When I stop S1AP simulator on node ABOT - When I run the SSH command "sudo service mme_gw restart" on node MME - #RES is restore to 0x00 in teardown process - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.RES=0x00" on node ABOT - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Then the ending steps are complete - - # set ABOT configuration - Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - # set the value of RES parameter (other than 0x00) manually in Authentication Response message which is sent from UE to MME - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.RES=0xFF" on node ABOT - - # Execute ABOT S1AP Simulator - When I run S1AP simulator on node ABOT with 1 UE - - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - - # Validate Test Case Execution at Simulator - Then I receive S1AP response on node ABOT and verify the presence of all the following values: - | responseResult | existence | - | Send Attach Request message with IMSI | {string:nocase:present} | - | Received Authentication Request message | {string:nocase:present} | - | Send Authentication Response message | {string:nocase:present} | - | Received Authentication Reject message | {string:nocase:present} | - | Authentication not accepted by the network | {string:nocase:present} | - - - - - - - - - - - - - - - - - - - - - - diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_GUTIattach_MAC_code_failure.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_GUTIattach_MAC_code_failure.feature deleted file mode 100644 index ca5b281f4..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_GUTIattach_MAC_code_failure.feature +++ /dev/null @@ -1,45 +0,0 @@ - ############################################################################################################################ - # Date: <13/12/2016> Version: <1.1> # - ############################################################################################################################ - - Feature:Auth_NotAccept_by_UE_GUTIattachMAC_code_failure - - @authentication-procedure @Auth_NotAccept_by_UE_GUTIattach_MAC_code_failure @TS_24_301 @24_301_5_4_2_6 @24_301_5_4_2_7 @negTCs @Series-0002 - - Scenario: UE received invalid MAC code in AUTN parameter in the AUTHENTICATION REQUEST message. Authentication not accepted by the UE when attach with GUTI. UE responds the Authentication failure message with EMM cause (reject cause) #20 "MAC failure". - - Given all configured endpoints for SSH are connected successfully - - Given the steps below will be executed at the end - When I stop S1AP simulator on node ABOT - When I run the SSH command "sudo service mme_gw restart" on node MME - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.USIM_API_K=\"8BAF473F2F8FD09487CCCBD7097C6862\"" on node ABOT - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Then the ending steps are complete - - # set ABOT configuration - Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=false" on node ABOT - - # CORRECT K_VALUE is 8BAF473F2F8FD09487CCCBD7097C6862 WRONG K_VALUE fec86ba6eb707ed08905757b1bb44b8f - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.USIM_API_K=\"fec86ba6eb707ed08905757b1bb44b8f\"" on node ABOT - - # Execute ABOT S1AP Simulator - When I run S1AP simulator on node ABOT with 1 UE - - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - - # Validate Test Case Execution at Simulator - Then I receive S1AP response on node ABOT and verify the presence of all the following values: - | responseResult | existence | - | Send Attach Request message with GUTI | {string:nocase:present} | - | Received Identity Request message | {string:nocase:present} | - | Identification requested type = IMSI | {string:nocase:present} | - | Send Identity Response message | {string:nocase:present} | - | Received Authentication Request message | {string:nocase:present} | - | Send Authentication Failure message (cause=20) | {string:nocase:present} | - | Received Authentication Reject message | {string:nocase:present} | - | Authentication not accepted by the network | {string:nocase:present} | - diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_IMSIattach_MAC_code_failure.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_IMSIattach_MAC_code_failure.feature deleted file mode 100644 index 2b8cf401c..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_IMSIattach_MAC_code_failure.feature +++ /dev/null @@ -1,42 +0,0 @@ - ############################################################################################################################ - # Date: <13/12/2016> Version: <1.1> # - ############################################################################################################################ - - Feature:Auth_NotAccept_by_UE_IMSIattach_MAC_code_failure - - @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 - - 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". - - Given all configured endpoints for SSH are connected successfully - - Given the steps below will be executed at the end - When I stop S1AP simulator on node ABOT - When I run the SSH command "sudo service mme_gw restart" on node MME - # WRONGIMSI is restored to false in teardown process - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.USIM_API_K_VALUE=\"8BAF473F2F8FD09487CCCBD7097C6862\"" on node ABOT - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Then the ending steps are complete - - # set ABOT configuration - Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - - # CORRECT K_VALUE is 8BAF473F2F8FD09487CCCBD7097C6862 WRONG K_VALUE fec86ba6eb707ed08905757b1bb44b8f - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.USIM_API_K=\"fec86ba6eb707ed08905757b1bb44b8f\"" on node ABOT - - # Execute ABOT S1AP Simulator - When I run S1AP simulator on node ABOT with 1 UE - - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - - # Validate Test Case Execution at Simulator - Then I receive S1AP response on node ABOT and verify the presence of all the following values: - | responseResult | existence | - | Send Attach Request message with IMSI | {string:nocase:present} | - | Received Authentication Request message | {string:nocase:present} | - | Send Authentication Failure message (cause=20) | {string:nocase:present} | - | Received Authentication Reject message | {string:nocase:present} | - | Authentication not accepted by the network | {string:nocase:present} | - diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_SQN_failure.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_SQN_failure.feature deleted file mode 100644 index ff2a2e20e..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_SQN_failure.feature +++ /dev/null @@ -1,46 +0,0 @@ - ############################################################################################################################ - # Date: <13/01/2017> Version: <1.1> # - ############################################################################################################################ - - - Feature:Auth_NotAccept_by_UE_SQN_failure - - @authentication-procedure @Auth_NotAccept_by_UE_SQN_failure @TS_24_301 @24_301_5_4_2_6 @24_301_5_4_2_7 @negTCs @Series-0004 - - Scenario: UE receives an AUTHENTICATION REQUEST message with SQN out of range. UE sends an AUTHENTICATION FAILURE message to the network, with EMM cause "synch failure" and a re-synchronization token. Now UE receives a new correct AUTHENTICATION REQUEST message while T3420 is running. Finally UE sends a correct AUTHENTICATION RESPONSE message. - - Given all configured endpoints for SSH are connected successfully - - Given the steps below will be executed at the end - When I stop S1AP simulator on node ABOT - When I run the SSH command "sudo service mme_gw restart" on node MME - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.SYNC_FAILURE=false" on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Then the ending steps are complete - - # set ABOT configuration - Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.SYNC_FAILURE=true" on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=false" on node ABOT - - # Execute ABOT S1AP Simulator - When I run S1AP simulator on node ABOT with 1 UE - - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - - # Validate Test Case Execution at Simulator - Then I receive S1AP response on node ABOT and verify the presence of all the following values: - | responseResult | existence | - | Send Attach Request message with GUTI | {string:nocase:present} | - | Received Identity Request message | {string:nocase:present} | - | Identification requested type = IMSI | {string:nocase:present} | - | Send Identity Response message | {string:nocase:present} | - | Received Authentication Request message | {string:nocase:present} | - | Send Authentication Failure message (cause=21) | {string:nocase:present} | - | Received Authentication Request message | {string:nocase:present} | - | Send Authentication Response message | {string:nocase:present} | - | Received Security Mode Command message | {string:nocase:present} | - | Send Security Mode Complete message | {string:nocase:present} | - | Received Attach Accept message | {string:nocase:present} | diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_non_EPS_AuthUnaccpt.feature b/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_non_EPS_AuthUnaccpt.feature deleted file mode 100644 index 372e6b793..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/Auth_NotAccept_by_UE_non_EPS_AuthUnaccpt.feature +++ /dev/null @@ -1,45 +0,0 @@ - ############################################################################################################################ - # Date: <13/01/2017> Version: <1.1> # - ############################################################################################################################ - - - Feature:Auth_NotAccept_by_UE_non_EPS_AuthUnaccpt - - @authentication-procedure @Auth_NotAccept_by_UE_non_EPS_AuthUnaccpt @TS_24_301 @24_301_5_4_2_6 @24_301_5_4_2_7 @negTCs @Series-0004 @SS_changesReqd - - Scenario: UE receives an AUTHENTICATION REQUEST message with "separation bit" in the AMF field is 0. UE shall send an AUTHENTICATION FAILURE message to the network, with the reject cause #26 "non-EPS authentication unacceptable" - - # AuC system changes required. HSS should send Authentication request message with AMF=AMF_RESYNCH amf = {0xff 0xff} - # file name kdf.c line no: 156 uint8_t amf[] = { 0xFF, 0xFF }; - - Given all configured endpoints for SSH are connected successfully - - Given the steps below will be executed at the end - When I stop S1AP simulator on node ABOT - When I run the SSH command "sudo service mme_gw restart" on node MME - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.SYNC_FAILURE=false" on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=true" on node ABOT - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Then the ending steps are complete - - # set ABOT configuration - Given that I setup S1AP Simulator with default parameters specified in {abotprop.ABOT.EPC.Defaults} on node ABOT - Given that I setup S1AP Simulator with UE parameter "ABOT.UE.CONFIG.SECURITY.SYNC_FAILURE=true" on node ABOT - Given that I setup S1AP Simulator with USIM parameter "ABOT.UE.USIM.AttachWithImsi=false" on node ABOT - - # Execute ABOT S1AP Simulator - When I run S1AP simulator on node ABOT with 1 UE - - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - Given the execution is paused for {abotprop.WAIT_10_SEC} seconds - - # Validate Test Case Execution at Simulator - Then I receive S1AP response on node ABOT and verify the presence of all the following values: - | responseResult | existence | - | Send Attach Request message with GUTI | {string:nocase:present} | - | Received Identity Request message | {string:nocase:present} | - | Identification requested type = IMSI | {string:nocase:present} | - | Send Identity Response message | {string:nocase:present} | - | Received Authentication Request message | {string:nocase:present} | - | Send Authentication Failure message (cause=26) | {string:nocase:present} | - diff --git a/functest/opnfv_tests/vnf/epc/featureFiles/ResourceBundle.xml b/functest/opnfv_tests/vnf/epc/featureFiles/ResourceBundle.xml deleted file mode 100644 index 642972209..000000000 --- a/functest/opnfv_tests/vnf/epc/featureFiles/ResourceBundle.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/functest/opnfv_tests/vnf/epc/juju_epc.py b/functest/opnfv_tests/vnf/epc/juju_epc.py deleted file mode 100644 index 1cf240b80..000000000 --- a/functest/opnfv_tests/vnf/epc/juju_epc.py +++ /dev/null @@ -1,483 +0,0 @@ -#!/usr/bin/env python - -# Copyright (c) 2016 Rebaca and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -"""Juju testcase implementation.""" - -import errno -import logging -import os -import time -import json -import re -import sys - -from copy import deepcopy -import pkg_resources -import scp - -from functest.core import singlevm -from functest.utils import config -from functest.utils import env -from functest.utils import functest_utils - -__author__ = "Amarendra Meher " -__author__ = "Soumaya K Nayek " - -CLOUD_TEMPLATE = """clouds: - abot-epc: - type: openstack - auth-types: [userpass] - endpoint: {url} - regions: - {region}: - endpoint: {url}""" - -CREDS_TEMPLATE2 = """credentials: - abot-epc: - default-credential: abot-epc - abot-epc: - auth-type: userpass - password: '{pass}' - project-domain-name: {project_domain_n} - tenant-name: {tenant_n}""" - -CREDS_TEMPLATE = """credentials: - abot-epc: - default-credential: abot-epc - abot-epc: - auth-type: userpass - password: '{pass}' - project-domain-name: {project_domain_n} - tenant-name: {tenant_n} - user-domain-name: {user_domain_n} - username: {user_n}""" - - -class JujuEpc(singlevm.SingleVm2): - # pylint:disable=too-many-instance-attributes - """Abot EPC deployed with JUJU Orchestrator Case""" - - __logger = logging.getLogger(__name__) - - cidr = '192.168.120.0/24' - - filename = ('/home/opnfv/functest/images/' - 'ubuntu-16.04-server-cloudimg-amd64-disk1.img') - filename_alt = ('/home/opnfv/functest/images/' - 'ubuntu-14.04-server-cloudimg-amd64-disk1.img') - - flavor_ram = 2048 - flavor_vcpus = 1 - flavor_disk = 10 - flavor_alt_ram = 4096 - flavor_alt_vcpus = 1 - flavor_alt_disk = 10 - username = 'ubuntu' - juju_timeout = '4800' - - def __init__(self, **kwargs): - if "case_name" not in kwargs: - kwargs["case_name"] = "juju_epc" - super().__init__(**kwargs) - - # Retrieve the configuration - self.case_dir = pkg_resources.resource_filename( - 'functest', 'opnfv_tests/vnf/epc') - try: - self.config = getattr( - config.CONF, f'vnf_{self.case_name}_config') - except Exception as exc: - raise Exception("VNF config file not found") from exc - self.config_file = os.path.join(self.case_dir, self.config) - self.orchestrator = dict( - requirements=functest_utils.get_parameter_from_yaml( - "orchestrator.requirements", self.config_file)) - - self.created_object = [] - self.details['orchestrator'] = dict( - name=functest_utils.get_parameter_from_yaml( - "orchestrator.name", self.config_file), - version=functest_utils.get_parameter_from_yaml( - "orchestrator.version", self.config_file), - status='ERROR', - result='' - ) - - self.vnf = dict( - descriptor=functest_utils.get_parameter_from_yaml( - "vnf.descriptor", self.config_file), - requirements=functest_utils.get_parameter_from_yaml( - "vnf.requirements", self.config_file) - ) - self.details['vnf'] = dict( - descriptor_version=self.vnf['descriptor']['version'], - name=functest_utils.get_parameter_from_yaml( - "vnf.name", self.config_file), - version=functest_utils.get_parameter_from_yaml( - "vnf.version", self.config_file), - ) - self.__logger.debug("VNF configuration: %s", self.vnf) - - self.details['test_vnf'] = dict( - name=functest_utils.get_parameter_from_yaml( - "vnf_test_suite.name", self.config_file), - version=functest_utils.get_parameter_from_yaml( - "vnf_test_suite.version", self.config_file), - tag_name=functest_utils.get_parameter_from_yaml( - "vnf_test_suite.tag_name", self.config_file) - ) - - self.res_dir = os.path.join( - getattr(config.CONF, 'dir_results'), self.case_name) - - try: - self.public_auth_url = self.get_public_auth_url(self.orig_cloud) - if not self.public_auth_url.endswith(('v3', 'v3/')): - self.public_auth_url = f"{self.public_auth_url}/v3" - except Exception: # pylint: disable=broad-except - self.public_auth_url = None - self.sec = None - self.image_alt = None - self.flavor_alt = None - - def _install_juju(self): - (_, stdout, stderr) = self.ssh.exec_command( - 'sudo snap install juju --channel=2.3/stable --classic') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - return not stdout.channel.recv_exit_status() - - def _install_juju_wait(self): - (_, stdout, stderr) = self.ssh.exec_command( - 'sudo apt-get update && sudo apt-get install python3-pip -y && ' - 'sudo pip3 install juju_wait===2.6.4') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - return not stdout.channel.recv_exit_status() - - def _register_cloud(self): - assert self.public_auth_url - self.__logger.info("Creating Cloud for Abot-epc .....") - clouds_yaml = os.path.join(self.res_dir, "clouds.yaml") - cloud_data = { - 'url': self.public_auth_url, - 'region': self.cloud.region_name if self.cloud.region_name else ( - 'RegionOne')} - with open(clouds_yaml, 'w', encoding='utf-8') as yfile: - yfile.write(CLOUD_TEMPLATE.format(**cloud_data)) - scpc = scp.SCPClient(self.ssh.get_transport()) - scpc.put(clouds_yaml, remote_path='~/') - (_, stdout, stderr) = self.ssh.exec_command( - '/snap/bin/juju add-cloud abot-epc -f clouds.yaml --replace') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - return not stdout.channel.recv_exit_status() - - def _register_credentials(self): - self.__logger.info("Creating Credentials for Abot-epc .....") - credentials_yaml = os.path.join(self.res_dir, "credentials.yaml") - creds_data = { - 'pass': self.project.password, - 'tenant_n': self.project.project.name, - 'user_n': self.project.user.name, - 'project_domain_n': self.cloud.auth.get( - "project_domain_name", "Default"), - 'user_domain_n': self.cloud.auth.get( - "user_domain_name", "Default")} - with open(credentials_yaml, 'w', encoding='utf-8') as yfile: - yfile.write(CREDS_TEMPLATE.format(**creds_data)) - scpc = scp.SCPClient(self.ssh.get_transport()) - scpc.put(credentials_yaml, remote_path='~/') - (_, stdout, stderr) = self.ssh.exec_command( - '/snap/bin/juju add-credential abot-epc -f credentials.yaml ' - ' --replace --debug') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - return not stdout.channel.recv_exit_status() - - def _publish_image(self): - region_name = self.cloud.region_name if self.cloud.region_name else ( - 'RegionOne') - (_, stdout, stderr) = self.ssh.exec_command( - '/snap/bin/juju metadata generate-image -d /home/ubuntu ' - f'-i {self.image.id} -s xenial -r {region_name} ' - f'-u {self.public_auth_url}') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - return not stdout.channel.recv_exit_status() - - def publish_image_alt(self, name=None): - image_alt = super().publish_image_alt(name) - region_name = self.cloud.region_name if self.cloud.region_name else ( - 'RegionOne') - (_, stdout, stderr) = self.ssh.exec_command( - '/snap/bin/juju metadata generate-image -d /home/ubuntu ' - f'-i {image_alt.id} -s trusty -r {region_name} ' - f'-u {self.public_auth_url}') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - return image_alt - - def deploy_orchestrator(self): # pylint: disable=too-many-locals - """ - Create network, subnet, router - - Bootstrap juju - """ - self._publish_image() - self.image_alt = self.publish_image_alt() - self.flavor_alt = self.create_flavor_alt() - self.__logger.info("Starting Juju Bootstrap process...") - region_name = self.cloud.region_name if self.cloud.region_name else ( - 'RegionOne') - (_, stdout, stderr) = self.ssh.exec_command( - f'timeout {JujuEpc.juju_timeout} ' - f'/snap/bin/juju bootstrap abot-epc/{region_name} abot-controller ' - '--agent-version 2.3.9 --metadata-source /home/ubuntu ' - '--constraints mem=2G --bootstrap-series xenial ' - f'--config network={self.network.id} ' - '--config ssl-hostname-verification=false ' - f'--config external-network={self.ext_net.id} ' - '--config use-floating-ip=true ' - '--config use-default-secgroup=true ' - '--debug') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - return not stdout.channel.recv_exit_status() - - def check_app(self, name='abot-epc-basic', status='active'): - """Check application status.""" - for i in range(10): - (_, stdout, stderr) = self.ssh.exec_command( - f'/snap/bin/juju status --format short {name}') - output = stdout.read().decode("utf-8") - self.__logger.debug("stdout:\n%s", output) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - if stdout.channel.recv_exit_status(): - continue - ret = re.search( - rf'(?=workload:({status})\))', output) - if ret: - self.__logger.info("%s workload is %s", name, status) - break - self.__logger.info( - "loop %d: %s workload differs from %s", i + 1, name, status) - time.sleep(60) - else: - self.__logger.error("%s workload differs from %s", name, status) - return False - return True - - def deploy_vnf(self): - """Deploy ABOT-OAI-EPC.""" - self.__logger.info("Upload VNFD") - scpc = scp.SCPClient(self.ssh.get_transport()) - scpc.put( - '/src/epc-requirements/abot_charm', remote_path='~/', - recursive=True) - self.__logger.info("Deploying Abot-epc bundle file ...") - (_, stdout, stderr) = self.ssh.exec_command( - 'sudo mkdir -p /src/epc-requirements && ' - 'sudo mv abot_charm /src/epc-requirements/abot_charm && ' - '/snap/bin/juju deploy ' - '/src/epc-requirements/abot_charm/functest-abot-epc-bundle/' - 'bundle.yaml') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - if stdout.channel.recv_exit_status(): - return not stdout.channel.recv_exit_status() - (_, stdout, stderr) = self.ssh.exec_command( - 'PATH=/snap/bin/:$PATH ' - f'timeout {JujuEpc.juju_timeout} juju-wait') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - if stdout.channel.recv_exit_status(): - return not stdout.channel.recv_exit_status() - self.__logger.info("Checking status of ABot and EPC units ...") - (_, stdout, stderr) = self.ssh.exec_command('/snap/bin/juju status') - output = stdout.read().decode("utf-8") - self.__logger.debug("stdout:\n%s", output) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - if stdout.channel.recv_exit_status(): - return not stdout.channel.recv_exit_status() - for app in ['abot-epc-basic', 'oai-epc', 'oai-hss']: - if not self.check_app(app): - return False - scpc = scp.SCPClient(self.ssh.get_transport()) - scpc.put( - f'{self.case_dir}/featureFiles', remote_path='~/', - recursive=True) - (_, stdout, stderr) = self.ssh.exec_command( - f'timeout {JujuEpc.juju_timeout} /snap/bin/juju scp -- -r -v ' - '~/featureFiles abot-epc-basic/0:/etc/rebaca-test-suite/') - output = stdout.read().decode("utf-8") - self.__logger.debug("stdout:\n%s", output) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - return not stdout.channel.recv_exit_status() - - def test_vnf(self): - """Run test on ABoT.""" - start_time = time.time() - (_, stdout, stderr) = self.ssh.exec_command( - "/snap/bin/juju run-action abot-epc-basic/0 " - f"run tagnames={self.details['test_vnf']['tag_name']}") - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - if stdout.channel.recv_exit_status(): - return not stdout.channel.recv_exit_status() - (_, stdout, stderr) = self.ssh.exec_command( - 'PATH=/snap/bin/:$PATH ' - f'timeout {JujuEpc.juju_timeout} juju-wait') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - if stdout.channel.recv_exit_status(): - return not stdout.channel.recv_exit_status() - duration = time.time() - start_time - self.__logger.info("Getting results from Abot node....") - (_, stdout, stderr) = self.ssh.exec_command( - f'timeout {JujuEpc.juju_timeout} /snap/bin/juju scp ' - '-- -v abot-epc-basic/0:' - '/var/lib/abot-epc-basic/artifacts/TestResults.json .') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - if stdout.channel.recv_exit_status(): - return not stdout.channel.recv_exit_status() - scpc = scp.SCPClient(self.ssh.get_transport()) - scpc.get('TestResults.json', self.res_dir) - self.__logger.info("Parsing the Test results...") - res = process_abot_test_result(f'{self.res_dir}/TestResults.json') - short_result = sig_test_format(res) - self.__logger.info(short_result) - self.details['test_vnf'].update( - status='PASS', result=short_result, full_result=res, - duration=duration) - self.__logger.info( - "Test VNF result: Passed: %d, Failed:%d, Skipped: %d", - short_result['passed'], - short_result['failures'], short_result['skipped']) - return True - - def execute(self): - """Prepare testcase (Additional pre-configuration steps).""" - assert self.public_auth_url - self.__logger.info("Additional pre-configuration steps") - try: - os.makedirs(self.res_dir) - except OSError as ex: - if ex.errno != errno.EEXIST: - self.__logger.exception("Cannot create %s", self.res_dir) - raise Exception from ex - self.__logger.info("ENV:\n%s", env.string()) - try: - assert self._install_juju() - assert self._install_juju_wait() - assert self._register_cloud() - assert self._register_credentials() - assert self.deploy_orchestrator() - assert self.deploy_vnf() - assert self.test_vnf() - except Exception: # pylint: disable=broad-except - self.__logger.exception("juju_epc failed") - return 1 - return 0 - - def clean(self): - """Clean created objects/functions.""" - (_, stdout, stderr) = self.ssh.exec_command( - '/snap/bin/juju debug-log --replay --no-tail') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - (_, stdout, stderr) = self.ssh.exec_command( - '/snap/bin/juju destroy-controller -y abot-controller ' - '--destroy-all-models') - self.__logger.debug("stdout:\n%s", stdout.read().decode("utf-8")) - self.__logger.debug("stderr:\n%s", stderr.read().decode("utf-8")) - for fip in self.cloud.list_floating_ips(): - self.cloud.delete_floating_ip(fip.id) - if self.image_alt: - self.cloud.delete_image(self.image_alt) - if self.flavor_alt: - self.orig_cloud.delete_flavor(self.flavor_alt.id) - super().clean() - - -def sig_test_format(sig_test): - """ - Process the signaling result to have a short result - """ - nb_passed = 0 - nb_failures = 0 - nb_skipped = 0 - for data_test in sig_test: - if data_test['result'] == "passed": - nb_passed += 1 - elif data_test['result'] == "failed": - nb_failures += 1 - elif data_test['result'] == "skipped": - nb_skipped += 1 - total_sig_test_result = {} - total_sig_test_result['passed'] = nb_passed - total_sig_test_result['failures'] = nb_failures - total_sig_test_result['skipped'] = nb_skipped - return total_sig_test_result - - -def process_abot_test_result(file_path): - """ Process ABoT Result """ - with open(file_path, encoding='utf-8') as test_result: - data = json.load(test_result) - res = [] - for tests in data: - tests = update_data(tests) - try: - flatten_steps = tests['elements'][0].pop('flatten_steps') - for steps in flatten_steps: - steps['result'] = steps['step_status'] - res.append(steps) - except Exception: # pylint: disable=broad-except - logging.error("Could not post data to ElasticSearch host") - raise - return res - - -def update_data(obj): - """ Update Result data""" - try: - obj['feature_file'] = os.path.splitext(os.path.basename(obj['uri']))[0] - - for element in obj['elements']: - element['final_result'] = "passed" - element['flatten_steps'] = [] - - for step in element['steps']: - temp_dict = {} - step['result'][step['result']['status']] = 1 - if step['result']['status'].lower() in ['fail', 'failed']: - element['final_result'] = "failed" - - temp_dict['feature_file'] = obj['feature_file'] - temp_dict['step_name'] = step['name'] - temp_dict['step_status'] = step['result']['status'] - temp_dict['step_duration'] = step['result'].get('duration', 0) - temp_dict['step_' + step['result']['status']] = 1 - element['flatten_steps'].append(deepcopy(temp_dict)) - - # Need to put the tag in OBJ and not ELEMENT - if 'tags' in obj: - element['tags'] = deepcopy(obj['tags']) - for tag in obj['tags']: - element[tag['name']] = 1 - else: - for tag in element['tags']: - element[tag['name']] = 1 - - except Exception: # pylint: disable=broad-except - logging.error("Error in updating data, %s", sys.exc_info()[0]) - raise - - return obj diff --git a/functest/opnfv_tests/vnf/epc/juju_epc.yaml b/functest/opnfv_tests/vnf/epc/juju_epc.yaml deleted file mode 100644 index 67f3224f8..000000000 --- a/functest/opnfv_tests/vnf/epc/juju_epc.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -tenant_images: - trusty: - /home/opnfv/functest/images/ubuntu-14.04-server-cloudimg-amd64-disk1.img - xenial: - /home/opnfv/functest/images/ubuntu-16.04-server-cloudimg-amd64-disk1.img - -orchestrator: - name: juju - version: '2.0' - requirements: - dep_package: 'software-properties-common' - flavor: - name: m1.small.juju - ram_min: 2048 - preserve_setup: false -vnf: - name: juju_epc - version: '1' - descriptor: - name: abot-oai-epc - file_name: - /src/epc-requirements/abot_charm/functest-abot-epc-bundle/bundle.yaml - version: '1' - requirements: - flavor: - name: m1.medium.juju - ram_min: 4096 -vnf_test_suite: - name: abot-epc-basic - version: "3.1.0" - tag_name: "TS_24_301" diff --git a/functest/tests/unit/vnf/epc/__init__.py b/functest/tests/unit/vnf/epc/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/functest/tests/unit/vnf/epc/test_juju_epc.py b/functest/tests/unit/vnf/epc/test_juju_epc.py deleted file mode 100644 index a72c61586..000000000 --- a/functest/tests/unit/vnf/epc/test_juju_epc.py +++ /dev/null @@ -1,78 +0,0 @@ -#!/usr/bin/env python - -# Copyright (c) 2017 Rebaca and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 - -""" Unit test testcase for JuJu EPC Implementation""" - -import logging -import unittest - -import mock - -from functest.opnfv_tests.vnf.epc import juju_epc - - -class JujuEpcTesting(unittest.TestCase): - # pylint: disable=missing-docstring - """Unittest for ABoT EPC with juju orchestrator""" - - def setUp(self): - - self.tenant = 'juju_epc' - self.creds = {'username': 'user', - 'password': 'pwd'} - self.orchestrator = {'name': 'juju', - 'version': '2.0', - 'object': 'foo', - 'requirements': {'flavor': {'name': 'm1.small', - 'ram_min': 2048}, - 'pip': 'python3-pip', - 'repo_link': 'ppa:juju/stable', - 'dep_package': 'software-' - 'properties' - '-common', - 'pip3_packages': 'juju-wait'}} - self.vnf = {'name': 'juju_epc', - 'descriptor': {'version': '1', - 'file_name': '/src/epc-test/' - 'abot_charm/' - 'functest-abot-' - 'epc-bundle/bundle.yaml', - 'name': 'abot-oai-epc', - 'requirements': {'flavor': - {'name': 'm1.medium', - 'ram_min': 4096}}}} - with mock.patch('functest.opnfv_tests.vnf.epc.juju_epc.os.makedirs'), \ - mock.patch('functest.opnfv_tests.vnf.epc.juju_epc.get_config', - return_value={'tenant_images': 'foo', - 'orchestrator': self.orchestrator, - 'vnf': self.vnf, 'vnf_test_suite': '', - 'version': 'whatever'}): - self.epc_vnf = juju_epc.JujuEpc() - - self.images = {'image1': 'url1', - 'image2': 'url2'} - self.details = {'orchestrator': {'status': 'PASS', 'duration': 120}, - 'vnf': {}, - 'test_vnf': {}} - - @unittest.skip("It must be fixed. Please see JIRA FUNCTEST-915") - @mock.patch('os.system') - def test_prepare_default(self, *args): - """ Unittest for Prepare testcase """ - self.epc_vnf.orchestrator = self.orchestrator - self.assertIsNone(self.epc_vnf.prepare()) - args[4].assert_called_once_with('test', - 'debayan', - 'OAI EPC deployed ' - 'with Juju') - - -if __name__ == "__main__": - logging.disable(logging.CRITICAL) - unittest.main(verbosity=2) -- 2.16.6