Migrate Linux CI roles to test targets. (#17997)

pull/18005/head
Matt Clay 8 years ago committed by GitHub
parent 374e4348e4
commit 75e4645ee7

@ -64,7 +64,7 @@ environment:
(cd targets/environment && ./runme.sh $(TEST_FLAGS)) (cd targets/environment && ./runme.sh $(TEST_FLAGS))
non_destructive: setup non_destructive: setup
ansible-playbook non_destructive.yml -i $(INVENTORY) -e outputdir=$(TEST_DIR) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS) ANSIBLE_ROLES_PATH=targets ansible-playbook non_destructive.yml -i $(INVENTORY) -e outputdir=$(TEST_DIR) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS)
# Tests which can be run when running as root and a local SSH daemon is available. # Tests which can be run when running as root and a local SSH daemon is available.
test_root_ssh: test_connection_local test_connection_chroot test_connection_ssh test_connection_paramiko_ssh test_delegate_to test_root_ssh: test_connection_local test_connection_chroot test_connection_ssh test_connection_paramiko_ssh test_delegate_to
@ -135,7 +135,7 @@ test_connection_winrm:
(cd targets/connection_winrm && ./runme.sh $(TEST_FLAGS)) (cd targets/connection_winrm && ./runme.sh $(TEST_FLAGS))
destructive: setup destructive: setup
ansible-playbook destructive.yml -i $(INVENTORY) -e outputdir=$(TEST_DIR) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS) ANSIBLE_ROLES_PATH=targets ansible-playbook destructive.yml -i $(INVENTORY) -e outputdir=$(TEST_DIR) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS)
check_mode: check_mode:
(cd targets/check_mode && ./runme.sh $(TEST_FLAGS)) (cd targets/check_mode && ./runme.sh $(TEST_FLAGS))

@ -2,22 +2,22 @@
gather_facts: True gather_facts: True
roles: roles:
# In destructive because it creates and removes a user # In destructive because it creates and removes a user
- { role: test_become, tags: test_become} - { role: become, tags: test_become}
- { role: test_service, tags: [test_service, needs_privileged] } - { role: service, tags: [test_service, needs_privileged] }
- { role: test_pip, tags: test_pip } - { role: pip, tags: test_pip }
- { role: test_gem, tags: test_gem } - { role: gem, tags: test_gem }
- { role: test_yum, tags: test_yum } - { role: yum, tags: test_yum }
- { role: test_apt, tags: test_apt } - { role: apt, tags: test_apt }
- { role: test_apt_repository, tags: [test_apt_repository, test_apt_key] } - { role: apt_repository, tags: [test_apt_repository, test_apt_key] }
- { role: test_postgresql, tags: [test_postgresql, test_postgresql_db, test_postgresql_privs, test_postgresql_user, needs_privileged] } - { role: postgresql, tags: [test_postgresql, test_postgresql_db, test_postgresql_privs, test_postgresql_user, needs_privileged] }
- { role: test_mysql_db, tags: test_mysql_db} - { role: mysql_db, tags: test_mysql_db}
- { role: test_mysql_user, tags: test_mysql_user} - { role: mysql_user, tags: test_mysql_user}
- { role: test_mysql_variables, tags: test_mysql_variables} - { role: mysql_variables, tags: test_mysql_variables}
- { role: test_docker, tags: test_docker } - { role: docker, tags: test_docker }
- { role: test_zypper, tags: test_zypper} - { role: zypper, tags: test_zypper}
- { role: test_zypper_repository, tags: test_zypper_repository} - { role: zypper_repository, tags: test_zypper_repository}
- { role: test_uri, tags: test_uri } - { role: uri, tags: test_uri }
- { role: test_get_url, tags: test_get_url } - { role: get_url, tags: test_get_url }
- { role: test_apache2_module, tags: test_apache2_module } - { role: apache2_module, tags: test_apache2_module }
# This removes ~/.ssh/known_hosts and /etc/ssh/known_hosts # This removes ~/.ssh/known_hosts and /etc/ssh/known_hosts
- { role: test_git, tags: test_git } - { role: git, tags: test_git }

@ -1,36 +1,36 @@
- hosts: testhost - hosts: testhost
gather_facts: True gather_facts: True
roles: roles:
- { role: test_ping, tags: test_ping } - { role: ping, tags: test_ping }
- { role: test_special_vars, tags: test_special_vars } - { role: special_vars, tags: test_special_vars }
- { role: test_ignore_errors, tags: test_ignore_errors } - { role: ignore_errors, tags: test_ignore_errors }
- { role: test_conditionals, tags: test_conditionals } - { role: conditionals, tags: test_conditionals }
- { role: test_iterators, tags: test_iterators } - { role: iterators, tags: test_iterators }
- { role: test_lookups, tags: test_lookups } - { role: lookups, tags: test_lookups }
- { role: test_changed_when, tags: test_changed_when } - { role: changed_when, tags: test_changed_when }
- { role: test_failed_when, tags: test_failed_when } - { role: failed_when, tags: test_failed_when }
- { role: test_until, tags: test_until } - { role: until, tags: test_until }
- { role: test_copy, tags: test_copy } - { role: copy, tags: test_copy }
- { role: test_stat, tags: test_stat } - { role: stat, tags: test_stat }
- { role: test_template, tags: test_template } - { role: template, tags: test_template }
- { role: test_file, tags: test_file } - { role: file, tags: test_file }
- { role: test_fetch, tags: test_fetch } - { role: fetch, tags: test_fetch }
- { role: test_synchronize, tags: test_synchronize } - { role: synchronize, tags: test_synchronize }
- { role: test_assemble, tags: test_assemble } - { role: assemble, tags: test_assemble }
- { role: test_subversion, tags: test_subversion } - { role: subversion, tags: test_subversion }
- { role: test_hg, tags: test_hg } - { role: hg, tags: test_hg }
- { role: test_lineinfile, tags: test_lineinfile } - { role: lineinfile, tags: test_lineinfile }
- { role: test_unarchive, tags: test_unarchive } - { role: unarchive, tags: test_unarchive }
- { role: test_filters, tags: test_filters } - { role: filters, tags: test_filters }
- { role: test_facts_d, tags: test_facts_d } - { role: facts_d, tags: test_facts_d }
- { role: test_async, tags: [test_async, test_async_status, test_async_wrapper] } - { role: async, tags: [test_async, test_async_status, test_async_wrapper] }
- { role: test_command_shell, tags: [test_command_shell, test_command, test_shell] } - { role: command_shell, tags: [test_command_shell, test_command, test_shell] }
- { role: test_task_ordering, tags: test_task_ordering } - { role: task_ordering, tags: test_task_ordering }
- { role: test_script, tags: test_script } - { role: script, tags: test_script }
- { role: test_authorized_key, tags: test_authorized_key } - { role: authorized_key, tags: test_authorized_key }
- { role: test_embedded_module, tags: test_embedded_module } - { role: embedded_module, tags: test_embedded_module }
- { role: test_add_host, tags: test_add_host } - { role: add_host, tags: test_add_host }
- { role: test_binary, tags: test_binary } - { role: binary, tags: test_binary }
- { role: test_loops, tags: test_loops } - { role: loops, tags: test_loops }
- { role: test_mount, tags: [test_mount, needs_root, needs_privileged]} - { role: mount, tags: [test_mount, needs_root, needs_privileged]}
- { role: test_include_vars, tags: test_include_vars } - { role: include_vars, tags: test_include_vars }

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save