Skip to content

Conversation

@HeyItsGilbert
Copy link
Owner

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Signed-off-by: Gilbert Sanchez <me@gilbertsanchez.com>
Signed-off-by: Gilbert Sanchez <me@gilbertsanchez.com>
@github-actions
Copy link

github-actions bot commented Jul 21, 2025

Test Results

  3 files  237 suites   6s ⏱️
261 tests 256 ✅  5 💤 0 ❌
783 runs  768 ✅ 15 💤 0 ❌

Results for commit a77add4.

♻️ This comment has been updated with latest results.

Signed-off-by: Gilbert Sanchez <me@gilbertsanchez.com>
* Refactored `Read-FeatureFlag` function to streamline processing.
* Added error handling for invalid file paths.
* Introduced unit tests for `Read-FeatureFlag` to ensure reliability.
* Created a sample `FeatureFlag.json` for testing purposes.
* Implemented tests to verify the functionality of new file creation cmdlets.
* Ensured that the tests cover the creation of conditions and rules.
* Mocked necessary functions to isolate tests and improve reliability.
* Updated the output type of `Read-FeatureFlag` function to `[PropertySet]` for accuracy.
* Ensures proper type handling when reading feature flags from disk.
* Refactored the test setup to directly assign the `$script:GatekeeperConfiguration` variable.
* Removed unnecessary `InModuleScope` for mocking `Get-ConfigurationPath`.
* Ensured the test paths are correctly set for feature flag and property set directories.
* Refactored the mock for `Get-PropertySetFolder` to ensure consistent test behavior.
* Updated the `$script:GatekeeperConfiguration` to include `FilePaths` for better clarity and organization.
* Added `-ModuleName` to mock commands for better clarity and context.
* Ensured that the mocks are correctly scoped to the `$env:BHProjectName`.
* Updated the output type annotation from `[PropertySet]` to `[FeatureFlag]` for the `Read-FeatureFlag` function.
* This change ensures that the function correctly reflects the type of object it returns.
* Ensure necessary directories for `PropertySet`, `FeatureFlags`, and `Configuration` are created before tests run.
* Update `$global:GatekeeperConfiguration` to reflect the correct scope for configuration settings.
* Updated CHANGELOG to reflect the new version.
* Incremented `ModuleVersion` to '0.1.1' in the module manifest.
* Corrected file path casing in test for consistency.
@HeyItsGilbert HeyItsGilbert merged commit 80a2507 into main Jul 22, 2025
6 checks passed
@HeyItsGilbert HeyItsGilbert deleted the FeatureFromFile branch July 22, 2025 22:01
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