-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add security related commands #144
Add security related commands #144
Conversation
@DarqueWarrior Work in Progress, but I thought I'd share this already so you can give initial feedback. Thanks! |
I put in a check that validates the help files are created with a title that matches the filename. This is to catch copy and paste errors. But it also catches empty files. So if you want the build to succeed you are going to have to fill in the help files. What is up with Get-VSTeamUser2? Not sure why you are not just changing the current function. Get-VSTeamUser might just need two Parameter sets. One that matches the existing params and one for your current 2 version. |
Yes, I will fill them ASAP. I wasn't sure about changing Get-VSTeamUser, because it does things a little different than Get-VSTeamUser2. |
…-AccessControlList Tests
…chelZ/vsteam into Add-Security-Related-Commands
Breaking changes are ok as long as the version number reflects it and it is clearly described in change log. |
We also need to be very clear in the docs the difference between what is being returned from each function. On the surface the results look very similar. |
How is this work coming? Seems like a huge change. |
Still working on it. Got a couple more things that I'd like to add. |
…mIterationPermission
@DarqueWarrior I think this one is ready for a deeper review now |
Sorry for delay I hope to have time this weekend. |
…chelZ/vsteam into Add-Security-Related-Commands
I will test again. I can give you access to my TFS 2017 and 2018 instances so you can test as well. |
That would be very nice of you and extremely helpful |
@DarqueWarrior Can you get me these login credentials? Thx! |
@DarqueWarrior OK, the issue is that TFS can only query security namespaces by ID, whereas AzD can actually them. I think querying them by ID has not much value, so I made that whole command "AzD-only". |
…chelZ/vsteam into Add-Security-Related-Commands
I see there is a warnning. Source\Public\Remove-VSTeamAccessControlList.ps1(1,10): Warning : Function 'Remove-VSTeamAccessControlList' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. |
Fixed. I'm not sure why it throws there now though...
|
I will look into it. |
When unit tests only fail on Mac or Linux it can sometimes be a casing issue. |
Strange I just ran on my local Mac and Ubuntu machines and they all pass. |
There is something going on with the latest version of PowerShell core. If you install 6.2.0 you will get the same errors. Not sure why this is broken. Maybe @SteveL-MSFT knows if something changed in 6.2.0 that could cause this error. |
I think I have a way to test the code without mocking ConvertFrom-JSON which is causing the Null reference exception. Something still seems to be off or different in version 6.2.0 of PowerShell core but I don't want to hold this PR until that is investigated. I will work on new tests this weekend. |
Once in 5.1 and once in Core.
@DarqueWarrior can you summarize the issue you're seeing with PSCore6.2? |
PR Summary
Adding Security related functions
PR Checklist