ansible/test/integration/roles
Feanil Patel 0abcebf1e4 Don't convert numbers and booleans to strings.
Before this change if a variable was of type int or bool and the variable was referenced
by another variable, the type would change to string.

eg. defaults/main.yml
```
PORT: 4567
OTHER_CONFIG:
  secret1: "so_secret"
  secret2: "even_more_secret"

CONFIG:
  hostname: "some_hostname"
  port: "{{ PORT }}"
  secrets: "{{ OTHER_CONFIG }}"
```

If you output `CONFIG` to json or yaml, the port would get represented in the output as a
string instead of as a number, but secrets would get represented as a dictionary.  This is
a mis-match in behaviour where some "types" are retained and others are not.  This change
should fix the issue.

Update template test to also test var retainment.

Make the template changes in v2.
Update to only short-circuit for booleans and numbers.

Added an entry to the changelog.
2015-04-11 12:03:42 -04:00
..
ec2_elb_instance_setup
ec2_provision_instances
prepare_rax_tests/defaults Remove unecessary prep tasks 2015-02-11 12:59:01 -06:00
prepare_tests/tasks Rework the shell quoting of remote checksumming 2015-03-02 15:42:18 -08:00
prepare_win_tests/tasks Adding first pass at win_copy, win_file and win_template modules. 2014-12-16 04:47:01 +00:00
setup_ec2 Fixing up shell quoting issues 2014-07-22 10:09:11 -05:00
setup_mysql_db Correct mysql integration indentation 2014-09-10 17:56:28 -04:00
setup_postgresql_db And the encoding needs to be latin1 for this test 2014-12-10 14:51:02 -08:00
test_always_run
test_apt Merge pull request #9957 from hfinucane/apt-deb-tests 2015-02-16 19:15:34 -05:00
test_apt_repository [test_apt_repository] Verify that 'python-apt' auto-installs correctly 2014-05-07 09:28:01 -04:00
test_assemble Move from md5 to sha1 to work on fips-140 enabled systems 2014-11-06 21:28:04 -08:00
test_async Adding integration tests for async fire-and-forget checking 2014-09-25 15:42:45 -05:00
test_authorized_key
test_bad_parsing Fix missing dep on parsing integration test for preparation role 2014-11-19 09:41:09 -06:00
test_become preliminary privlege escalation unification + pbrun 2015-03-10 18:42:36 -04:00
test_binary Better names for the test_binary tests 2015-02-02 19:33:05 -08:00
test_changed_when
test_check_mode Rework the shell quoting of remote checksumming 2015-03-02 15:42:18 -08:00
test_command_shell Move from md5 to sha1 to work on fips-140 enabled systems 2014-11-06 21:28:04 -08:00
test_conditionals added complex bare templated conditional test 2014-12-10 09:21:49 -05:00
test_consul_acl/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 2015-01-24 01:09:03 +00:00
test_consul_inventory/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 2015-01-24 01:09:03 +00:00
test_consul_kv/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 2015-01-24 01:09:03 +00:00
test_consul_service/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 2015-01-24 01:09:03 +00:00
test_consul_session/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 2015-01-24 01:09:03 +00:00
test_copy typofixes - https://github.com/vlajos/misspell_fixer 2014-12-04 22:23:35 +00:00
test_docker Have selinux allow docker<=>nginx communication 2015-03-18 18:56:46 -07:00
test_ec2
test_ec2_ami
test_ec2_asg/tasks Properly empties ASG before terminating it, and waits for ASG to be deleted. 2015-01-27 15:39:26 -05:00
test_ec2_eip Re-enable the ec2_eip test 2014-08-05 09:20:23 -05:00
test_ec2_elb
test_ec2_elb_lb
test_ec2_facts
test_ec2_group Removing cruft leftover from the deprecation of include+with_items 2014-06-03 13:33:26 -05:00
test_ec2_key
test_ec2_tag
test_ec2_vol
test_ec2_vpc
test_embedded_module Fix bug in plugin path caching 2014-10-04 21:47:38 -05:00
test_facts_d
test_failed_when/tasks
test_fetch changed fetch test to match new functionality 2015-02-20 11:32:10 -05:00
test_file Tests for: https://github.com/ansible/ansible-modules-core/issues/778 2015-02-16 07:12:18 -08:00
test_filters typoed the filename 2015-01-12 15:18:15 -08:00
test_gce
test_gce_pd
test_gem
test_get_url Fix py26 difference in ssl socket connect call from 99ba9d6 2014-09-03 10:04:02 -05:00
test_git test_git: add tests for `refspec' argument 2014-12-19 12:29:01 +10:00
test_good_parsing Additional fixes for the new omit parameter variable 2014-08-27 10:06:55 -05:00
test_handlers Correct issue of handlers running on all hosts incorrectly 2014-05-27 12:03:08 -05:00
test_handlers_meta
test_hash_behavior
test_hg
test_ignore_errors
test_includes Add some more integration tests for the task and playbook include mechanism. 2014-07-26 10:37:55 -04:00
test_iterators Security fixes: 2014-07-21 11:20:49 -05:00
test_lineinfile typofixes - https://github.com/vlajos/misspell_fixer 2014-12-04 22:23:35 +00:00
test_lookups added tests for templating and with_items 2014-12-09 11:31:21 -05:00
test_mysql_db typofixes - https://github.com/vlajos/misspell_fixer 2014-12-04 22:23:35 +00:00
test_mysql_user Error message has changed; scrape the new message 2015-02-02 12:05:01 -08:00
test_mysql_variables Adding test Coverage for mysql_variable module 2014-08-01 12:15:05 -04:00
test_ping/tasks
test_pip
test_postgresql New integration tests for postgresql 2014-12-01 19:10:35 -08:00
test_rax Add tests for rax instance_ids with state=absent 2015-02-11 12:59:01 -06:00
test_rax_cbs Remove explicit msg match for invalid size 2015-02-17 12:32:22 -06:00
test_rax_cbs_attachments Add tests for rax_cbs_attachments 2015-02-11 12:59:01 -06:00
test_rax_cdb Add tests for rax_cdb 2015-02-11 12:59:02 -06:00
test_rax_cdb_database Add tests for rax_cdb_database 2015-02-11 12:59:02 -06:00
test_rax_clb Add some extra vars and create a dependent role prepare_rax_tests 2015-02-11 12:59:01 -06:00
test_rax_clb_nodes Add some extra vars and create a dependent role prepare_rax_tests 2015-02-11 12:59:01 -06:00
test_rax_facts Add test_rax_facts 2015-02-11 12:59:01 -06:00
test_rax_identity Add tests for rax_identity 2015-02-11 12:59:02 -06:00
test_rax_keypair Add test_rax_keypair role 2015-02-11 12:59:01 -06:00
test_rax_meta Add test_rax_meta role 2015-02-11 12:59:01 -06:00
test_rax_network Add test_rax_network role 2015-02-11 12:59:01 -06:00
test_script
test_service Fix integration test to check for checksum, not md5sum 2014-11-06 23:17:17 -08:00
test_stat Add a fips fact and use it for integration tests 2014-11-12 09:29:21 -08:00
test_su preliminary privlege escalation unification + pbrun 2015-03-10 18:42:36 -04:00
test_subversion Correct typo 2015-01-28 22:04:10 -08:00
test_sudo preliminary privlege escalation unification + pbrun 2015-03-10 18:42:36 -04:00
test_synchronize
test_template Don't convert numbers and booleans to strings. 2015-04-11 12:03:42 -04:00
test_unarchive Do not mark "skipped" when changed is false 2015-02-17 15:02:08 -06:00
test_var_blending Correcting var blending integration test 2014-07-10 15:54:38 -05:00
test_var_precedence Split out various vars-related things to avoid merging too early 2014-11-17 15:31:55 -06:00
test_var_precedence_dep Fix order of resolving dependent role variables from vars files 2014-10-03 13:30:47 -05:00
test_var_precedence_inven_override/tasks Test that we can override variables set in inventory when the vars_file name is templated 2014-09-09 15:43:10 -07:00
test_var_precedence_role1 Fix order of resolving dependent role variables from vars files 2014-10-03 13:30:47 -05:00
test_var_precedence_role2 Fix issue with vars precedence from roles 2014-09-30 15:50:46 -05:00
test_var_precedence_role3 Correct variable blending from vars_files with hostvars in them 2014-08-20 15:49:01 -05:00
test_win_copy Revised following comments from Chris Church. 2014-12-16 04:47:01 +00:00
test_win_feature Add integration tests for the win_feature module. 2014-09-30 16:20:20 -04:00
test_win_fetch/tasks Fix PowerShell plugin issues affecting fetch module when used against Windows hosts. 2014-12-01 22:18:35 -05:00
test_win_file Adding first pass at win_copy, win_file and win_template modules. 2014-12-16 04:47:01 +00:00
test_win_get_url/tasks Add basic tests for win_get_url and win_msi modules. 2014-06-19 14:26:55 -05:00
test_win_msi/tasks Add basic tests for win_get_url and win_msi modules. 2014-06-19 14:26:55 -05:00
test_win_ping/tasks Add integration tests for fetch/slurp, make powershell fetch/slurp work as close as possible to existing fetch/slurp modules. 2014-06-19 14:25:28 -05:00
test_win_raw/tasks Added winrm test for long-running command. 2014-08-18 07:49:42 -04:00
test_win_script Update PowerShell command line processing to handle parameters passed via splatting. 2014-11-23 22:53:10 -05:00
test_win_service Add integration tests for win_service module. 2014-07-02 08:12:40 -04:00
test_win_setup/tasks Add tests for new windows facts. 2014-08-31 11:52:20 -04:00
test_win_slurp/tasks Add integration tests for fetch/slurp, make powershell fetch/slurp work as close as possible to existing fetch/slurp modules. 2014-06-19 14:25:28 -05:00
test_win_stat/tasks typofixes - https://github.com/vlajos/misspell_fixer 2014-12-04 22:23:35 +00:00
test_win_template Adding first pass at win_copy, win_file and win_template modules. 2014-12-16 04:47:01 +00:00
test_win_user Update win_user tests to set a group on user creation. 2015-04-11 01:55:56 -04:00
test_yum Removing cruft leftover from the deprecation of include+with_items 2014-06-03 13:33:26 -05:00