Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Added python-tempestconf-tempest-devstack-admin/demo-py3
Browse files Browse the repository at this point in the history
* It will test python3 python-tempestconf stuff on devstack.
* use tempestconf_pip_virtualenv_python var when py3 based job
  is invoked.

Change-Id: Ic8a4d146203595a4381f7ae12dc98333589acae6
  • Loading branch information
chkumar246 committed Jan 4, 2019
1 parent 9317a78 commit 7faab49
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .zuul.yaml
Expand Up @@ -9,7 +9,9 @@
check:
jobs:
- python-tempestconf-tempest-devstack-admin
- python-tempestconf-tempest-devstack-admin-py3
- python-tempestconf-tempest-devstack-demo
- python-tempestconf-tempest-devstack-demo-py3
- python-tempestconf-tempest-packstack-admin
- python-tempestconf-tempest-packstack-demo
- tripleo-ci-centos-7-scenario002-standalone
Expand All @@ -18,7 +20,9 @@
gate:
jobs:
- python-tempestconf-tempest-devstack-admin
- python-tempestconf-tempest-devstack-admin-py3
- python-tempestconf-tempest-devstack-demo
- python-tempestconf-tempest-devstack-demo-py3
- python-tempestconf-tempest-packstack-admin
- python-tempestconf-tempest-packstack-demo
- tripleo-ci-centos-7-scenario002-standalone
Expand Down Expand Up @@ -125,3 +129,37 @@
test_demo: true
cloud_admin: packstack-admin

- job:
name: python-tempestconf-tempest-devstack-admin-py3
parent: python-tempestconf-tempest-devstack-admin
description: |
Tempest job for python-tempestconf on a devstack environment with python3 enabled.
vars:
tempestconf_pip_virtualenv_python: "python3"
devstack_localrc:
USE_PYTHON3: true
devstack_services:
s-account: false
s-container: false
s-object: false
s-proxy: false
# without Swift, c-bak cannot run (in the Gate at least)
c-bak: false

- job:
name: python-tempestconf-tempest-devstack-demo-py3
parent: python-tempestconf-tempest-devstack-demo
description: |
Tempest job for python-tempestconf on a devstack environment with python3 enabled
for demo users.
vars:
tempestconf_pip_virtualenv_python: "python3"
devstack_localrc:
USE_PYTHON3: true
devstack_services:
s-account: false
s-container: false
s-object: false
s-proxy: false
# without Swift, c-bak cannot run (in the Gate at least)
c-bak: false
2 changes: 2 additions & 0 deletions roles/generate-tempestconf-file-cloud/tasks/main.yaml
Expand Up @@ -2,6 +2,7 @@
- name: Create python-tempestconf venv with latest pip, setuptools and pbr
pip:
virtualenv: "{{ virtualenvs.tempestconf }}"
virtualenv_python: "{{ tempestconf_pip_virtualenv_python|default(omit) }}"
name: "{{ item }}"
state: latest
with_items:
Expand All @@ -22,6 +23,7 @@
name: "."
virtualenv: "{{ virtualenvs.tempestconf }}"
chdir: "{{ tempestconf_src_relative_path }}"
virtualenv_python: "{{ tempestconf_pip_virtualenv_python|default(omit) }}"

- name: Generate tempest configuration file
shell: |
Expand Down
2 changes: 2 additions & 0 deletions roles/generate-tempestconf-file/tasks/main.yaml
Expand Up @@ -7,6 +7,7 @@
virtualenv: "{{ virtualenvs.tempestconf }}"
name: "{{ item }}"
state: latest
virtualenv_python: "{{ tempestconf_pip_virtualenv_python|default(omit) }}"
with_items:
- pip
- setuptools
Expand All @@ -25,6 +26,7 @@
name: "."
virtualenv: "{{ virtualenvs.tempestconf }}"
chdir: "{{ tempestconf_src_relative_path }}"
virtualenv_python: "{{ tempestconf_pip_virtualenv_python|default(omit) }}"

- name: "Cat keystonerc_ file (only in packstack case)"
shell: |
Expand Down

0 comments on commit 7faab49

Please sign in to comment.