Skip to content

Commit

Permalink
Merge pull request #910 from ceph/ceph-volume-tests
Browse files Browse the repository at this point in the history
ceph-volume: adds pr tests for the simple subcommand
  • Loading branch information
alfredodeza authored Nov 10, 2017
2 parents 622b614 + 4aaf3fa commit 248aebb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ceph-volume-ansible-prs/build/build
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ fi
pkgs=( "tox" )
install_python_packages "pkgs[@]"

cd src/ceph-volume/ceph_volume/tests/functional
cd $TEST_PATH

CEPH_DEV_BRANCH=$BRANCH CEPH_DEV_SHA1=$SHA $VENV/tox --workdir=$WORKDIR -vre $DISTRO-$OBJECTSTORE-$SCENARIO -- --provider=libvirt
41 changes: 32 additions & 9 deletions ceph-volume-ansible-prs/config/definitions/ceph-volume-pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- project:
name: ceph-volume-ansible-prs
name: ceph-volume-ansible-prs-lvm
distro:
- xenial
- centos7
Expand All @@ -9,14 +9,36 @@
scenario:
- create
- prepare_activate
test_path:
- src/ceph-volume/ceph_volume/tests/functional/lvm
subcommand:
- lvm

jobs:
- 'ceph-volume-prs-{distro}-{objectstore}-{scenario}'
- 'ceph-volume-prs-{subcommand}-{distro}-{objectstore}-{scenario}'

- project:
name: ceph-volume-ansible-prs-simple
distro:
- xenial
- centos7
objectstore:
- bluestore
- filestore
scenario:
- activate
test_path:
- src/ceph-volume/ceph_volume/tests/functional/simple
subcommand:
- simple

jobs:
- 'ceph-volume-prs-{subcommand}-{distro}-{objectstore}-{scenario}'


- job-template:
name: 'ceph-volume-prs-{distro}-{objectstore}-{scenario}'
display-name: 'ceph-volume: Pull Request [{distro}-{objectstore}-{scenario}]'
name: 'ceph-volume-prs-{subcommand}-{distro}-{objectstore}-{scenario}'
display-name: 'ceph-volume {subcommand}: Pull Request [{distro}-{objectstore}-{scenario}]'
node: vagrant&&libvirt
concurrent: true
project-type: freestyle
Expand All @@ -43,14 +65,14 @@
org-list:
- ceph
only-trigger-phrase: true
trigger-phrase: 'jenkins test ceph-volume {distro}-{objectstore}-{scenario}'
trigger-phrase: 'jenkins test ceph-volume {subcommand} {distro}-{objectstore}-{scenario}'
github-hooks: true
permit-all: true
auto-close-on-fail: false
status-context: "ceph-volume testing {distro}-{objectstore}-{scenario}"
started-status: "ceph-volume running {distro}-{objectstore}-{scenario}"
success-status: "ceph-volume {distro}-{objectstore}-{scenario} OK"
failure-status: "ceph-volume {distro}-{objectstore}-{scenario} failed"
status-context: "ceph-volume {subcommand} testing {distro}-{objectstore}-{scenario}"
started-status: "ceph-volume {subcommand} running {distro}-{objectstore}-{scenario}"
success-status: "ceph-volume {subcommand} {distro}-{objectstore}-{scenario} OK"
failure-status: "ceph-volume {subcommand} {distro}-{objectstore}-{scenario} failed"

scm:
- git:
Expand All @@ -69,6 +91,7 @@
SCENARIO={scenario}
DISTRO={distro}
OBJECTSTORE={objectstore}
TEST_PATH={test_path}
- shell:
!include-raw-escape:
- ../../../scripts/build_utils.sh
Expand Down

0 comments on commit 248aebb

Please sign in to comment.