Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Sharepoint functional tests for policy 3.2 non applicable cases need to remove unnecessary fields to get rid of warnings #1268

Closed
tkol2022 opened this issue Aug 7, 2024 · 0 comments · Fixed by #1309
Assignees
Labels
bug This issue or pull request addresses broken functionality Testing This issue or task involves testing the automation tool function
Milestone

Comments

@tkol2022
Copy link
Collaborator

tkol2022 commented Aug 7, 2024

💡 Summary

When running with Variant="spo" a few of the Sharepoint functional tests for policy 3.2 are generating warnings because the test cases are setting unnecessary fields. We should tweak the tests to only modify fields that actually change and get rid of the warning messages so that we can read the test results without clutter.

Warning message is "WARNING: Anonymous access links aren’t enabled for your organization. You must first enable them by running the command “Set-SPOTenant -SharingCapability ExternalUserAndGuestSharing” before you can set the FolderAnonymousLinkType property. We will not set the value in this case."

Here are the respective test cases that need tweaking. The fix is simple. Just remove the unnecessary fields such as FolderAnonymousLinkType which are being ignored by the cmdlet. The point of these tests is to ensure when the sharing slider is any value other than Anyone, the policy should produce a Non Applicable result.

image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug This issue or pull request addresses broken functionality Testing This issue or task involves testing the automation tool function
Projects
None yet
3 participants