You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
9 years ago
..
ec2_elb_instance_setup Adding an integration test for the ec2_elb module 11 years ago
ec2_provision_instances Adding an integration test for the ec2_elb module 11 years ago
prepare_rax_tests/defaults Make the wait_timeout for rax tests a configurable default 9 years ago
prepare_tests/tasks Rework the shell quoting of remote checksumming 10 years ago
prepare_win_tests Allow prepare_win_tests role to run multiple times, before each role that depends on it. 10 years ago
setup_ec2 Fixing up shell quoting issues 10 years ago
setup_mysql_db Add Fedora mysql vars so we get mariadb rather than mariadb-galera 10 years ago
setup_postgresql_db And the encoding needs to be latin1 for this test 10 years ago
test_always_run Rename tests to test, use old directory name. 11 years ago
test_apt Merge pull request #9957 from hfinucane/apt-deb-tests 10 years ago
test_apt_repository [test_apt_repository] Verify that 'python-apt' auto-installs correctly 11 years ago
test_assemble Move from md5 to sha1 to work on fips-140 enabled systems 10 years ago
test_async Removing invocation from async test, as it's pointless 9 years ago
test_authorized_key Lots of fixes for integration test bugs 9 years ago
test_azure assert password or ssh key provided on new image creation 9 years ago
test_bad_parsing fixed typo 9 years ago
test_become preliminary privlege escalation unification + pbrun 10 years ago
test_binary Better names for the test_binary tests 10 years ago
test_changed_when Rename tests to test, use old directory name. 11 years ago
test_check_mode Rework the shell quoting of remote checksumming 10 years ago
test_command_shell Fixing up some output stuff 9 years ago
test_conditionals Document and test 'is undefined' rather than 'is not defined' 9 years ago
test_consul_acl/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 10 years ago
test_consul_inventory/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 10 years ago
test_consul_kv/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 10 years ago
test_consul_service/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 10 years ago
test_consul_session/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 10 years ago
test_copy added test for first_available and copy 10 years ago
test_cs_account cloudstack: add test for cs_account 10 years ago
test_cs_affinitygroup cloudstack: fix tests unhashable type: 'dict' 9 years ago
test_cs_common/defaults cloudstack: integration tests 10 years ago
test_cs_firewall cloudstack: add tests for cs_firewall 10 years ago
test_cs_instance cloudstack: integration tests 10 years ago
test_cs_instancegroup cloudstack: fix tests unhashable type: 'dict' 9 years ago
test_cs_portforward cloudstack: add tests for cs_portforward 10 years ago
test_cs_securitygroup cloudstack: fix tests unhashable type: 'dict' 9 years ago
test_cs_securitygroup_rule cloudstack: integration tests 10 years ago
test_cs_sshkeypair cloudstack: fix tests unhashable type: 'dict' 9 years ago
test_docker Have selinux allow docker<=>nginx communication 10 years ago
test_ec2 [test_ec2*] cloud integration test updates 11 years ago
test_ec2_ami [test_ec2*] cloud integration test updates 11 years ago
test_ec2_asg/tasks Properly empties ASG before terminating it, and waits for ASG to be deleted. 10 years ago
test_ec2_eip Re-enable the ec2_eip test 10 years ago
test_ec2_elb Adding an ec2_elb test to re-add an instance that had been removed 11 years ago
test_ec2_elb_lb just a few spelling error changes 10 years ago
test_ec2_facts [test_ec2*] cloud integration test updates 11 years ago
test_ec2_group Removing cruft leftover from the deprecation of include+with_items 11 years ago
test_ec2_key [test_ec2*] cloud integration test updates 11 years ago
test_ec2_tag [test_ec2*] cloud integration test updates 11 years ago
test_ec2_vol [test_ec2*] cloud integration test updates 11 years ago
test_ec2_vpc [test_ec2*] cloud integration test updates 11 years ago
test_embedded_module Fix bug in plugin path caching 10 years ago
test_facts_d Rename tests to test, use old directory name. 11 years ago
test_failed_when/tasks fixed test to expected output 9 years ago
test_fetch changed fetch test to match new functionality 10 years ago
test_file Fix include task using a potentially undefined variable 9 years ago
test_filters Merge pull request #10857 from jeffb-stell/devel 9 years ago
test_force_handlers Fix --force-handlers, and allow it in plays and ansible.cfg 10 years ago
test_gce Adds support for attaching persistent disks to GCE instances 11 years ago
test_gce_pd Adds support for creating GCE persistent disks from snapshots 11 years ago
test_gem Rename tests to test, use old directory name. 11 years ago
test_get_url Add support for SNI and TLS-1.1 and TLS-1.2 to the fetch_url() helper 9 years ago
test_git Git integration test: remove test for ambiguous .git/branches dir 10 years ago
test_good_parsing enabled good parsing tests in parsing target 9 years ago
test_handlers tests: checks that handlers work with loops 9 years ago
test_handlers_meta Ensure handlers run when meta tasks are defined and add handler integration tests 11 years ago
test_hash_behavior Rename tests to test, use old directory name. 11 years ago
test_hg multiple spelling error changes 11 years ago
test_ignore_errors Rename tests to test, use old directory name. 11 years ago
test_includes added empty include test 9 years ago
test_iterators sequence will now run once for start=end, added test to suite 9 years ago
test_lineinfile Fixing some small bugs related to integration tests (v2) 10 years ago
test_lookups Add test that url lookup checks tls certificates 10 years ago
test_mysql_db Drop the mysql test db first so that we test with a clean slate. 10 years ago
test_mysql_user Lots of fixes for integration test bugs 9 years ago
test_mysql_variables Adding test Coverage for mysql_variable module 10 years ago
test_ping/tasks Rename tests to test, use old directory name. 11 years ago
test_pip multiple spelling error changes 11 years ago
test_postgresql New integration tests for postgresql 10 years ago
test_rax Make the wait_timeout for rax tests a configurable default 9 years ago
test_rax_cbs Fix YAML formatting issue for rax integration tests 9 years ago
test_rax_cbs_attachments Fix YAML formatting issue for rax integration tests 9 years ago
test_rax_cdb Fix YAML formatting issue for rax integration tests 9 years ago
test_rax_cdb_database Fix YAML formatting issue for rax integration tests 9 years ago
test_rax_clb Fix YAML formatting issue for rax integration tests 9 years ago
test_rax_clb_nodes Fix YAML formatting issue for rax integration tests 9 years ago
test_rax_facts Fix YAML formatting issue for rax integration tests 9 years ago
test_rax_identity Add tests for rax_identity 10 years ago
test_rax_keypair Fix YAML formatting issue for rax integration tests 9 years ago
test_rax_meta Fix YAML formatting issue for rax integration tests 9 years ago
test_rax_network Fix YAML formatting issue for rax integration tests 9 years ago
test_rax_scaling_group Fix YAML formatting issue for rax integration tests 9 years ago
test_script Typo fixes. 11 years ago
test_service Fix integration test to check for checksum, not md5sum 10 years ago
test_special_vars added minimal testing for special template vars 9 years ago
test_stat Add a fips fact and use it for integration tests 10 years ago
test_su preliminary privlege escalation unification + pbrun 10 years ago
test_subversion Correct typo 10 years ago
test_sudo preliminary privlege escalation unification + pbrun 10 years ago
test_synchronize Don't pass mode from synchronize action plugin to the ansible module 9 years ago
test_template Don't convert nulls to strings. 9 years ago
test_unarchive Add integration test for unarchive filelist feature 10 years ago
test_uri Add support for SNI and TLS-1.1 and TLS-1.2 to the fetch_url() helper 9 years ago
test_var_blending just a few spelling error changes 10 years ago
test_var_precedence Split out various vars-related things to avoid merging too early 10 years ago
test_var_precedence_dep Fix variable precedence integrationt test 9 years ago
test_var_precedence_inven_override/tasks Test that we can override variables set in inventory when the vars_file name is templated 10 years ago
test_var_precedence_role1 Fix order of resolving dependent role variables from vars files 10 years ago
test_var_precedence_role2 Fix issue with vars precedence from roles 10 years ago
test_var_precedence_role3 Correct variable blending from vars_files with hostvars in them 10 years ago
test_win_copy Get-FileChecksum allways returns a string now, 10 years ago
test_win_feature Only run win_feature tests when the host has the ServerManager module. 10 years ago
test_win_fetch/tasks Fixes for WinRM/PowerShell support in v2. 9 years ago
test_win_file Fixes for WinRM/PowerShell support in v2. 9 years ago
test_win_get_url Update tests for win_get_url module to test force parameter and invalid URLs/paths. 9 years ago
test_win_msi/tasks Fixes for WinRM/PowerShell support in v2. 9 years ago
test_win_ping/tasks Fixes for WinRM/PowerShell support in v2. 9 years ago
test_win_raw/tasks Make sure raw doesn't eat key=value arguments. 9 years ago
test_win_script Fixes for WinRM/PowerShell support in v2. 9 years ago
test_win_service Add integration tests for win_service module. 10 years ago
test_win_setup/tasks Fixes for WinRM/PowerShell support in v2. 9 years ago
test_win_slurp/tasks Add integration tests for fetch/slurp, make powershell fetch/slurp work as close as possible to existing fetch/slurp modules. 11 years ago
test_win_stat/tasks Fixes for WinRM/PowerShell support in v2. 9 years ago
test_win_template Fix for PowerShell unquote method when passed None. 9 years ago
test_win_user Fixes for WinRM/PowerShell support in v2. 9 years ago
test_yum Change python-q into sharutils as the epel repo for centos6 is being funky. 10 years ago