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

Unit tests for Node Topologies #358

Merged

Conversation

harshitap26
Copy link
Contributor

@harshitap26 harshitap26 commented Nov 29, 2024

Description

PR to add Unit tests for adding and passing zone labels through the topologies.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#1612

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • Added Unit test for the different scenarios of zone labels being added to the topology
  • All the Unit tests are passing successfully.

@falfaroc falfaroc merged commit 39c7d51 into feature/multi-availability-zone Nov 29, 2024
6 checks passed
@falfaroc falfaroc deleted the usr/harshitap26/az-node-labels-ut branch November 29, 2024 14:24
falfaroc pushed a commit that referenced this pull request Dec 18, 2024
* Adding Unit tests

* fixing formatting issues
falfaroc pushed a commit that referenced this pull request Dec 18, 2024
* Adding Unit tests

* fixing formatting issues
falfaroc added a commit that referenced this pull request Dec 19, 2024
* Add availability zone secret and struct (#352)

* add availability zone secret and struct

* Add multi availability zone storage class (#353)

* Add Multi-Available Zone Functionality (#354)

* Add create volume processing for multi-az

* Adjust multi-az secret processing

* Rework secret processing

* Iterate through all topologies for a zone

* Test signing commit

* Cleanup secret retrieval and backwards compatibility of storage classes

* adapt to use new secret struct

* Add multi-az unit tests

* Fix golangci-lint issue

* Cleanup code logs

* Make zone take precendence during NodeGetInfo

* Update unit tests credentials

---------

Co-authored-by: Lau, Luke <luke.lau1@dell.com>

* Unit tests for Node Topologies (#358)

* Adding Unit tests

* fixing formatting issues

* Use generic zone labels (#360)

* Add zone volume creation integration tests (#359)

* Add zone volume creation integration tests

* Fix golangci-lint issue

* Create e2e zone tests

* Adjust indentation of template yaml files

* Adjust indentation of template yaml files

* Update e2e file names

* Format e2e files for golangci-lint

* Update e2e test scenarios

* Update pod templates

* Address PR comments

* Add README to e2e tests

* Update sts templates

* Added Integration tests for NodeGetInfo

* fixing linting checks

* Renaming function arguments

* Add Snapshot and Clone Support for Multi-Available Zone (#365)

* Add snapshot check and topology add during zone volume creation

* Add topology checks for clones

* Add zone snapshot and restore e2e test

* Address failed PR checks

* Update README

* Added e2e tests for clones

* Add snap and clone test (#371)

* Address PR comments

---------

Co-authored-by: Trevor Dawe <trevor.dawe@dell.com>
Co-authored-by: Bharath Sreekanth <93715158+bharathsreekanth@users.noreply.github.com>

* Driver Node should only ping arrays within the zone on which the pod is scheduled (#378)

* configure driver node service to only ping arrays in the same zone as the service.

Co-authored-by: Fernando Alfaro Campos <Fernando.Alfaro_campos@Dell.com>
Co-authored-by: Trevor Dawe <trevor.dawe@dell.com>

* Fix rebase issues

* Address PR comments

* Address PR comments

* Address PR comments

---------

Co-authored-by: lukeatdell <115811384+lukeatdell@users.noreply.github.com>
Co-authored-by: Lau, Luke <luke.lau1@dell.com>
Co-authored-by: Harshita Pandey <88329939+harshitap26@users.noreply.github.com>
Co-authored-by: Trevor Dawe <trevor.dawe@dell.com>
Co-authored-by: Harshita Pandey <Harshita_Pandey@dell.com>
Co-authored-by: Bharath Sreekanth <93715158+bharathsreekanth@users.noreply.github.com>
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.

3 participants