Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ clone:
pipeline:

display-status:
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-integration-test:1.48'
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
environment:
BIN: bin
Expand All @@ -25,7 +25,7 @@ pipeline:
- 'git log -1 --pretty=oneline | grep "^${DRONE_COMMIT}" > /dev/null && echo ''Build matches'' || (git log -1 --pretty=oneline | grep "Merge ${DRONE_COMMIT}" > /dev/null && echo ''Build is of a merge commit'' || (echo ''Build does not match!'' && exit 1))'

wait-for-build:
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-integration-test:1.48'
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
environment:
BIN: bin
Expand All @@ -41,7 +41,7 @@ pipeline:
- tests/wait_until_previous_builds_complete.sh

check-org-membership:
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-integration-test:1.48'
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
environment:
BIN: bin
Expand Down Expand Up @@ -74,7 +74,7 @@ pipeline:
status: success

vic-unit-test:
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-integration-test:1.48'
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
environment:
BIN: bin
Expand Down Expand Up @@ -109,7 +109,7 @@ pipeline:
status: success

vic-integration-test-on-pr:
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-integration-test:1.48'
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
privileged: true
environment:
Expand Down Expand Up @@ -277,7 +277,7 @@ pipeline:
status: success

vic-machine-server-tags-dev:
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-integration-test:1.48'
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
environment:
BIN: bin
Expand All @@ -293,7 +293,7 @@ pipeline:
status: success

vic-machine-server-tags-release:
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-integration-test:1.48'
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
environment:
BIN: bin
Expand Down Expand Up @@ -375,14 +375,16 @@ pipeline:
status: success

pass-rate:
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-pass-rate:1.0'
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
environment:
BIN: bin
SHELL: /bin/bash
secrets:
- github_automation_api_key
- slack_url
commands:
- tests/pass-rate.sh
when:
repo: vmware/vic
event: [push, tag]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ Pull images based on digest
Should Contain ${output} Digest: sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
Should Contain ${output} Status: Downloaded newer image for library/ubuntu:sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2

Pull an image with the full docker registry URL
Wait Until Keyword Succeeds 5x 15 seconds Pull image registry.hub.docker.com/library/hello-world
#Pull an image with the full docker registry URL
# Wait Until Keyword Succeeds 5x 15 seconds Pull image registry.hub.docker.com/library/hello-world

Pull an image with all tags
Wait Until Keyword Succeeds 5x 15 seconds Pull image --all-tags nginx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Create linked containers that can ping
Should Not Contain ${output} Error
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} logs busy2
Should Be Equal As Integers ${rc} 0
Should Contain ${output} 2 packets transmitted, 2 packets received
Should Contain ${output} 2 packets transmitted, 2 received

Create a container after the last container is removed
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} pull ${busybox}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Connect containers to multiple bridge networks overlapping
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} logs --follow cross1-container2
Should Be Equal As Integers ${rc} 0
Should Contain ${output} 2 packets transmitted, 2 packets received
Should Contain ${output} 2 packets transmitted, 2 received

${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} create --name cross1-container3 --net cross1-network ${busybox} ping -c2 cross1-container3
Should Be Equal As Integers ${rc} 0
Expand Down Expand Up @@ -107,11 +107,11 @@ Connect containers to multiple networks non-overlapping

${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --net cross2-network2 --name cross2-container2 ${debian} ping -c2 ${ip}
Should Not Be Equal As Integers ${rc} 0
Should Contain ${output} 2 packets transmitted, 0 packets received, 100% packet loss
Should Contain ${output} 2 packets transmitted, 0 received, 100% packet loss

${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} logs --follow cross2-container2
Should Be Equal As Integers ${rc} 0
Should Contain ${output} 2 packets transmitted, 0 packets received, 100% packet loss
Should Contain ${output} 2 packets transmitted, 0 received, 100% packet loss

# verify that an exposed port on the container does not break down bridge isolation
${rc} ${containerID}= Run And Return Rc And Output docker %{VCH-PARAMS} run -d --net cross2-network -p 8080:80 ${nginx}
Expand All @@ -120,11 +120,11 @@ Connect containers to multiple networks non-overlapping
${ip}= Get Container IP %{VCH-PARAMS} ${containerID} cross2-network
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --net cross2-network2 --name cross2-container3 ${debian} ping -c2 ${ip}
Should Not Be Equal As Integers ${rc} 0
Should Contain ${output} 2 packets transmitted, 0 packets received, 100% packet loss
Should Contain ${output} 2 packets transmitted, 0 received, 100% packet loss

${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} logs --follow cross2-container3
Should Be Equal As Integers ${rc} 0
Should Contain ${output} 2 packets transmitted, 0 packets received, 100% packet loss
Should Contain ${output} 2 packets transmitted, 0 received, 100% packet loss

Connect containers to an internal network
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} network create --internal internal-net
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Docker volume create fqdn-based nfs datastore
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run -d -v nfs-vol:/mnt/nfs-vol --net public --name nfs-server -p 111:111 -p 2049:2049 -p 32767:32767 -p 32768:32768 -e EXPORT_FOLDER=/mnt/nfs-vol bensdoings/nfs-server
Should Be Equal As Integers ${rc} 0
${ip}= Get Container IP %{VCH-PARAMS} nfs-server public
${rc} ${fqdn}= Run And Return Rc And Output docker %{VCH-PARAMS} run --net public ${busybox} nslookup ${ip} | awk -F'${ip} ' '/${ip} /{print $2}'
${rc} ${fqdn}= Run And Return Rc And Output docker %{VCH-PARAMS} run --net public ${busybox} nslookup ${ip} | awk -F'name = ' '/name = /{print $2}'
Should Be Equal As Integers ${rc} 0
${output}= Run bin/vic-machine-linux configure --name=%{VCH-NAME} --target=%{TEST_URL} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --password=%{TEST_PASSWORD} --timeout %{TEST_TIMEOUT} --volume-store=%{TEST_DATASTORE}/%{VCH-NAME}-VOL:default --volume-store=\'nfs://${fqdn}/mnt/nfs-vol?uid=0&gid=0&proto=tcp&port=2049:nfsfqdn\'
Should Contain ${output} Completed successfully
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Run after exit remapping mapped ports

${rc} ${output}= Run And Return Rc And Output mkfifo /tmp/fifo1
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run -id --name ctr1 -p 1900:9999 -p 2200:2222 busybox /bin/top
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run -id --name ctr1 -p 1900:9999 -p 2200:2222 ${busybox} /bin/top
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} attach ctr1 < /tmp/fifo1
Should Be Equal As Integers ${rc} 0
Expand All @@ -111,7 +111,7 @@ Run after exit remapping mapped ports

${rc} ${output}= Run And Return Rc And Output mkfifo /tmp/fifo2
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run -id --name ctr2 -p 1900:9999 -p 3300:3333 busybox /bin/top
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run -id --name ctr2 -p 1900:9999 -p 3300:3333 ${busybox} /bin/top
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} attach ctr2 < /tmp/fifo2
Should Be Equal As Integers ${rc} 0
Expand All @@ -131,7 +131,7 @@ Remap mapped ports after OOB Stop

${rc} ${since}= Run And Return Rc And Output docker %{VCH-PARAMS} info --format '{{json .SystemTime}}'
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} create -it -p 10000:80 -p 10001:80 --name ctr3 busybox
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} create -it -p 10000:80 -p 10001:80 --name ctr3 ${busybox}
Should Be Equal As Integers ${rc} 0
Should Not Contain ${output} Error
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} start ctr3
Expand All @@ -141,7 +141,7 @@ Remap mapped ports after OOB Stop
Power Off VM OOB ctr3*
Wait Until Keyword Succeeds 10x 3s Check For Container Event ctr3 die ${since}

${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} create -it -p 10000:80 -p 20000:22222 --name ctr4 busybox
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} create -it -p 10000:80 -p 20000:22222 --name ctr4 ${busybox}
Should Be Equal As Integers ${rc} 0
Should Not Contain ${output} Error
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} start ctr4
Expand Down Expand Up @@ -171,7 +171,7 @@ Container to container traffic via VCH public interface

${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} pull ${nginx}
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} pull busybox
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} pull ${busybox}
Should Be Equal As Integers ${rc} 0

${rc} ${containerID}= Run And Return Rc And Output docker %{VCH-PARAMS} create --net bridge -p 8085:80 ${nginx}
Expand All @@ -188,23 +188,23 @@ Container to container traffic via VCH public interface
${nginx-ip}= Set Variable @{ip}[0]
${nginx-ip}= Strip String ${nginx-ip} characters="

${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --name anjunabeats busybox /bin/ash -c "wget -O index.html %{EXT-IP}:8085; md5sum index.html"
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --name anjunabeats ${busybox} /bin/ash -c "wget -O index.html %{EXT-IP}:8085; md5sum index.html"
Log ${output}
Should Be Equal As Integers ${rc} 0
Should Not Contain ${output} Error
# Verify hash of nginx default index.html
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} logs anjunabeats
Log ${output}
Should Contain ${output} e3eb0a1df437f3f97a64aca5952c8ea0
Should Contain ${output} 7df3d7cf3358af3f470ac7229387ef94

${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --name abgt250 busybox /bin/ash -c "wget -O index.html ${nginx-ip}:80; md5sum index.html"
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --name abgt250 ${busybox} /bin/ash -c "wget -O index.html ${nginx-ip}:80; md5sum index.html"
Log ${output}
Should Be Equal As Integers ${rc} 0
Should Not Contain ${output} Error
# Verify hash of nginx default index.html
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} logs abgt250
Log ${output}
Should Contain ${output} e3eb0a1df437f3f97a64aca5952c8ea0
Should Contain ${output} 7df3d7cf3358af3f470ac7229387ef94

Remap mapped port after stop container, and then remove stopped container
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} rm -f $(docker %{VCH-PARAMS} ps -aq)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Docker login and pull from docker.io
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} pull victest/busybox
Should Be Equal As Integers ${rc} 1
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} pull victest/public-hello-world
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} pull gcr.io/eminent-nation-87317/busybox
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} login --username=victest --password=incorrectPassword
Should Contain ${output} incorrect username or password
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Commit nano to image
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} exec commit1 apt-get update
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} exec commit1 apt-get install nano
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} exec commit1 apt-get install nano -y
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} stop -t1 commit1
Should Be Equal As Integers ${rc} 0
Expand All @@ -51,7 +51,7 @@ Unsupported commit command
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} stop -t1 commit3
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} commit -c "RUN apt-get install nginx" commit3 debian-env
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} commit -c "RUN apt-get install nginx -y" commit3 debian-env
Should Not Be Equal As Integers ${rc} 0
Should Contain ${output} Error response from daemon: run is not a valid change command

Expand Down
2 changes: 1 addition & 1 deletion tests/test-cases/Group22-Docker-Apps/22-12-centos.robot
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Latest centos container
Should Contain ${output} Installed Packages

Centos:7 container
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run centos:7 yum list
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run centos:centos7 yum list
Log ${output}
Should Be Equal As Integers ${rc} 0
Should Contain ${output} Loaded plugins: fastestmirror, ovl
Expand Down
2 changes: 1 addition & 1 deletion tests/test-cases/Group26-Quota/26-01-Basic.robot
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Create a debian container and commit to an image successfully

${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} exec commit1 apt-get update
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} exec commit1 apt-get install nano
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} exec commit1 apt-get install nano -y
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} stop -t1 commit1
Should Be Equal As Integers ${rc} 0
Expand Down