#1 ansible role test configure and execution structure
Merged by alivigni. Opened by alivigni.
https://pagure.io/forks/alivigni/ansible_based_tests.git master

no initial comment

This structure is more accurate of a ansible based test structure.

  • This uses roles and dependencies between roles
  • Not all will be necessary but it follows a consistent structure
  • Files updated in roles for glib2 and gzip
  • Cleaned up playbook notation to use proper format

1 new commit added

  • Directory structure for setting up proper ansible roles to configure and run tests

Pull-Request has been merged by alivigni

I would propose to try to reduce the number of subfolders especially for those simple tests, from a first look it kinda of scared me :)

Also, would we want to keep the .travis.yml files in there as well?

Same question for the files related to galaxy, since I doubt we would want to host our own instance, do we want to keep those files in?

This is the structure of what playbook roles look like and is generated by galaxy so you can get the structure. We can remove the Travis ci file as well as references to galaxy. I should have done that before submitting.

So not all subfolders would be present for all roles, but I do think it is important to show the structure since this is what proper ansible YAML looks like for the examples.

I find the structure detrimental in the way that it makes simple tests look quite complex.

For complex example I would agree though.

Metadata
Changes Summary 45
+6
file added
tests/glib2/playbooks/configure.yml
+2
file added
tests/glib2/playbooks/group_vars/all/global.yml
+29
file added
tests/glib2/playbooks/roles/configure/.travis.yml
+38
file added
tests/glib2/playbooks/roles/configure/README.md
+2
file added
tests/glib2/playbooks/roles/configure/defaults/main.yml
+2
file added
tests/glib2/playbooks/roles/configure/handlers/main.yml
+222
file added
tests/glib2/playbooks/roles/configure/meta/main.yml
+2
file added
tests/glib2/playbooks/roles/configure/tasks/main.yml
+1
file added
tests/glib2/playbooks/roles/configure/tests/inventory
+5
file added
tests/glib2/playbooks/roles/configure/tests/test.yml
+2
file added
tests/glib2/playbooks/roles/configure/vars/main.yml
+29
file added
tests/glib2/playbooks/roles/run_tests/.travis.yml
+38
file added
tests/glib2/playbooks/roles/run_tests/README.md
+2
file added
tests/glib2/playbooks/roles/run_tests/defaults/main.yml
+14
file added
tests/glib2/playbooks/roles/run_tests/files/installed-tests
+10
file added
tests/glib2/playbooks/roles/run_tests/files/test-docker-rawhide
+2
file added
tests/glib2/playbooks/roles/run_tests/handlers/main.yml
+223
file added
tests/glib2/playbooks/roles/run_tests/meta/main.yml
+42
file added
tests/glib2/playbooks/roles/run_tests/tasks/main.yml
+1
file added
tests/glib2/playbooks/roles/run_tests/tests/inventory
+5
file added
tests/glib2/playbooks/roles/run_tests/tests/test.yml
+2
file added
tests/glib2/playbooks/roles/run_tests/vars/main.yml
+9
file added
tests/glib2/playbooks/run_tests.yml
+6
file added
tests/gzip/playbooks/configure.yml
+2
file added
tests/gzip/playbooks/group_vars/all/global.yml
+29
file added
tests/gzip/playbooks/roles/configure/.travis.yml
+38
file added
tests/gzip/playbooks/roles/configure/README.md
+2
file added
tests/gzip/playbooks/roles/configure/defaults/main.yml
+2
file added
tests/gzip/playbooks/roles/configure/handlers/main.yml
+222
file added
tests/gzip/playbooks/roles/configure/meta/main.yml
+2
file added
tests/gzip/playbooks/roles/configure/tasks/main.yml
+1
file added
tests/gzip/playbooks/roles/configure/tests/inventory
+5
file added
tests/gzip/playbooks/roles/configure/tests/test.yml
+2
file added
tests/gzip/playbooks/roles/configure/vars/main.yml
+29
file added
tests/gzip/playbooks/roles/run_tests/.travis.yml
+38
file added
tests/gzip/playbooks/roles/run_tests/README.md
+2
file added
tests/gzip/playbooks/roles/run_tests/defaults/main.yml
+10
file added
tests/gzip/playbooks/roles/run_tests/files/test-simple
+2
file added
tests/gzip/playbooks/roles/run_tests/handlers/main.yml
+223
file added
tests/gzip/playbooks/roles/run_tests/meta/main.yml
+30
file added
tests/gzip/playbooks/roles/run_tests/tasks/main.yml
+1
file added
tests/gzip/playbooks/roles/run_tests/tests/inventory
+5
file added
tests/gzip/playbooks/roles/run_tests/tests/test.yml
+2
file added
tests/gzip/playbooks/roles/run_tests/vars/main.yml
+7
file added
tests/gzip/playbooks/run_tests.yml