Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit d493b1b

Browse files
authored
Merge pull request #702 from teawater/ci-fix
hack/test-cmd.sh: change test image from "busybox" to "hyperhq/busybox"
2 parents eb4916e + 77785de commit d493b1b

14 files changed

+39
-39
lines changed

hack/lib/test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ hyper::test::remove_image() {
2828

2929
hyper::test::exitcode() {
3030
echo "Pod exit code test"
31-
res=$(sudo hyperctl run --rm busybox sh -c "exit 17" > /dev/null 2>&1 ; echo $?)
31+
res=$(sudo hyperctl run --rm hyperhq/busybox sh -c "exit 17" > /dev/null 2>&1 ; echo $?)
3232
echo "should return 17, return: $res"
3333
test $res -eq 17
3434
}
3535

3636
hyper::test::exec() {
3737
echo "Pod exec and exit code test"
38-
id=$(sudo hyperctl run -d busybox /bin/sh | sed -ne "s/POD id is \(.*\)/\1/p")
38+
id=$(sudo hyperctl run -d hyperhq/busybox /bin/sh | sed -ne "s/POD id is \(.*\)/\1/p")
3939
echo "test pod ID is $id"
4040
res=$(sudo hyperctl exec $id sh -c "exit 37" > /dev/null 2>&1 ; echo $?)
4141
echo "should return 37, return: $res"
@@ -147,7 +147,7 @@ hyper::test::integration() {
147147

148148
hyper::test::execvm() {
149149
echo "Pod execvm echo test"
150-
id=$(sudo hyperctl run -d busybox /bin/sh | sed -ne "s/POD id is \(.*\)/\1/p")
150+
id=$(sudo hyperctl run -d hyperhq/busybox /bin/sh | sed -ne "s/POD id is \(.*\)/\1/p")
151151
echo "test pod ID is $id"
152152
res=$(sudo hyperctl exec -m $id /sbin/busybox sh -c "echo aaa")
153153
echo "should return aaa, actual: $res"
@@ -221,7 +221,7 @@ hyper::test::force_kill_container() {
221221
# regression test for #577
222222
hyper::test::container_logs_no_newline() {
223223
echo "Container logs without newlines"
224-
id=$(sudo hyperctl run -d busybox echo -n foobar | sed -ne "s/POD id is \(.*\)/\1/p")
224+
id=$(sudo hyperctl run -d hyperhq/busybox echo -n foobar | sed -ne "s/POD id is \(.*\)/\1/p")
225225
sleep 3 # sleep a bit to let logger kick in
226226
res=$(sudo hyperctl logs $id)
227227
sudo hyperctl rm $id
@@ -262,5 +262,5 @@ END
262262
else
263263
return 1
264264
fi
265-
done < <(sudo hyperctl run -t --rm --publish 3000:1300 busybox:latest sh -c 'echo "start" ; nc -l -p 1300')
265+
done < <(sudo hyperctl run -t --rm --publish 3000:1300 hyperhq/busybox:latest sh -c 'echo "start" ; nc -l -p 1300')
266266
}

hack/pods/busybox-tty.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "test-container-force-killing",
33
"containers" : [{
44
"name": "busybox-with-tty",
5-
"image": "busybox",
5+
"image": "hyperhq/busybox",
66
"command": ["/bin/sh"]
77
}],
88
"resource": {

hack/pods/file-mapping.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "test-file-mapping",
33
"containers" : [{
44
"name": "mapping",
5-
"image": "busybox",
5+
"image": "hyperhq/busybox",
66
"command": ["/bin/sh", "-c", "md5sum /root/resolv.conf"],
77
"volumes": [{
88
"volume": "resolv.conf",

hack/pods/hostname-err-char.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"hostname": "/myname",
44
"containers" : [{
55
"name": "file-tester",
6-
"image": "busybox:latest",
6+
"image": "hyperhq/busybox:latest",
77
"workdir": "/",
88
"command": ["hostname"]
99
}],

hack/pods/hostname-err-long.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"hostname": "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn",
44
"containers" : [{
55
"name": "file-tester",
6-
"image": "busybox:latest",
6+
"image": "hyperhq/busybox:latest",
77
"workdir": "/",
88
"command": ["hostname"]
99
}],

hack/pods/hostname.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"hostname": "myname",
44
"containers" : [{
55
"name": "file-tester",
6-
"image": "busybox:latest",
6+
"image": "hyperhq/busybox:latest",
77
"workdir": "/",
88
"command": ["hostname"]
99
}],

hack/pods/insert-file.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "test-inject-file",
33
"containers" : [{
44
"name": "file-tester",
5-
"image": "busybox:latest",
5+
"image": "hyperhq/busybox:latest",
66
"workdir": "/",
77
"command": ["/bin/sh", "-c", "cd /root/test/; md5sum resolv.conf logo.png t1 t2 t3"],
88
"files": [{

hack/pods/nfs-client.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"memory": 256
55
},
66
"containers": [{
7-
"image": "busybox",
7+
"image": "hyperhq/busybox",
88
"volumes": [{
99
"volume": "sharevolume",
1010
"path": "/export",

hack/pods/readonly-rootfs.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"containers" : [{
33
"name": "busybox-readonly",
4-
"image": "busybox",
4+
"image": "hyperhq/busybox",
55
"command": ["/bin/sh"],
66
"readonly": true,
77
"volumes": [{

hack/pods/service.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"containers": [
33
{
4-
"image": "busybox:latest",
4+
"image": "hyperhq/busybox:latest",
55
"name": "service",
66
"command": ["/bin/sh", "-c", "ps aux"]
77
}

0 commit comments

Comments
 (0)