Commit eb6504f5 authored by ale's avatar ale
Browse files

Simplify naming of test playbook

parent ec3b7e59
Pipeline #15402 passed with stage
in 11 minutes and 2 seconds
......@@ -35,7 +35,7 @@ docker_build_and_release_tests:
- with-ssh-key $BUILD_DIR/float/scripts/floatup.py ${LIBVIRT:+--ssh $LIBVIRT} --inventory $BUILD_DIR/hosts.yml --ram 3072 --image ${VM_IMAGE:-buster} up
- with-ssh-key env TESTDATA_DIR=$BUILD_DIR/testdata $BUILD_DIR/float/test-driver init --no-vagrant $BUILD_DIR
- sleep 30
- with-ssh-key $BUILD_DIR/float/test-driver run $BUILD_DIR $PWD/playbooks/ai3-test-docker.yml
- with-ssh-key $BUILD_DIR/float/test-driver run $BUILD_DIR $PWD/playbooks/ai3-test.yml
after_script:
- with-ssh-key $BUILD_DIR/float/test-driver cleanup --no-vagrant $BUILD_DIR
- with-ssh-key $BUILD_DIR/float/scripts/floatup.py ${LIBVIRT:+--ssh ${LIBVIRT}} down
......
---
- hosts: host1
gather_facts: no
tasks:
- name: Dump Ansible configuration for test
copy:
dest: /tmp/test-config.yml
content: "{{ vars|to_nice_yaml }}"
- name: Setup test Docker image
command: "float-pull-image registry.git.autistici.org/ai3/config:integration-test"
register: test_container_image
failed_when: "test_container_image.rc not in [0, 42]"
- name: Run tests
command: "docker run --rm --net host --mount type=bind,source=/tmp/test-config.yml,destination=/test-config.yml registry.git.autistici.org/ai3/config:integration-test"
---
- hosts: localhost
- hosts: host1
gather_facts: no
tasks:
- name: Dump Ansible configuration for test
copy:
dest: /tmp/test-config.yml
content: "{{ vars|to_json }}"
- name: Invoke test runner
command: env PYTHONPATH=../../float/test TEST_CONFIG=/tmp/test-config.yml nosetests -v
args:
chdir: ../test
content: "{{ vars|to_nice_yaml }}"
- name: Setup test Docker image
command: "float-pull-image registry.git.autistici.org/ai3/config:integration-test"
register: test_container_image
failed_when: "test_container_image.rc not in [0, 42]"
- name: Run tests
command: "docker run --rm --net host --mount type=bind,source=/tmp/test-config.yml,destination=/test-config.yml registry.git.autistici.org/ai3/config:integration-test"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment