Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lte][agw] Support to test pco option ipcp (#4767)
* Added support to send pco option ipcp Signed-off-by: Pruthvi Hebbani <pruthvi.hebbani@radisys.com>
- Loading branch information
1 parent
32df459
commit 0703ad4
Showing
4 changed files
with
101 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_pco_ipcp.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
""" | ||
Copyright 2020 The Magma Authors. | ||
This source code is licensed under the BSD-style license found in the | ||
LICENSE file in the root directory of this source tree. | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
""" | ||
|
||
import unittest | ||
|
||
import s1ap_types | ||
|
||
from integ_tests.s1aptests import s1ap_wrapper | ||
|
||
|
||
class TestAttachDetachWithPcoIpcp(unittest.TestCase): | ||
def setUp(self): | ||
self._s1ap_wrapper = s1ap_wrapper.TestWrapper() | ||
|
||
def tearDown(self): | ||
self._s1ap_wrapper.cleanup() | ||
|
||
def test_attach_detach_with_pco_ipcp(self): | ||
""" Test case to test PCO option IPCP during attach""" | ||
num_ues = 1 | ||
self._s1ap_wrapper.configUEDevice(num_ues) | ||
req = self._s1ap_wrapper.ue_req | ||
|
||
print( | ||
"************************* Running End to End attach for ", | ||
"UE id ", | ||
req.ue_id, | ||
) | ||
# Now actually complete the attach | ||
self._s1ap_wrapper._s1_util.attach( | ||
req.ue_id, | ||
s1ap_types.tfwCmd.UE_END_TO_END_ATTACH_REQUEST, | ||
s1ap_types.tfwCmd.UE_ATTACH_ACCEPT_IND, | ||
s1ap_types.ueAttachAccept_t, | ||
ipcp=True, | ||
) | ||
|
||
# Wait on EMM Information from MME | ||
self._s1ap_wrapper._s1_util.receive_emm_info() | ||
print( | ||
"************************* Running UE detach for UE id ", | ||
req.ue_id, | ||
) | ||
# Now detach the UE | ||
self._s1ap_wrapper.s1_util.detach( | ||
req.ue_id, s1ap_types.ueDetachType_t.UE_NORMAL_DETACH.value, True, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |