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))
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.
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))
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:
(cd targets/check_mode && ./runme.sh $(TEST_FLAGS))

@ -2,22 +2,22 @@
gather_facts: True
roles:
# In destructive because it creates and removes a user
- { role: test_become, tags: test_become}
- { role: test_service, tags: [test_service, needs_privileged] }
- { role: test_pip, tags: test_pip }
- { role: test_gem, tags: test_gem }
- { role: test_yum, tags: test_yum }
- { role: test_apt, tags: test_apt }
- { role: test_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: test_mysql_db, tags: test_mysql_db}
- { role: test_mysql_user, tags: test_mysql_user}
- { role: test_mysql_variables, tags: test_mysql_variables}
- { role: test_docker, tags: test_docker }
- { role: test_zypper, tags: test_zypper}
- { role: test_zypper_repository, tags: test_zypper_repository}
- { role: test_uri, tags: test_uri }
- { role: test_get_url, tags: test_get_url }
- { role: test_apache2_module, tags: test_apache2_module }
- { role: become, tags: test_become}
- { role: service, tags: [test_service, needs_privileged] }
- { role: pip, tags: test_pip }
- { role: gem, tags: test_gem }
- { role: yum, tags: test_yum }
- { role: apt, tags: test_apt }
- { role: apt_repository, tags: [test_apt_repository, test_apt_key] }
- { role: postgresql, tags: [test_postgresql, test_postgresql_db, test_postgresql_privs, test_postgresql_user, needs_privileged] }
- { role: mysql_db, tags: test_mysql_db}
- { role: mysql_user, tags: test_mysql_user}
- { role: mysql_variables, tags: test_mysql_variables}
- { role: docker, tags: test_docker }
- { role: zypper, tags: test_zypper}
- { role: zypper_repository, tags: test_zypper_repository}
- { role: uri, tags: test_uri }
- { role: get_url, tags: test_get_url }
- { role: apache2_module, tags: test_apache2_module }
# 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
gather_facts: True
roles:
- { role: test_ping, tags: test_ping }
- { role: test_special_vars, tags: test_special_vars }
- { role: test_ignore_errors, tags: test_ignore_errors }
- { role: test_conditionals, tags: test_conditionals }
- { role: test_iterators, tags: test_iterators }
- { role: test_lookups, tags: test_lookups }
- { role: test_changed_when, tags: test_changed_when }
- { role: test_failed_when, tags: test_failed_when }
- { role: test_until, tags: test_until }
- { role: test_copy, tags: test_copy }
- { role: test_stat, tags: test_stat }
- { role: test_template, tags: test_template }
- { role: test_file, tags: test_file }
- { role: test_fetch, tags: test_fetch }
- { role: test_synchronize, tags: test_synchronize }
- { role: test_assemble, tags: test_assemble }
- { role: test_subversion, tags: test_subversion }
- { role: test_hg, tags: test_hg }
- { role: test_lineinfile, tags: test_lineinfile }
- { role: test_unarchive, tags: test_unarchive }
- { role: test_filters, tags: test_filters }
- { role: test_facts_d, tags: test_facts_d }
- { role: test_async, tags: [test_async, test_async_status, test_async_wrapper] }
- { role: test_command_shell, tags: [test_command_shell, test_command, test_shell] }
- { role: test_task_ordering, tags: test_task_ordering }
- { role: test_script, tags: test_script }
- { role: test_authorized_key, tags: test_authorized_key }
- { role: test_embedded_module, tags: test_embedded_module }
- { role: test_add_host, tags: test_add_host }
- { role: test_binary, tags: test_binary }
- { role: test_loops, tags: test_loops }
- { role: test_mount, tags: [test_mount, needs_root, needs_privileged]}
- { role: test_include_vars, tags: test_include_vars }
- { role: ping, tags: test_ping }
- { role: special_vars, tags: test_special_vars }
- { role: ignore_errors, tags: test_ignore_errors }
- { role: conditionals, tags: test_conditionals }
- { role: iterators, tags: test_iterators }
- { role: lookups, tags: test_lookups }
- { role: changed_when, tags: test_changed_when }
- { role: failed_when, tags: test_failed_when }
- { role: until, tags: test_until }
- { role: copy, tags: test_copy }
- { role: stat, tags: test_stat }
- { role: template, tags: test_template }
- { role: file, tags: test_file }
- { role: fetch, tags: test_fetch }
- { role: synchronize, tags: test_synchronize }
- { role: assemble, tags: test_assemble }
- { role: subversion, tags: test_subversion }
- { role: hg, tags: test_hg }
- { role: lineinfile, tags: test_lineinfile }
- { role: unarchive, tags: test_unarchive }
- { role: filters, tags: test_filters }
- { role: facts_d, tags: test_facts_d }
- { role: async, tags: [test_async, test_async_status, test_async_wrapper] }
- { role: command_shell, tags: [test_command_shell, test_command, test_shell] }
- { role: task_ordering, tags: test_task_ordering }
- { role: script, tags: test_script }
- { role: authorized_key, tags: test_authorized_key }
- { role: embedded_module, tags: test_embedded_module }
- { role: add_host, tags: test_add_host }
- { role: binary, tags: test_binary }
- { role: loops, tags: test_loops }
- { role: mount, tags: [test_mount, needs_root, needs_privileged]}
- { 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