@@ -153,17 +153,6 @@ Describe "[$global:IMAGE_NAME] create agent container with pubkey as argument" {
153
153
$exitCode , $stdout , $stderr = Run- Program ' docker' " run --detach --tty --name=`" $global :CONTAINERNAME `" --publish-all `" $global :IMAGE_NAME `" `" $global :PUBLIC_SSH_KEY `" "
154
154
$exitCode | Should - Be 0
155
155
Is- ContainerRunning $global :CONTAINERNAME | Should - BeTrue
156
- Start-Sleep - Seconds 10
157
- }
158
-
159
- It ' can check running containers' {
160
- $exitCode , $stdout , $stderr = Run- Program ' docker' " container ls"
161
- $exitCode | Should - Be 0
162
- }
163
-
164
- It ' can get logs of running container' {
165
- $exitCode , $stdout , $stderr = Run- Program ' docker' " logs `" $global :CONTAINERNAME `" "
166
- $exitCode | Should - Be 0
167
156
}
168
157
169
158
It ' runs commands via ssh' {
@@ -182,14 +171,12 @@ Describe "[$global:IMAGE_NAME] create agent container with pubkey as envvar" {
182
171
$exitCode , $stdout , $stderr = Run- Program ' docker' " run --detach --tty --name=`" $global :CONTAINERNAME `" --publish-all `" $global :IMAGE_NAME `" `" $global :PUBLIC_SSH_KEY `" "
183
172
$exitCode | Should - Be 0
184
173
Is- ContainerRunning $global :CONTAINERNAME | Should - BeTrue
185
- Start-Sleep - Seconds 10
186
174
}
187
175
188
176
It ' runs commands via ssh' {
189
177
$exitCode , $stdout , $stderr = Run- ThruSSH $global :CONTAINERNAME " $global :PRIVATE_SSH_KEY " " $global :CONTAINERSHELL -NoLogo -C `" Write-Host 'f00'`" "
190
178
$exitCode | Should - Be 0
191
179
$stdout | Should -Match ' f00'
192
- Start-Sleep - Seconds 10
193
180
}
194
181
195
182
AfterAll {
@@ -205,7 +192,6 @@ Describe "[$global:IMAGE_NAME] create agent container like docker-plugin with '$
205
192
$exitCode , $stdout , $stderr = Run- Program ' docker' " run --detach --tty --name=`" $global :CONTAINERNAME `" --publish-all --env=`" JENKINS_AGENT_SSH_PUBKEY=$global :PUBLIC_SSH_KEY `" `" $global :IMAGE_NAME `" `" $global :DOCKER_PLUGIN_DEFAULT_ARG `" "
206
193
$exitCode | Should - Be 0
207
194
Is- ContainerRunning $global :CONTAINERNAME | Should - BeTrue
208
- Start-Sleep - Seconds 10
209
195
}
210
196
211
197
It ' runs commands via ssh' {
0 commit comments