This follows removal of jobs from project-config. [1] New jobs use newer node versions and new Zuul v3 format, reusing devstack for deployment of OpenStack for functional testing of jslib. Version tests have been adapted to follow support logic already in place instead of hardcoded supported versions. Includes workaround (fixup) of devstack's bug. [2] Move the functional test to experimental for now, because version discovery doesn't work right and Firefox is generally grumpy. We want to get the structural stuff in first. [1] https://review.opendev.org/702030 [2] https://bugs.launchpad.net/devstack/+bug/1860287 Depends-on: https://review.opendev.org/704882 Depends-on: https://review.opendev.org/726547 Co-authored-by: Monty Taylor <mordred@inaugust.com> Change-Id: I197eb2b59be7a49d168edf09d554b444bbcc29b2
66 lines
1.9 KiB
YAML
66 lines
1.9 KiB
YAML
- job:
|
|
name: js-openstack-lib-functional-tests-base
|
|
# We use tox-functional-consumer as a base job because it's
|
|
# the closest we've got. It'll cause tox to get installed, but
|
|
# we override the run so it shouldn't matter.
|
|
parent: devstack-tox-functional-consumer
|
|
pre-run:
|
|
- playbooks/prepare-env-for-tests.yml
|
|
# NOTE(yoctozepto): devstack starts WSGI-based, API services too early
|
|
# to make post-config apply to them
|
|
# see: https://bugs.launchpad.net/devstack/+bug/1860287
|
|
- playbooks/fixup-devstack.yml
|
|
run: playbooks/run-npm.yml
|
|
post-run:
|
|
- playbooks/fetch-javascript-output.yml
|
|
vars:
|
|
npm_command: functional-test
|
|
|
|
# NOTE(yoctozepto): we need relaxed CORS allowed_origin to be able to
|
|
# test browsers without hacking them to ignore CORS
|
|
devstack_local_conf:
|
|
post-config:
|
|
$KEYSTONE_CONF:
|
|
cors:
|
|
allowed_origin: '*'
|
|
$GLANCE_API_CONF:
|
|
cors:
|
|
allowed_origin: '*'
|
|
$NEUTRON_CONF:
|
|
cors:
|
|
allowed_origin: '*'
|
|
$NOVA_CONF:
|
|
cors:
|
|
allowed_origin: '*'
|
|
|
|
devstack_services:
|
|
tls-proxy: false # FIXME(yoctozepto): we can't have tls atm
|
|
|
|
# NOTE(yoctozepto): disable Swift & Cinder - not tested atm
|
|
# but enabled by parent (let's conserve resources)
|
|
|
|
# Swift services
|
|
s-account: false
|
|
s-container: false
|
|
s-object: false
|
|
s-proxy: false
|
|
|
|
# Cinder services
|
|
c-api: false
|
|
c-bak: false
|
|
c-sch: false
|
|
c-vol: false
|
|
cinder: false
|
|
|
|
- job:
|
|
name: js-openstack-lib-unit-tests-nodejs12
|
|
parent: nodejs-run-test-browser
|
|
vars:
|
|
node_version: 12
|
|
|
|
- job:
|
|
name: js-openstack-lib-functional-tests-nodejs12
|
|
parent: js-openstack-lib-functional-tests-base
|
|
vars:
|
|
node_version: 12
|