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: Add support for grpc configuration for mock HSS at federated integ test #12406
feat: Add support for grpc configuration for mock HSS at federated integ test #12406
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
|
d93b400
to
20585df
Compare
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the Python Format Check after the last commit. |
from lte.protos.subscriberdb_pb2 import ( | ||
LTESubscription, | ||
SubscriberData, | ||
SubscriberID, | ||
SubscriberState, | ||
SubscriberUpdate, | ||
) | ||
from feg.protos.hss_service_pb2_grpc import ( |
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.
While we import single class Parenthesis not needed.
@@ -18,14 +18,17 @@ | |||
import time | |||
|
|||
import grpc | |||
from integ_tests.gateway.rpc import get_gateway_hw_id, get_rpc_channel | |||
from integ_tests.gateway.rpc import get_gateway_hw_id, get_rpc_channel, get_hss_rpc_channel |
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.
There was a Python format check complains about order of import statements, please follow as it suggested.
# | ||
# | ||
# Sample configuration | ||
#subscribers: |
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.
Please add a space between # and comment as linter suggested.
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.
Left Minot comments, PR LGTM.
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.
stamping the feg component, will delegate to other reviewers for other parts :D
20585df
to
c40e1a6
Compare
c101701
to
ae1511f
Compare
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.
PR LGTM from FeG side!!
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.
just had a minor nit on param naming, otherwise LGTM
""" | ||
|
||
def __init__(self): | ||
def __init__(self, grpcStub): |
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.
def __init__(self, grpcStub): | |
def __init__(self, grpc_stub): |
…teg test Signed-off-by: Oriol Batalla <obatalla@fb.com>
ae1511f
to
1821e48
Compare
…teg test
Signed-off-by: Oriol Batalla obatalla@fb.com
Summary
This PR adds support to configure mock HSS running on FEG through s1aptestr.
We had to subclass SubscriberDBGrpc object to be able to use it with either a subscriberDB grpc stub or with a mock HSS grpc stub.
Note this PR depends on #12391, #12387, #12345 (and part of this issue #11338)
Note this framework can be used to add support to configure mock PCRF and mock OCS we have on magma testcore
Test Plan
This log below shows the federated test running using mock hss. In that case the HSS is configured with two subscribers, updated with specific APN. Subscriber db remains unconfigured for this case
The second log shows how HSS is configured with those subscribers.
Third log shows
s6a_proxy
running on that setup showing authentication messages comming from HSSmock hss grpc log
s6a_proxy log showing authentication AVP and grpc protos
Additional Information