-
Notifications
You must be signed in to change notification settings - Fork 592
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
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the DCO check after the last commit. |
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the Python Format Check after the last commit. |
@@ -0,0 +1,69 @@ | |||
""" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"
✔️ The Semantic PR check ended with status success. See instructions on formatting your commit and pull request titles. |
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>
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 -
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