ansible/test/integration/roles
Feanil Patel 892e230514 Don't convert nulls to strings.
This change is similar to https://github.com/ansible/ansible/pull/10465

It extends the logic there to also support none types.  Right now if you have
a '!!null' in yaml, and that var gets passed around, it will get converted to
a string.

eg. defaults/main.yml
```
ENABLE_AWESOME_FEATURE: !!null # Yaml Null
OTHER_CONFIG:
  secret1: "so_secret"
  secret2: "even_more_secret"

CONFIG:
  hostname: "some_hostname"
  features:
    awesame_feature: "{{ ENABLE_AWESOME_FEATURE}}"
  secrets: "{{ OTHER_CONFIG }}"
```

If you output `CONFIG` to json or yaml, the feature flag would get represented in the output
as a string instead of as a null, 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.

I also updated the template test to test for this and made the changes to v2.

Added a changelog entry specifically for the change from empty string to null as the default.

Made the null representation configurable.

It still defaults to the python NoneType but can be overriden to be an emptystring by updating
the DEFAULT_NULL_REPRESENTATION config.
2015-08-19 18:35:07 -04:00
..
ec2_elb_instance_setup
ec2_provision_instances
prepare_rax_tests/defaults Make the wait_timeout for rax tests a configurable default 2015-06-29 12:09:16 -05:00
prepare_tests/tasks Rework the shell quoting of remote checksumming 2015-03-02 15:42:18 -08:00
prepare_win_tests Allow prepare_win_tests role to run multiple times, before each role that depends on it. 2015-05-31 23:15:28 -04:00
setup_ec2
setup_mysql_db Add Fedora mysql vars so we get mariadb rather than mariadb-galera 2015-04-30 16:16:27 -07:00
setup_postgresql_db
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_assemble
test_async Removing invocation from async test, as it's pointless 2015-07-15 12:03:02 -04:00
test_authorized_key Lots of fixes for integration test bugs 2015-07-10 01:53:59 -04:00
test_azure assert password or ssh key provided on new image creation 2015-07-09 13:44:09 -04:00
test_bad_parsing fixed typo 2015-07-27 22:54:57 -04:00
test_become preliminary privlege escalation unification + pbrun 2015-03-10 18:42:36 -04:00
test_binary
test_changed_when
test_check_mode Rework the shell quoting of remote checksumming 2015-03-02 15:42:18 -08:00
test_command_shell Fixing up some output stuff 2015-07-14 00:23:17 -04:00
test_conditionals Document and test 'is undefined' rather than 'is not defined' 2015-07-25 14:05:27 +02:00
test_consul_acl/tasks
test_consul_inventory/tasks
test_consul_kv/tasks
test_consul_service/tasks
test_consul_session/tasks
test_copy added test for first_available and copy 2015-06-12 23:54:09 -04:00
test_cs_account cloudstack: add test for cs_account 2015-05-11 17:37:35 +02:00
test_cs_affinitygroup cloudstack: fix tests unhashable type: 'dict' 2015-08-19 21:39:58 +02:00
test_cs_common/defaults cloudstack: integration tests 2015-05-03 16:06:30 +02:00
test_cs_firewall cloudstack: add tests for cs_firewall 2015-05-19 09:39:50 +02:00
test_cs_instance cloudstack: integration tests 2015-05-03 16:06:30 +02:00
test_cs_instancegroup cloudstack: fix tests unhashable type: 'dict' 2015-08-19 21:39:58 +02:00
test_cs_portforward cloudstack: add tests for cs_portforward 2015-05-19 10:11:55 +02:00
test_cs_securitygroup cloudstack: fix tests unhashable type: 'dict' 2015-08-19 21:39:58 +02:00
test_cs_securitygroup_rule cloudstack: integration tests 2015-05-03 16:06:30 +02:00
test_cs_sshkeypair cloudstack: fix tests unhashable type: 'dict' 2015-08-19 21:39:58 +02: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
test_ec2_eip
test_ec2_elb
test_ec2_elb_lb just a few spelling error changes 2015-04-28 09:36:42 -04:00
test_ec2_facts
test_ec2_group
test_ec2_key
test_ec2_tag
test_ec2_vol
test_ec2_vpc
test_embedded_module
test_facts_d
test_failed_when/tasks fixed test to expected output 2015-07-30 18:36:54 -04:00
test_fetch changed fetch test to match new functionality 2015-02-20 11:32:10 -05:00
test_file Fix include task using a potentially undefined variable 2015-07-29 15:49:29 -04:00
test_filters Merge pull request #10857 from jeffb-stell/devel 2015-08-03 19:23:59 -04:00
test_force_handlers Fix --force-handlers, and allow it in plays and ansible.cfg 2015-04-10 19:38:59 -04:00
test_gce
test_gce_pd
test_gem
test_get_url Add support for SNI and TLS-1.1 and TLS-1.2 to the fetch_url() helper 2015-07-14 12:48:35 -07:00
test_git Git integration test: remove test for ambiguous .git/branches dir 2015-04-13 13:38:11 -04:00
test_good_parsing enabled good parsing tests in parsing target 2015-07-14 08:05:57 -04:00
test_handlers tests: checks that handlers work with loops 2015-07-20 14:41:03 +02:00
test_handlers_meta
test_hash_behavior
test_hg
test_ignore_errors
test_includes added empty include test 2015-07-14 12:06:31 -04:00
test_iterators sequence will now run once for start=end, added test to suite 2015-08-18 02:33:23 -04:00
test_lineinfile Fixing some small bugs related to integration tests (v2) 2015-06-01 16:42:10 -05:00
test_lookups Add test that url lookup checks tls certificates 2015-06-16 09:46:17 -07:00
test_mysql_db Drop the mysql test db first so that we test with a clean slate. 2015-05-27 13:39:09 -07:00
test_mysql_user Lots of fixes for integration test bugs 2015-07-10 01:53:59 -04:00
test_mysql_variables
test_ping/tasks
test_pip
test_postgresql
test_rax Make the wait_timeout for rax tests a configurable default 2015-06-29 12:09:16 -05:00
test_rax_cbs Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_cbs_attachments Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_cdb Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_cdb_database Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_clb Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_clb_nodes Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_facts Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_identity Add tests for rax_identity 2015-02-11 12:59:02 -06:00
test_rax_keypair Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_meta Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_network Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_scaling_group Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_script
test_service
test_special_vars added minimal testing for special template vars 2015-07-07 20:11:55 -04:00
test_stat
test_su preliminary privlege escalation unification + pbrun 2015-03-10 18:42:36 -04:00
test_subversion
test_sudo preliminary privlege escalation unification + pbrun 2015-03-10 18:42:36 -04:00
test_synchronize Don't pass mode from synchronize action plugin to the ansible module 2015-07-23 00:42:27 -07:00
test_template Don't convert nulls to strings. 2015-08-19 18:35:07 -04:00
test_unarchive Add integration test for unarchive filelist feature 2015-04-15 09:28:50 -07:00
test_uri Add support for SNI and TLS-1.1 and TLS-1.2 to the fetch_url() helper 2015-07-14 12:48:35 -07:00
test_var_blending just a few spelling error changes 2015-04-28 09:36:42 -04:00
test_var_precedence
test_var_precedence_dep Fix variable precedence integrationt test 2015-07-28 00:51:58 -04:00
test_var_precedence_inven_override/tasks
test_var_precedence_role1
test_var_precedence_role2
test_var_precedence_role3
test_win_copy Get-FileChecksum allways returns a string now, 2015-06-01 21:53:49 +01:00
test_win_feature Only run win_feature tests when the host has the ServerManager module. 2015-05-29 13:57:11 -04:00
test_win_fetch/tasks Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
test_win_file Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
test_win_get_url Update tests for win_get_url module to test force parameter and invalid URLs/paths. 2015-07-10 15:54:18 -04:00
test_win_msi/tasks Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
test_win_ping/tasks Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
test_win_raw/tasks Make sure raw doesn't eat key=value arguments. 2015-08-02 11:57:32 -04:00
test_win_script Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
test_win_service
test_win_setup/tasks Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
test_win_slurp/tasks
test_win_stat/tasks Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
test_win_template Fix for PowerShell unquote method when passed None. 2015-08-02 18:38:29 -04:00
test_win_user Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
test_yum Change python-q into sharutils as the epel repo for centos6 is being funky. 2015-04-30 17:48:03 -07:00