Skip to content

Conversation

@ninjadq
Copy link
Member

@ninjadq ninjadq commented Apr 20, 2025

  • Removed the ClearConditions function and its associated test from the operation package.
  • Introduced OperationHelper struct with methods for operation management, including condition clearing and ID generation.
  • Added tests for OperationHelper methods, ensuring functionality for diffing app deployments and comparing job specifications.
  • Deleted unused constants and introduced RequirementHelper for managing requirement conditions.
  • Implemented tests for RequirementHelper, covering condition updates and cache miss checks.
  • Added utility functions for generating random strings.
  • Updated integration tests to remove dependencies on removed constants and ensure proper phase checks.
  • Generated mock implementations for client interfaces to facilitate testing.

ninjadq added 3 commits April 20, 2025 17:40
- Removed the `ClearConditions` function and its associated test from the `operation` package.
- Introduced `OperationHelper` struct with methods for operation management, including condition clearing and ID generation.
- Added tests for `OperationHelper` methods, ensuring functionality for diffing app deployments and comparing job specifications.
- Deleted unused constants and introduced `RequirementHelper` for managing requirement conditions.
- Implemented tests for `RequirementHelper`, covering condition updates and cache miss checks.
- Added utility functions for generating random strings.
- Updated integration tests to remove dependencies on removed constants and ensure proper phase checks.
- Generated mock implementations for client interfaces to facilitate testing.
- Implemented `TestAppCacheFieldFromApplicationTeardown` to validate the extraction of cache fields from application teardown specifications.
- Implemented `TestAppCacheFieldFromApplicationProvision` to validate the extraction of cache fields from application provision specifications.
- Enhanced `CompareProvisionJobs` to utilize a helper function for comparing dependencies, ensuring consistent behavior.
- Added comprehensive test cases for comparing provision jobs, including scenarios with identical jobs, different dependencies, and empty dependencies.
- Introduced utility functions for comparing string slices and environment variables to streamline comparison logic.
- Updated existing tests to reflect changes in the comparison logic and ensure thorough coverage of edge cases.
@ninjadq ninjadq merged commit ec51900 into Azure:main Apr 21, 2025
6 checks passed
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.

1 participant