Skip to content

Conversation

@may-hartov
Copy link
Collaborator

This pull request refactors and enhances the test suite for the set command, focusing on improving code reuse, and increasing test coverage for gateway and spark pool metadata updates.

Test Refactoring and Parameterization:

  • Refactored test_set_sparkpool_success and test_set_gateway_virtualNetwork_success to use parameterized test cases, allowing multiple metadata fields and input values to be tested more efficiently. The tests now call a shared helper method (_test_set_metadata_success) for improved code reuse and maintainability. [1] [2]

Gateway Metadata and Cache Handling:

  • Added parameterized tests for additional gateway metadata fields (numberOfMemberGateways, inactivityMinutesBeforeSleep, displayName) and a new test for updating the capacityId field.
  • Introduced a new upsert_gateway_to_cache fixture to mock gateway cache updates in relevant tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant