Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): Add federated integ test for PCRF #14200

Closed
wants to merge 4 commits into from
Closed

feat(ci): Add federated integ test for PCRF #14200

wants to merge 4 commits into from

Conversation

orion-belt
Copy link
Contributor

@orion-belt orion-belt commented Oct 17, 2022

Signed-off-by: Rohan Kharade rohan.kharade@openairinterface.org
Co-authered by: Nitin Rajput nitinrajput706021@gmail.com

Summary

This PR adds Federated Integ Test to validate PCRF Gx interface. Here we are reusing existing lte-integ-tests in fedrated mode.

Following tests are added in this PR which leverages PCRF Gx interface over federated gateway -

test_attach_dettach
test_attach_dettach_multi_ue
test_duplicate_attach.py
test_attach_detach_after_ue_context_release.py
test_attach_detach_dedicated_bearer_deactivation_invalid_imsi.py
test_attach_detach_dedicated_multi_ue.py
test_attach_detach_looped.py
test_attach_detach_secondary_pdn_invalid_apn.py
test_attach_detach_security_algo_eea0_eia0.py
test_attach_detach_security_algo_eea1_eia1.py
test_attach_detach_security_algo_eea2_eia2.py
test_attach_detach_with_mme_restart.py
test_attach_ipv4v6_pdn_type.py
test_attach_missing_imsi.py
test_attach_mme_restart_detach_multi_ue.py
test_attach_service_without_mac.py
test_no_attach_complete.py
test_no_auth_resp_with_mme_restart_reattach.py
test_no_auth_response_with_mme_restart.py
test_standalone_pdn_conn_req.py
test_standalone_pdn_conn_req_with_apn_correction.py

pcrf_test_log.txt

Test Plan

Track issue here
We are reusing some of existing and relevant tests from lte-integ-tests. The sheet attached describes the priority and relevancy of tests. Please feel free to update sheet accordingly.

Additional Information

  • This change is backwards-breaking

@orion-belt orion-belt requested a review from a team October 17, 2022 12:24
@orion-belt orion-belt requested a review from a team as a code owner October 17, 2022 12:24
@pull-request-size pull-request-size bot added the size/L Denotes a Pull Request that changes 100-499 lines. label Oct 17, 2022
@github-actions
Copy link
Contributor

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: agw Access gateway-related issue label Oct 17, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2022

Oops! Looks like you failed the DCO check. Be sure to sign all your commits.

Howto

♻️ Updated: ✅ The check is passing the DCO check after the last commit.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2022

Oops! Looks like you failed the Python Format Check.

Howto

♻️ Updated: ✅ The check is passing the Python Format Check after the last commit.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2022

feg-workflow

    2 files  203 suites   41s ⏱️
374 tests 374 ✔️ 0 💤 0
388 runs  388 ✔️ 0 💤 0

Results for commit 73d47dc.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2022

dp-workflow

14 tests   14 ✔️  3m 8s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit 73d47dc.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2022

agw-workflow

615 tests   611 ✔️  4m 35s ⏱️
    2 suites      4 💤
    2 files        0

Results for commit 73d47dc.

♻️ This comment has been updated with latest results.

@orion-belt orion-belt requested review from a team and jheidbrink October 17, 2022 14:32
@@ -0,0 +1,69 @@
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see this file used anywhere - what am I missing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, seems to have been added to s1ap_wrapper in the meantime.

self._mock_ocs_stub.CreateAccount(SubscriberID(id=imsi))


class OCSGrpc(OCSGrpcClient):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see this used anywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is for gy (OCS) tests that will be added soon

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe best introduce it together with the tests then to not mix two topics in one PR and remove it for now from this one.

@@ -229,7 +236,7 @@ def configIpBlock(self):
print("************************* Waiting for IP changes to propagate")
self._mobility_util.wait_for_changes()

def configUEDevice(self, num_ues, req_data=None, static_ips=None):
def configUEDevice(self, num_ues, req_data=None, static_ips=None, mock_pcrf=False):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between self.mock_pcrf and the argument mock_pcrf here? Is the argument actually needed?

@@ -20,7 +21,8 @@
class TestAttachDetach(unittest.TestCase):

def setUp(self):
self._s1ap_wrapper = s1ap_wrapper.TestWrapper()
self.mock_pcrf = {True if (os.environ.get("FEDERATED_MODE") == "True") else False}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The curly braces must be removed for self.mock_pcrf to become boolean. Otherwise, it will be a set and the if self.mock_pcrf check always becomes true. Please do this for all tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I think this can be simplified to

self.mock_pcrf = os.environ.get("FEDERATED_MODE") == "True"

@orion-belt orion-belt changed the title feat(ci): Add federated integ test for PCRF Draft:feat(ci): Add federated integ test for PCRF Nov 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2022

✔️ The Semantic PR check ended with status success. See instructions on formatting your commit and pull request titles.

@orion-belt orion-belt changed the title Draft:feat(ci): Add federated integ test for PCRF feat(ci): Add federated integ test for PCRF Nov 7, 2022
@orion-belt orion-belt marked this pull request as draft November 7, 2022 17:23
Signed-off-by: Nitin Rajput<nitinrajput706021@gmail.com>
Signed-off-by: kharade <rohan.kharade@openairinterface.org>
Signed-off-by: kharade <rohan.kharade@openairinterface.org>
Signed-off-by: kharade <rohan.kharade@openairinterface.org>
Signed-off-by: kharade <rohan.kharade@openairinterface.org>
@orion-belt orion-belt closed this by deleting the head repository Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: agw Access gateway-related issue size/L Denotes a Pull Request that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants