Skip to content

feat: [OS-391] make oscars op command netconf ned ready#515

Merged
zrecore merged 14 commits intomasterfrom
os-391-make-oscars-op-command-netconf-ned-ready
Mar 7, 2025
Merged

feat: [OS-391] make oscars op command netconf ned ready#515
zrecore merged 14 commits intomasterfrom
os-391-make-oscars-op-command-netconf-ned-ready

Conversation

@zrecore
Copy link
Copy Markdown
Contributor

@zrecore zrecore commented Mar 4, 2025

Description

Updates NsoProxy.getLiveStatusShow() method to call NSO's restconf/data/esnet-status:esnet-status/nokia-show endpoint. The device name is no longer supplied as part of the NSO uri, but instead, supplied as a raw data payload to the HTTP POST call.

Testing simply calls the NsoProxy.getLiveStatusShow() method, with mocked RestTemplateBuilder.build() and RestTemplate.postForObject() methods to return a mocked JSON payload we load from a file in test resources.

Checklist

  • PR Title format: type: [OS-XXX] Short description
    • type is one of: 'build', 'ci', 'chore', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'
    • OS-XXX refers to a Jira issue.
    • If this is a breaking change prefix the description with "BREAKING CHANGE:"
  • There is a related Jira issue for this pull request
  • Description should be a meaningful summary of the changes you are proposing
  • For breaking changes prefix the title with "BREAKING CHANGE:" and include details in the description
  • This PR includes tests related to these changes, or existing tests provide coverage
  • This PR has updated documentation as appropriate
  • mvn clean package runs successfully

Notes

  • Once approved, use the squash and merge option.
  • Refer to the development notes for more details.

@zrecore zrecore requested a review from haniotak March 4, 2025 23:19
@zrecore zrecore changed the title feat [OS-391] make oscars op command netconf ned ready feat: [OS-391] make oscars op command netconf ned ready Mar 4, 2025
haniotak and others added 11 commits March 5, 2025 08:57
disable oauth autoconfiguration for tests
correct response parsing now that line breaks are just \n instead of \r\n
adjust test environment
…() method, required topo-common version bump to 0.0.35 to support IetfRestconfErrorResponse properties
…eStatusShow() refactor with new NSO API endpoint URI, and bug fixes to handle LiveStatusOutput or IetfRestconfErrorResponse HTTP Post response JSON objects.
@zrecore zrecore merged commit 1a0ee18 into master Mar 7, 2025
@zrecore zrecore deleted the os-391-make-oscars-op-command-netconf-ned-ready branch March 7, 2025 23:22
@zrecore zrecore self-assigned this Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants