#187 WIP - updated qcow2 and docker inventory to be static inventories
Opened by bgoncalv. Modified
bgoncalv/standard-test-roles yaml-inventory  into  master

Download 187.patch
no initial comment

rebased onto f0077f19081ab1ce810f5635beffaa87bf48172a

rebased onto b8f083dab3bbe492caae9fb60a6403e82e42be6f

I have been able to create 1 single inventory file with 3 different hosts using:

TEST_SUBJECTS="../atomic.qcow2 local docker:docker.io/library/fedora:rawhide" and merge-standard-inventory script

localhost:
  hosts:
      ../atomic.qcow2-22719:
        ansible_host: 127.0.0.3
        ansible_port: '2222'
        ansible_python_interpreter: /usr/bin/python2
        ansible_ssh_common_args: -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
        ansible_ssh_pass: foobar
        ansible_ssh_private_key_file: /tmp/inventory-cloudZ3WqeB/identity
        ansible_user: root
        host_directory: /tmp/inventory-cloudZ3WqeB
        host_pid: 22719
        image: ../atomic.qcow2
      551a34441393af4d321b059337556858543f04a8d6a9a3511a895071cc3f6366:
        ansible_connection: docker
        ansible_python_interpreter: /usr/bin/python3
      local:
        ansible_connection: local

rebased onto 3435640adb8ce334880a77dcba13ec0aa48c562b

1 new commit added

  • fixed subjects for create-local

rebased onto 73f92924874bf92db893b3704be9a6d20dd96139

Tested the command below with build https://copr.fedorainfracloud.org/coprs/g/osci/standard-test-roles/build/752735/

TEST_SUBJECTS=../atomic.qcow2 sti --tag atomic
TEST_SUBJECTS=docker:docker.io/library/fedora:rawhide sti --tag container
TEST_SUBJECTS="" sti --tag classic
TEST_SUBJECTS="local" sti --tag classic
sti --tag atomic --test-subjects ../atomic.qcow2
sti --tag container --test-subjects docker:docker.io/library/fedora:rawhide
sti --tag classic --test-subjects local
sti --tag classic

TEST_ARTIFACTS=, TEST_DEBUG=1 and sti with "--debug" options are also supported.

rebased onto f3d37a32c038976f73702ede3c92e1022609f03f

rebased onto 4a153f07a65aa004d6ef32f16b9e7fe488c951d0

Exit codes:
0 - Pass
1 - Provision of test subject failed
2 - execution of test playbook failed.

rebased onto fe1bbd47d8ef5c2fdb1d8b7730cf617dd1c0ed53

Added support to local inventory file when starting container. The local inventory will probably be replaced in the future, but at least we don't break the current tests that use it.

rebased onto 7e35c10e92a717985bd835ed5d1d63865ddbb4a3

Metadata