Skip to content

Commit 29fba43

Browse files
committed
comment another similar test
1 parent 2cd7cb4 commit 29fba43

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

tests/sshAgent.Tests.ps1

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -131,24 +131,25 @@ Describe "[$global:IMAGE_NAME] image has correct version of java and git-lfs ins
131131
}
132132
}
133133

134-
Describe "[$global:IMAGE_NAME] create agent container with pubkey as argument" {
135-
BeforeAll {
136-
$exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all `"$global:IMAGE_NAME`" `"$global:PUBLIC_SSH_KEY`""
137-
$exitCode | Should -Be 0
138-
Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
139-
Start-Sleep -Seconds 10
140-
}
134+
# TODO: restore when https://github.com/jenkins-infra/helpdesk/issues/4557 infra issue is resolved
135+
# Describe "[$global:IMAGE_NAME] create agent container with pubkey as argument" {
136+
# BeforeAll {
137+
# $exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all `"$global:IMAGE_NAME`" `"$global:PUBLIC_SSH_KEY`""
138+
# $exitCode | Should -Be 0
139+
# Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
140+
# Start-Sleep -Seconds 10
141+
# }
141142

142-
It 'runs commands via ssh' {
143-
$exitCode, $stdout, $stderr = Run-ThruSSH $global:CONTAINERNAME "$global:PRIVATE_SSH_KEY" "$global:CONTAINERSHELL -NoLogo -C `"Write-Host 'f00'`""
144-
$exitCode | Should -Be 0
145-
$stdout | Should -Match 'f00'
146-
}
143+
# It 'runs commands via ssh' {
144+
# $exitCode, $stdout, $stderr = Run-ThruSSH $global:CONTAINERNAME "$global:PRIVATE_SSH_KEY" "$global:CONTAINERSHELL -NoLogo -C `"Write-Host 'f00'`""
145+
# $exitCode | Should -Be 0
146+
# $stdout | Should -Match 'f00'
147+
# }
147148

148-
AfterAll {
149-
Cleanup($global:CONTAINERNAME)
150-
}
151-
}
149+
# AfterAll {
150+
# Cleanup($global:CONTAINERNAME)
151+
# }
152+
# }
152153

153154
# TODO: restore when https://github.com/jenkins-infra/helpdesk/issues/4557 infra issue is resolved
154155
# Describe "[$global:IMAGE_NAME] create agent container with pubkey as envvar" {

0 commit comments

Comments
 (0)