Skip to content

Commit

Permalink
Merge pull request #7967 from cevich/restore_apiv2_test
Browse files Browse the repository at this point in the history
Cirrus: Restore APIv2 Testing
  • Loading branch information
openshift-merge-robot authored Oct 13, 2020
2 parents 8fef35a + 23087f7 commit 98708b1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
36 changes: 28 additions & 8 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions contrib/cirrus/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ function _run_unit() {
make localunit
}

function _run_apiv2() {
make localapiv2 |& logformatter
}

function _run_int() {
dotest integration
}
Expand Down
1 change: 1 addition & 0 deletions contrib/cirrus/setup_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ case "$TEST_FLAVOR" in
docker-py) ;&
build) make clean ;;
unit) ;;
apiv2) ;& # use next item
int) ;&
sys) ;&
bindings) ;&
Expand Down

0 comments on commit 98708b1

Please sign in to comment.