浏览文件
colima.bats
21 行 · 460 B历史下载| 1 | # SPDX-FileCopyrightText: Copyright The Lima Authors |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | load "../helpers/load" |
| 5 | |
| 6 | local_setup_file() { |
| 7 | colima start |
| 8 | } |
| 9 | |
| 10 | local_teardown_file() { |
| 11 | colima stop |
| 12 | colima delete -f |
| 13 | } |
| 14 | |
| 15 | @test 'Docker' { |
| 16 | docker run -p 8080:80 -d --name nginx "${TEST_CONTAINER_IMAGES[nginx]}" |
| 17 | sleep 5 |
| 18 | run -0 curl -sSI --retry 5 --retry-all-errors http://localhost:8080 |
| 19 | assert_output --partial "200 OK" |
| 20 | docker rm -f nginx |
| 21 | } |

