-
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(agw): Run integ tests vs containerized AGW #13659
Conversation
6b623a2
to
fed0dcf
Compare
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
|
fed0dcf
to
ae7bb8d
Compare
deb8d6e
to
7cf688e
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.
I confirmed that I can run test_attach_detach
on this branch and it succeeds.
f7da167
to
cf32c0b
Compare
@@ -25,6 +25,7 @@ x-generic-service: &service | |||
logging: *logging_anchor | |||
restart: always | |||
network_mode: host | |||
env_file: .env |
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.
might this line be redundant? is .env used by default?
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 line was required to set the added environment variable in the containers, however the paths in .env
were already being used in docker-compose.yaml
as default. That said, this modification wasn't ideal so it has been replaced by the use of an override file, docker-compose.dev.yaml
.
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.
lgtm (modulo minor comment)
cf32c0b
to
89f0189
Compare
8cbc576
to
030cff2
Compare
Could someone from @magma/approvers-agw-integtests have a look at this PR? It's the first step for integration tests of the dockerized AGW. |
) | ||
if self._init_system == InitMode.SYSTEMD: | ||
self.exec_command( | ||
"sudo service magma@* stop ; sudo service magma@magmad start", |
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.
Hi @sebathomas here it looks good as all services have restarted. Do we need similar handling for test case where an individual service have started. Say for test case, test_sctp_shutdown_while_mme_is_stopped.py mme, mobilityd, pipelined services have stopped and started mme service.
Please find the test case here, https://github.com/magma/magma/blob/master/lte/gateway/python/integ_tests/s1aptests/test_sctp_shutdown_while_mme_is_stopped.py
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.
Thanks for looking into this. Yes, I expect more changes will be necessary to run all tests, this will be handled in the follow-up ticket #13684.
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.
S1ap tester changes looks good to me
Can you approve the PR then? :) |
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.
s1ap changes LGTM
Thank you! I think the PR needs a rebase now because of changes to the semantic-pr CI, but apart from that it's ready to merge. |
|
Signed-off-by: Cameron Voisey <cameron.voisey@tngtech.com>
030cff2
to
2242d2b
Compare
Signed-off-by: Cameron Voisey <cameron.voisey@tngtech.com> Signed-off-by: Cameron Voisey <cameron.voisey@tngtech.com>
Summary
Works towards getting all integration tests running versus the containerized AGW, starting with
test_attach_detach
. Modifies system restarts to account for Docker. Also modifies the readme to explain the present situation and how to run the test, as well as adding sctpd to the services that need to be stopped before starting the Docker containers.This aims to be a non-breaking PR which can be built upon in the future to get further tests running.
Test Plan
At present,
test_attach_detach
runs successfully ifMAGMA_DEV_MODE
is set to 1 in the.env
file.Notes:
.env
file.