Add some tests related to availability of license to show skipped (for lack of license) instead of failed#1805
Open
Conversation
…y if pim is available
…ity and skip if not, update test
…bility and skip if not, update test
…ability and skip if not, update test
…lity and skip if not, update test
Up to standards ✅🟢 Issues
|
Contributor
Author
|
As said before: one test is failing but there is no information of the failing test. Any help appreciated. Output of the command: |
…cense-to-show-skipped-(for-lack-of-license)-instead-of-failed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📑 Description
Add some tests related to availability of license to show skipped (for lack of license) instead of failed
✅ Checks
/powershell/tests/pester.ps1locally.1 test fails but there is no indication of which one ... more detail in a comment
ℹ️ Additional Information
File modified:
The license check make the function not throw when there is no P2 license. So user of standard license should not have Error as a result for the following tests:
Add license check in the following functions and correct some tests to check for $null to correctly handle the skipped
Test: MT.1106: Catalog resources must have valid roles (no stale / removed app roles or SPNs)
Test: MT.1107: Access packages and catalogs should not reference deleted groups
Test: MT.1108: Access packages should not reference inactive or orphaned assignment policies
Test: MT.1110: No catalog should contain resources without any associated access packages
Test: MT.1109: Access package approval workflows must have valid approvers