Skip to content

Commit

Permalink
Merge pull request #35 from Zhaopudark/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Zhaopudark authored Nov 19, 2023
2 parents dc6564b + 0bc8aaa commit ffbedc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
15 changes: 1 addition & 14 deletions Tests/APIs/Manager.Links.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ BeforeAll {
}

Describe 'Test Link Management' {
Context 'On Windows'{
Context 'On Windows and non-Windows' {
It 'Test Set-DirSymbolicLinkWithSync' {
Set-DirSymbolicLinkWithSync -Path "$test_path\test_symbolick_dir\dir1" -Target "$test_path\test_symbolick_dir\dir2" -BackupDir "$test_path\backup"
$item = Get-ItemProperty "$test_path\test_symbolick_dir\dir1"
Expand Down Expand Up @@ -89,19 +89,6 @@ Describe 'Test Link Management' {
}
}
}
# Context 'On non-Windows' -Skip:$IsWindows{
# It 'Test Set-DirSymbolicLinkWithSync' {
# {Set-DirSymbolicLinkWithSync -Path "$test_path\test_symbolick_dir\dir1" -Target "$test_path\test_symbolick_dir\dir2" -BackupDir "$test_path\backup" }| Should -Throw
# }
# It 'Test Set-DirJunctionWithSync' {
# {Set-DirJunctionWithSync -Path "$test_path\test_symbolick_dir\dir3" -Target "$test_path\test_symbolick_dir\dir4" -BackupDir "$test_path\backup" }| Should -Throw
# }
# It 'Test Set-FileSymbolicLinkWithSync' {
# {Set-FileSymbolicLinkWithSync -Path "$test_path\file_symbolic_link" -Target "$test_path\file_for_symbolic_link.txt" -BackupDir "$test_path\backup"}| Should -Throw
# }

# }

}

AfterAll {
Expand Down
2 changes: 1 addition & 1 deletion Tests/APIs/Manager.Proxy.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Describe 'Test Proxy Management' {
Get-LocalHostIPV4
}
It 'Test Set-EnvProxyIPV4ForShellProcess' {
Set-EnvProxyIPV4ForShellProcess -ServerIP 127.1.2.3 -PortNumber 4567.
Set-EnvProxyIPV4ForShellProcess -ServerIP 127.1.2.3 -PortNumber 4567
[Environment]::GetEnvironmentVariable('http_proxy') | Should -Be 'http://127.1.2.3:4567'
[Environment]::GetEnvironmentVariable('https_proxy') | Should -Be 'http://127.1.2.3:4567'
[Environment]::GetEnvironmentVariable('all_proxy') | Should -Be 'http://127.1.2.3:4567'
Expand Down

0 comments on commit ffbedc0

Please sign in to comment.