Add zuul jobs for mistral-tempest-plugin
Also defines the devstack jobs for mistral and python-mistralclient. Change-Id: I7eaff91b3bc3b94ca97ffc7a1ace74c86117bd07 Depends-On: I4a3068cbe765a16f6ba4b0c3e38410929ca3a14c Needed-By: I10c06d3fb644c7e3026eac7a00660f0465fb0749
This commit is contained in:
parent
1b0854ee8d
commit
09370b7a51
73
.zuul.yaml
Normal file
73
.zuul.yaml
Normal file
@ -0,0 +1,73 @@
|
||||
- job:
|
||||
name: mistral-devstack-tempest-base
|
||||
parent: devstack-tempest
|
||||
pre-run: playbooks/tempest/pre.yaml
|
||||
timeout: 9000
|
||||
required-projects:
|
||||
- openstack-dev/devstack
|
||||
- openstack-infra/devstack-gate
|
||||
- openstack/heat
|
||||
- openstack/mistral
|
||||
- openstack/mistral-lib
|
||||
- openstack/mistral-tempest-plugin
|
||||
- openstack/python-mistralclient
|
||||
- openstack/tempest
|
||||
- openstack/zaqar
|
||||
- openstack/python-zaqarclient
|
||||
vars:
|
||||
tox_envlist: all
|
||||
tempest_test_regex: mistral
|
||||
devstack_localrc:
|
||||
TEMPEST_PLUGINS: "'{{ ansible_user_dir }}/src/git.openstack.org/openstack/mistral-tempest-plugin'"
|
||||
SWIFT_HASH: secrethash
|
||||
MYSQL_ROOT_PW: secretdatabase
|
||||
MISTRAL_USE_MOD_WSGI: True
|
||||
MISTRAL_RPC_IMPLEMENTATION: oslo
|
||||
devstack_services:
|
||||
heat: True
|
||||
h-api: True
|
||||
h-api-cfn: True
|
||||
h-api-cw: True
|
||||
h-eng: True
|
||||
s-proxy: True
|
||||
s-object: True
|
||||
s-container: True
|
||||
s-account: True
|
||||
tempest: True
|
||||
devstack_plugins:
|
||||
mistral: https://git.openstack.org/openstack/mistral
|
||||
heat: https://git.openstack.org/openstack/heat
|
||||
zaqar: https://git.openstack.org/openstack/zaqar
|
||||
|
||||
- job:
|
||||
name: mistral-devstack
|
||||
parent: mistral-devstack-tempest-base
|
||||
|
||||
- job:
|
||||
name: mistral-devstack-kombu
|
||||
parent: mistral-devstack-tempest-base
|
||||
vars:
|
||||
devstack_localrc:
|
||||
MISTRAL_RPC_IMPLEMENTATION: kombu
|
||||
|
||||
- job:
|
||||
name: mistral-devstack-non-apache
|
||||
parent: mistral-devstack-tempest-base
|
||||
vars:
|
||||
devstack_localrc:
|
||||
MISTRAL_USE_MOD_WSGI: False
|
||||
|
||||
- project:
|
||||
name: openstack/mistral-tempest-plugin
|
||||
check:
|
||||
jobs:
|
||||
- mistral-devstack
|
||||
- mistral-devstack-non-apache:
|
||||
branches: ^(?!stable/(newton|ocata)).*$
|
||||
- mistral-devstack-kombu:
|
||||
branches: ^(?!stable/newton).*$
|
||||
gate:
|
||||
jobs:
|
||||
- mistral-devstack
|
||||
- mistral-devstack-non-apache
|
||||
- mistral-devstack-kombu
|
@ -157,24 +157,17 @@ class SSHActionsTestsV2(base.TestCaseAdvanced):
|
||||
self.private_key, self.public_key = utils.generate_key_pair()
|
||||
self.key_name = 'mistral-functional-tests-key'
|
||||
|
||||
# If ZUUL_PROJECT is specified, it means
|
||||
# tests are running on Jenkins gate.
|
||||
self.key_dir = SSH_KEYS_DIRECTORY
|
||||
|
||||
if os.environ.get('ZUUL_PROJECT'):
|
||||
self.key_dir = "/opt/stack/new/.ssh/"
|
||||
|
||||
if not path.exists(self.key_dir):
|
||||
os.mkdir(self.key_dir)
|
||||
else:
|
||||
self.key_dir = SSH_KEYS_DIRECTORY
|
||||
self.key_path = self.key_dir + self.key_name
|
||||
|
||||
utils.save_text_to(
|
||||
self.private_key,
|
||||
self.key_dir + self.key_name,
|
||||
self.key_path,
|
||||
overwrite=True
|
||||
)
|
||||
|
||||
LOG.info("Private key saved to %s", self.key_dir + self.key_name)
|
||||
LOG.info("Private key saved to %s", self.key_path)
|
||||
|
||||
# Create keypair in nova.
|
||||
self.mgr.keypairs_client.create_keypair(
|
||||
@ -233,7 +226,7 @@ class SSHActionsTestsV2(base.TestCaseAdvanced):
|
||||
mgr.compute_security_group_rules_client.delete_security_group_rule(
|
||||
self.ssh_rule_id
|
||||
)
|
||||
os.remove(self.key_dir + self.key_name)
|
||||
os.remove(self.key_path)
|
||||
|
||||
super(SSHActionsTestsV2, self).tearDown()
|
||||
|
||||
@ -244,7 +237,7 @@ class SSHActionsTestsV2(base.TestCaseAdvanced):
|
||||
'cmd': 'hostname',
|
||||
'host': self.public_vm_ip,
|
||||
'username': CONF.validation.image_ssh_user,
|
||||
'private_key_filename': self.key_name
|
||||
'private_key_filename': self.key_path
|
||||
}
|
||||
|
||||
resp, body = self.client.create_action_execution(
|
||||
@ -270,7 +263,7 @@ class SSHActionsTestsV2(base.TestCaseAdvanced):
|
||||
'cmd': 'hostname',
|
||||
'host': guest_vm_ip,
|
||||
'username': CONF.validation.image_ssh_user,
|
||||
'private_key_filename': self.key_name,
|
||||
'private_key_filename': self.key_path,
|
||||
'gateway_host': self.public_vm_ip,
|
||||
'gateway_username': CONF.validation.image_ssh_user
|
||||
}
|
||||
|
10
playbooks/tempest/pre.yaml
Normal file
10
playbooks/tempest/pre.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
- hosts: tempest
|
||||
tasks:
|
||||
- name: Create .ssh dir and make it available to stack and tempest user
|
||||
file:
|
||||
path: /home/tempest/.ssh
|
||||
state: directory
|
||||
mode: u=rwx,g=rwx,o=rx,g+s
|
||||
owner: tempest
|
||||
group: stack
|
||||
become: yes
|
Loading…
Reference in New Issue
Block a user