
This PS updates python modules and code to match Airflow 2.6.2: - bionic py36 gates were removed - python code corrected to match new modules versions - selection of python modules versions was perfrmed based on airflow-2.6.2 constraints - airskiff deploy pipeline was aligned with latest in treasuremap v1.9 - postgresql image updated to 14.8 Change-Id: I65a1b86473ee3e988aae353b59fb5473d75851f9
81 lines
3.0 KiB
YAML
81 lines
3.0 KiB
YAML
# Copyright 2018 AT&T Intellectual Property. All other rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
- name: Airship-Deckhand image build path
|
|
shell: cd "{{ work_dir }}"; pwd
|
|
register: airship_deckhand_path
|
|
vars:
|
|
work_dir: "{{ zuul.project.src_dir | default('') }}/{{ zuul_airship_deckhand_relative_path | default('') }}"
|
|
|
|
- name: Run Integration Tests with Docker
|
|
when: disable_keystone == false
|
|
block:
|
|
- name: Generate Keystone token for integration tests
|
|
shell: |-
|
|
set -e;
|
|
echo $( openstack token issue --format value -c id )
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
register: test_auth_token
|
|
environment:
|
|
OS_CLOUD: openstack_helm
|
|
|
|
- name: Run Integration Tests
|
|
shell: |
|
|
set -ex;
|
|
stestr --test-path deckhand/tests/common/ run --serial --slowest --force-subunit-trace --color
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
environment:
|
|
DECKHAND_IMAGE: "{{ airship_deckhand_image_id.stdout }}"
|
|
DECKHAND_TEST_URL: "127.0.0.1:9000"
|
|
DECKHAND_TEST_DIR: "{{ airship_deckhand_path.stdout }}/deckhand/tests/integration/gabbits"
|
|
TEST_AUTH_TOKEN: "{{ test_auth_token.stdout }}"
|
|
TEST_BARBICAN_URL: "{{ test_barbican_url.stdout }}"
|
|
register: result
|
|
failed_when: "result.rc != 0"
|
|
|
|
- name: Run Integration Tests with uwsgi
|
|
when: disable_keystone == true
|
|
shell: |
|
|
set -xe;
|
|
# NOTE(felipemonteiro): We don't use a venv because they don't play nicely
|
|
# with OpenStack-Helm, which is used to orchestrate various OpenStack
|
|
# services in the integration script called below.
|
|
sudo -E -H pip3 install -e . --verbose --use-pep517
|
|
sudo -E -H pip3 install -r requirements-frozen.txt
|
|
echo "$(pwd)" | sudo tee /usr/local/lib/python3.8/dist-packages/deckhand.pth
|
|
|
|
sudo fdisk --list
|
|
df -h
|
|
sudo mkdir -p /opt/ext_vol
|
|
BIG_VOLUME=$(sudo fdisk -l 2>&1 | grep -E 80G | grep Linux | awk '{print $1}')
|
|
if ! mount | grep "${BIG_VOLUME}"
|
|
then
|
|
sudo mkfs.ext4 "${BIG_VOLUME}"
|
|
sudo mount "${BIG_VOLUME}" /opt/ext_vol
|
|
df -h
|
|
fi
|
|
pifpaf run postgresql -- ./tools/integration-tests.sh
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
environment:
|
|
DECKHAND_TEST_URL: "127.0.0.1:9000"
|
|
DECKHAND_TEST_DIR: "{{ airship_deckhand_path.stdout }}/deckhand/tests/integration/gabbits"
|
|
# BARBICAN_STABLE_COMMIT: "{{ barbican_stable_commit }}"
|
|
register: result
|
|
failed_when: "result.rc != 0"
|