Skip to content
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

Break out Unit tests #285

Merged
merged 55 commits into from
Mar 30, 2020
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
af7da7c
VSTeamAccessControlEntry tests moved to seperate file.
DarqueWarrior Mar 12, 2020
8618a55
Get-VSTeamAccessControlList tests moved to seperate file.
DarqueWarrior Mar 12, 2020
508f3dd
Trying to track down macOS CI build fail.
DarqueWarrior Mar 12, 2020
d6175a4
Take two
DarqueWarrior Mar 12, 2020
33903da
Fixed Get-VSTeamAccessControlList tests
DarqueWarrior Mar 12, 2020
7082450
Fixing Add-VSTeamAccessControlEntry
DarqueWarrior Mar 12, 2020
cadebf2
Profile Tests research.
DarqueWarrior Mar 12, 2020
3d50daa
Looks like value is Null on macOS instead of ''
DarqueWarrior Mar 12, 2020
adef81c
output $PSVersionTable
DarqueWarrior Mar 12, 2020
8a140e7
Trying to test versions
DarqueWarrior Mar 12, 2020
9afd33c
wrong mock is being called on macOS
DarqueWarrior Mar 12, 2020
a799515
Fixing profile tests on PowerShell 7.
DarqueWarrior Mar 12, 2020
31ad077
Merge branch 'master' into unittest
DarqueWarrior Mar 13, 2020
a5ee343
Agent and Pool tests broken out.
DarqueWarrior Mar 13, 2020
3e21094
Approval tests broken out.
DarqueWarrior Mar 13, 2020
4e5771c
BuildDefinition test broken out.
DarqueWarrior Mar 13, 2020
380dea0
WorkItemType tests broken out
DarqueWarrior Mar 13, 2020
ef0c118
Merge remote-tracking branch 'origin' into unittest
DarqueWarrior Mar 14, 2020
df8b707
Build test broken out.
DarqueWarrior Mar 15, 2020
2207b31
Moved Add-VSTeamAccessControlEntry json to sample files.
DarqueWarrior Mar 15, 2020
4beecec
Removed InModuleScope from Add-VSTeamPullRequest
DarqueWarrior Mar 15, 2020
1ad0172
Polished Get-VSTeamClassificationNode tests
DarqueWarrior Mar 15, 2020
f70b8af
Polished Get-VSTeamCloudSubscription tests
DarqueWarrior Mar 15, 2020
28a15ba
Polished common tests
DarqueWarrior Mar 15, 2020
e504cb2
Polished Get-VSTeamDescriptor tests
DarqueWarrior Mar 15, 2020
445ab9b
Polished VSTeamExtension tests
DarqueWarrior Mar 16, 2020
771573c
Polished VSTeamFeed tests.
DarqueWarrior Mar 16, 2020
04bd0a0
Polish VSTeamGitCommit tests
DarqueWarrior Mar 16, 2020
e344caa
Polished VSTeamGitStat tests
DarqueWarrior Mar 16, 2020
76847b9
Polish VSTeamRelease tests
DarqueWarrior Mar 16, 2020
e9c6e62
More test polish
DarqueWarrior Mar 16, 2020
e285cb2
Polish Add-VSTeamGitRepositoryPermission tests
DarqueWarrior Mar 17, 2020
9daf278
Unit test refactor checkpoint
DarqueWarrior Mar 20, 2020
c653e09
Fixing some tests.
DarqueWarrior Mar 20, 2020
5c973e1
VSTeamMembership tests broken out.
DarqueWarrior Mar 20, 2020
96f4119
Made tests more reliable
DarqueWarrior Mar 20, 2020
f480dc2
VSTeamPolicy tests broken out.
DarqueWarrior Mar 20, 2020
31c1c94
VSTeamPolicyType tests broken out.
DarqueWarrior Mar 20, 2020
a04c94c
VSTeamPool test broken out.
DarqueWarrior Mar 20, 2020
7358a7a
Unit test checkpoint
DarqueWarrior Mar 21, 2020
340576f
VSTeamProject test broken out.
DarqueWarrior Mar 21, 2020
d42dbfd
VSTeamPullRequest test broken out
DarqueWarrior Mar 22, 2020
b51a833
VSTeamQueue tests polished
DarqueWarrior Mar 22, 2020
fb3af13
VSTeamGitRef tests polished
DarqueWarrior Mar 23, 2020
fab5ac2
VSTeamRelease tests broken out.
DarqueWarrior Mar 23, 2020
17cde57
Unit Test checkpoint
DarqueWarrior Mar 23, 2020
373f370
Check point
DarqueWarrior Mar 23, 2020
3068006
VSTeamWorkItemIterationPermission and VSTeamWorkItemAreaPermission te…
DarqueWarrior Mar 24, 2020
26ca9fd
VSTeamWorkItem tests broken out.
DarqueWarrior Mar 24, 2020
2ee16ea
added _getApiVersion to ease testing.
DarqueWarrior Mar 25, 2020
4f7aac6
Only classes are tested with inmodulescope
DarqueWarrior Mar 29, 2020
1cefd85
Fixed broken unit tests of last build.
DarqueWarrior Mar 29, 2020
d22f688
Breakout class tests.
DarqueWarrior Mar 30, 2020
f8af88e
Update cred scan supression file.
DarqueWarrior Mar 30, 2020
f427f6e
InModuleScope has been removed from all unit tests.
DarqueWarrior Mar 30, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wrong mock is being called on macOS
DarqueWarrior committed Mar 12, 2020
commit 9afd33cfddaffcaf5c934b77bf32ea355505abfc
6 changes: 3 additions & 3 deletions unit/test/profile.Tests.ps1
Original file line number Diff line number Diff line change
@@ -34,14 +34,14 @@ InModuleScope VSTeam {
# If this test fails uncomment the line below to see how the mock was called.
Write-Host "Set-Content with a parameter filter"
Write-Host "Expected Path: $expectedPath"
write-host "$PSVersionTable"
write-host "$($PSVersionTable.PSVersion)"
Write-Host $args
} -Verifiable -ParameterFilter { $Path -eq $expectedPath -and ([string]$Value -eq '' -or $null -eq $Value)}
} -Verifiable -ParameterFilter { $Path -eq $expectedPath -and ([string]$Value -eq '' -or 'null' -eq $Value)}
Mock Set-Content {
# If this test fails uncomment the line below to see how the mock was called.
Write-Host "Set-Content no parameter filter"
Write-Host "Expected Path: $expectedPath"
write-host "$PSVersionTable"
write-host "$($PSVersionTable.PSVersion)"
Write-Host $args
}
Mock Get-VSTeamProfile { return '[{"Name":"test","URL":"https://dev.azure.com/test","Type":"Pat","Pat":"12345","Version":"VSTS"}]' | ConvertFrom-Json | ForEach-Object { $_ } }