Merge pull request #7967 from cevich/restore_apiv2_test

Cirrus: Restore APIv2 Testing
This commit is contained in:
OpenShift Merge Robot 2020-10-13 21:11:02 +02:00 committed by GitHub
commit 98708b1268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 8 deletions

View File

@ -407,6 +407,7 @@ docker-py_test_task:
main_script: *main
always: *artifacts
# Does exactly what it says, execute the podman unit-tests on all primary
# platforms and release versions.
unit_test_task:
@ -425,6 +426,30 @@ unit_test_task:
main_script: *main
always: *artifacts
apiv2_test_task:
name: "APIv2 test on $DISTRO_NV"
alias: apiv2_test
depends_on:
- validate
gce_instance: *standardvm
env:
<<: *stdenvars
TEST_FLAVOR: apiv2
clone_script: *noop # Comes from cache
gopath_cache: *ro_gopath_cache
setup_script: *setup
main_script: *main
always: &logs_artifacts
<<: *artifacts
package_versions_script: '$SCRIPT_BASE/logcollector.sh packages'
ginkgo_node_logs_script: '$SCRIPT_BASE/logcollector.sh ginkgo'
df_script: '$SCRIPT_BASE/logcollector.sh df'
audit_log_script: '$SCRIPT_BASE/logcollector.sh audit'
journal_script: '$SCRIPT_BASE/logcollector.sh journal'
podman_system_info_script: '$SCRIPT_BASE/logcollector.sh podman'
# Execute the podman integration tests on all primary platforms and release
# versions, as root, without involving the podman-remote client.
local_integration_test_task: &local_integration_test_task
@ -445,14 +470,8 @@ local_integration_test_task: &local_integration_test_task
gopath_cache: *ro_gopath_cache
setup_script: *setup
main_script: *main
always: &logs_artifacts
<<: *artifacts
package_versions_script: '$SCRIPT_BASE/logcollector.sh packages'
ginkgo_node_logs_script: '$SCRIPT_BASE/logcollector.sh ginkgo'
df_script: '$SCRIPT_BASE/logcollector.sh df'
audit_log_script: '$SCRIPT_BASE/logcollector.sh audit'
journal_script: '$SCRIPT_BASE/logcollector.sh journal'
podman_system_info_script: '$SCRIPT_BASE/logcollector.sh podman'
always: *logs_artifacts
# Nearly identical to `local_integration_test` except all operations
# are performed through the podman-remote client vs a podman "server"
@ -613,6 +632,7 @@ success_task:
- osx_alt_build
- docker-py_test
- unit_test
- apiv2_test
- local_integration_test
- remote_integration_test
- rootless_integration_test

View File

@ -62,6 +62,10 @@ function _run_unit() {
make localunit
}
function _run_apiv2() {
make localapiv2 |& logformatter
}
function _run_int() {
dotest integration
}

View File

@ -165,6 +165,7 @@ case "$TEST_FLAVOR" in
docker-py) ;&
build) make clean ;;
unit) ;;
apiv2) ;& # use next item
int) ;&
sys) ;&
bindings) ;&