Skip to content

Handled returning fields based on array version for NAS server#188

Merged
akshay-sripriya merged 6 commits into
mainfrom
usr/akshay/nas-server-select-fields
Mar 18, 2025
Merged

Handled returning fields based on array version for NAS server#188
akshay-sripriya merged 6 commits into
mainfrom
usr/akshay/nas-server-select-fields

Conversation

@akshay-sripriya

@akshay-sripriya akshay-sripriya commented Mar 14, 2025

Copy link
Copy Markdown
Contributor

Common PR Checklist:

  • Have you made sure that the code compiles?
  • Have you commented your code, particularly in hard-to-understand areas?
  • Did you run tests in a real Kubernetes cluster?
  • Have you maintained backward compatibility?
  • Have you updated the mocks for any Client functions that have been modified (mocks/Client.go)?

Description of your changes:

The "is_dr_test" attribute in NAS Server, is not applicable to array versions 3.6 and below but is applicable to array versions above 3.6. Thus, the fields have to be returned based on array version.

Comment thread fs.go Outdated
@suryagupta4

Copy link
Copy Markdown
Contributor

@akshay-sripriya: Please add unit tests for the changes added and make sure overall coverage is not decreased, thanks.

karthikk92
karthikk92 previously approved these changes Mar 17, 2025
@github-actions

Copy link
Copy Markdown

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/gopowerstore 91.72% (+0.10%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/gopowerstore/fs.go 96.09% (-0.06%) 128 (+24) 123 (+23) 5 (+1) 👎

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/dell/gopowerstore/fs_test.go

@akshay-sripriya

Copy link
Copy Markdown
Contributor Author

@akshay-sripriya: Please add unit tests for the changes added and make sure overall coverage is not decreased, thanks.

Tests have been added

@akshay-sripriya akshay-sripriya merged commit ae51b1f into main Mar 18, 2025
@akshay-sripriya akshay-sripriya deleted the usr/akshay/nas-server-select-fields branch March 18, 2025 03:26
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.

5 participants