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(nms): Show NGC AMF config for gateways #14243

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

sebathomas
Copy link
Contributor

@sebathomas sebathomas commented Oct 24, 2022

Summary

Adds a new section to the Gateway Config that shows the NGC AMF configuration. The data is already available in the frontend as part of the gateway data.

Also moves the EPC config to the left column to make room for the new config on the right column.

A new dialog to edit the config will be added in a follow-up PR.

Config with example data:
ngc_config_data

Empty config:
ngc_config_empty

Test Plan

  • Added a unit test for the new config.
  • Tried it on a local instance.

Additional Information

  • This change is backwards-breaking

@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines. label Oct 24, 2022
@github-actions github-actions bot added the component: nms NMS-related issue label Oct 24, 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
Copy link
Contributor

github-actions bot commented Oct 24, 2022

dp-workflow

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 6bfb295.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 24, 2022

nms-workflow

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 6bfb295.

♻️ This comment has been updated with latest results.

@sebathomas sebathomas marked this pull request as ready for review October 24, 2022 12:14
@sebathomas sebathomas requested review from a team and thmsschmitt October 24, 2022 12:14
nms/app/views/equipment/__tests__/GatewayConfigTest.tsx Outdated Show resolved Hide resolved
Comment on lines +784 to +798
const nameCell = within(ngcConfig).getByTestId('Name');
within(nameCell).getByText('amf.example.org');
const pointerCell = within(ngcConfig).getByTestId('Pointer');
within(pointerCell).getByText('1F');
const regionCell = within(ngcConfig).getByTestId('Region ID');
within(regionCell).getByText('C1');
const setCell = within(ngcConfig).getByTestId('Set ID');
within(setCell).getByText('2A1');
const serviceTypeCell = within(ngcConfig).getByTestId(
'Default Slice Service Type',
);
within(serviceTypeCell).getByText('2');
const descriptorCell = within(ngcConfig).getByTestId(
'Default Slice Descriptor',
);
within(descriptorCell).getByText('AFAF');
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the category of those items really identical to the testID?
I mean for the single fields testID is never set, however you getByTestId here, where I would have expected a getByText or getByName or the like.

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's a feature of the data grid that sets the category automatically as test ID for the whole cell (including title and value as children). If I used getByText, I'd only get the title and not the value that I want to check.

Adds a new section to the Gateway Config that shows the NGC AMF
configuration. The data is already available in the frontend as
part of the gateway data.

Also moves the EPC config to the left column to make room for
the new config on the right column.

Signed-off-by: Sebastian Thomas <sebastian.thomas@tngtech.com>
@sebathomas sebathomas merged commit c877604 into magma:master Oct 24, 2022
@mpfirrmann mpfirrmann linked an issue Oct 25, 2022 that may be closed by this pull request
4 tasks
lucasgonze pushed a commit to lucasgonze/magma that referenced this pull request Feb 29, 2024
Adds a new section to the Gateway Config that shows the NGC AMF
configuration. The data is already available in the frontend as
part of the gateway data.

Also moves the EPC config to the left column to make room for
the new config on the right column.

Signed-off-by: Sebastian Thomas <sebastian.thomas@tngtech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: nms NMS-related issue size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add AMF configuration to gateway settings
2 participants