Commit Graph

1176 Commits (e2d9f4e2f272c6010b0c00257aa695c1606e05ab)

Author SHA1 Message Date
Abhijit Menon-Sen d100db837b Add basic tests for expand_hostname_range
11 years ago
Abhijit Menon-Sen 838e71edb7 Add more exhaustive tests for various IPv6 address notations
11 years ago
Brian Coca 8d024c3747 Merge pull request #12472 from resmo/for_ansible
11 years ago
Brian Coca 37a918438b task logging revamp
11 years ago
James Cammarata ccddda1ebc Merge pull request #12502 from mgedmin/py3k
11 years ago
James Cammarata 31d5f88a1d Use the task loop to calculate multiple delegated hosts
11 years ago
Toshio Kuratomi a1428d6bed Remove tmp as a parameter to the connection plugins
11 years ago
Toshio Kuratomi 03127dcfae remove the stdin return value from connection plugin exec_command() methods
11 years ago
Marius Gedminas 0624797375 Bugfix: if you define a custom __eq__, you must define a __hash__ too
11 years ago
Marius Gedminas a2bc6b4b26 Bugfix: if you define __eq__, you should define __ne__ too
11 years ago
Marius Gedminas 5d29a2eabd Python 3: shlex.split() wants unicode
11 years ago
Rene Moser 9514ac860d cloudstack: more integration tests
11 years ago
Abhijit Menon-Sen 2fcdb37e7b Support «hosts: groupname[1:]» notation (~= 'the rest of the group')
11 years ago
Abhijit Menon-Sen 21142f5723 Add some tests for split/apply_subscript
11 years ago
Abhijit Menon-Sen 2d420a9bb7 Allow hexadecimal ranges in IPv6 addresses, not only 0-9
11 years ago
James Cammarata 951128d7a6 Merge branch 'hostpatterns' of https://github.com/amenonsen/ansible into amenonsen-hostpatterns
11 years ago
Victor Salgado 01ae60d524 Add more tests for _split_pattern for when the input is a list
11 years ago
Abhijit Menon-Sen abd006657b Add test/units/inventory with a few _split_pattern tests
11 years ago
Florian Apolloner d9f873495e Ported over #7158 to support SELinux context switches.
11 years ago
Florian Apolloner 8548690ca3 Added a test to ensure that sudo is only used if remote and become user difer.
11 years ago
Toshio Kuratomi 3db8070aa3 Fix urlopen usage to use open_url instead
11 years ago
Chris Church 43b15ab9a4 Merge pull request #12385 from cchurch/winrm_put_empty_file
11 years ago
Chris Church 93af0b327f Merge pull request #12384 from cchurch/powershell_strict_mode
11 years ago
Chris Church 1d15e8f37a Pass windows command as-is without splitting/rejoining parameters.
11 years ago
Chris Church 87db5119ea Merge pull request #12049 from cchurch/win_group_tests
11 years ago
Chris Church b44e02143a Merge pull request #12050 from cchurch/test_win_msi_creates
11 years ago
James Cammarata 3f8e12d1f7 Merge pull request #12359 from cchurch/fetch_no_fail_on_missing
11 years ago
Chris Church 6ab4cff7db Enable winrm put_file to upload an empty file.
11 years ago
Chris Church 5c65ee7f0c Add PowerShell exception handling and turn on strict mode.
11 years ago
James Cammarata d818a72375 Merge branch 'normalize_plugin_paths' of https://github.com/bcoca/ansible into bcoca-normalize_plugin_paths
11 years ago
Chris Church 15070e2af8 Merge pull request #11790 from brianlloyd/win_lineinfile
11 years ago
Brian Coca b6d6c2e4db corrected all missing paths changes
11 years ago
Chris Church 904b8ca27b Update win_msi tests to specify msi url and paths via variables.
11 years ago
Chris Church 0300294f6e Add tests for creates parameter to win_msi module.
11 years ago
Chris Church 260b9f648c Fix fetch action plugin to not fail if file is missing and fail_if_missing=False (the default). Add tests to test_fetch role to verify it works as expected.
11 years ago
James Cammarata 36b5858f51 Fix unit tests for change related to local_action
11 years ago
James Cammarata 49ca0eb797 Track local_action internally to prevent it from being overridden
11 years ago
Abhijit Menon-Sen 88a20e7a20 Fix broken integration test with unicode hostnames
11 years ago
Abhijit Menon-Sen 7479ab47e0 Be stricter about parsing hostname labels
11 years ago
Abhijit Menon-Sen 065bb52109 Be systematic about parsing and validating hostnames and addresses
11 years ago
Marius Gedminas f91b28ef23 Fix safe_eval() of set literals
11 years ago
Brian Coca 5809a2e81d Merge pull request #12299 from resmo/feature/test_cs_user
11 years ago
James Cammarata 444987cde6 Fix unit test for plugins after basedir/push_basedir removal
11 years ago
Rene Moser f6382a160d cloudstack: new integration test role test_cs_user
11 years ago
Toshio Kuratomi e2c49b4ef4 Fix problem with "=" in the initial file path.
11 years ago
Toshio Kuratomi 3a50393cf7 Merge pull request #12269 from mgedmin/py3k
11 years ago
Toshio Kuratomi c1039de70c Compatibility with six-1.3.0
11 years ago
James Cammarata ac6f61ec7f Properly handle group/host_var files with dots in them
11 years ago
Marius Gedminas c22f4ee697 Add a comment explaining why async = 1 in the test
11 years ago
Marius Gedminas 1a1c9203e2 Python 3: fix TypeError: unorderable types in test
11 years ago
James Cammarata ff9f5d7dc8 Starting to add additional unit tests for VariableManager
11 years ago
Brian Coca c17fbf2f12 simplify become testing and handling, we had drifted and were doulbe checking prompt, become and become_pass
11 years ago
Toshio Kuratomi e218bf8da9 Do not escape backslashes when processing a template file.
11 years ago
James Cammarata b2cb3153f1 Fix unit tests for PlayIterator changes regarding fact gathering
11 years ago
Marius Gedminas a32bf1ec18 Simplify FactCache.copy()
11 years ago
Marius Gedminas 823677b490 Replace .iteritems() with six.iteritems()
11 years ago
Toshio Kuratomi 1b64702b9a Fix templar unittests for change in preserve_trailing_newline parameter's default value
11 years ago
James Cammarata 45aac6a739 Adding unit tests for safe_eval
11 years ago
James Cammarata 843138e7d9 Merge pull request #12202 from mgedmin/py3k
11 years ago
Toshio Kuratomi 9ecfc30f9a * Mark all strings as unicode -- shouldn't matter for this dataset but
11 years ago
Toshio Kuratomi 417bf1c805 Unittest the _count_trailing_newlines function
11 years ago
Brian Coca a7231c2203 actually implemented flags correctly for all priv escalation methods
11 years ago
Brian Coca 14f061d5ea fixed become tests
11 years ago
Marius Gedminas 33a374edde Use rich comparisons for Attribute and FieldAttribute
11 years ago
Toshio Kuratomi aeff960d02 Cleanup combine_vars
11 years ago
Toshio Kuratomi 7f5080f64a Fix backslash escaping inside of jinja2 expressions
11 years ago
James Cammarata ccaf47bd97 Fix unit tests broken by 057712c1
11 years ago
Brian Coca 514fa73fcd galaxy fixes
11 years ago
Marius Gedminas c846bab69b Fix assert statement syntax
11 years ago
Marius Gedminas 709dbbc7db Use 0oNNN octal syntax in test/
11 years ago
Marius Gedminas 727cb8a917 Support print() function in test/
11 years ago
Marius Gedminas 9ae66a7f5c Use 'except ... as' syntax in contrib/ and test/ too
11 years ago
Abhijit Menon-Sen 4f3a98eff6 Update Vault tests to make sure AES decryption works
11 years ago
Abhijit Menon-Sen b84053019a Make the filename the first argument to rekey_file
11 years ago
Abhijit Menon-Sen c4b2540ecc Update tests for VaultEditor API changes
11 years ago
James Cammarata 601a1cc6d9 Multiple fixes for include statements and blocks in general
11 years ago
Toshio Kuratomi 9f9891df2c Add unicode characters to the data that we're testing that ansible-vault can decrypt
11 years ago
Toshio Kuratomi 56ae3a032f Merge pull request #12075 from ansible/fix-vault-unicode
11 years ago
Toshio Kuratomi a3fd4817ef Unicode and other fixes for vault
11 years ago
Brian Coca 846f0b0510 changed no_log expected type to new value
11 years ago
Brian Coca 3e13dfd7e8 used stdoutlines list to avoid string mismatches
11 years ago
Brian Coca efa005c228 added names to assert tasks for easier debugging
11 years ago
Brian Coca d6a1cbeefb corrected varname that started with number and broke templating
11 years ago
Brian Coca 104b8a9a7b avoid hostvars which is not a dict
11 years ago
Brian Coca 857d74a274 made diff ignore whitespace
11 years ago
Brian Coca 6da2587c36 Merge pull request #12058 from resmo/for-ansible
11 years ago
James Cammarata db65503778 Revert "Add PowerShell exception handling and turn on strict mode."
11 years ago
Rene Moser 69d5e62083 cloudstack: test_cs_account: account_state was renamed, fixes tests
11 years ago
Rene Moser eb44f85dc8 cloudstack: test_cs_instance: make it more configurable
11 years ago
Rene Moser 15a7f818e1 cloudstack: add more integration tests
11 years ago
Brian Coca 3ccfebc9f7 Merge pull request #12047 from cchurch/powershell_common_cleanup
11 years ago
Ryan Petrello 1886307845 Fix a parsing bug that prevents IPv6 addresses from being used with `add_host`
11 years ago
Chris Church af9200c2de Add integration tests for win_group module.
11 years ago
Chris Church 4b2cdadc98 Add PowerShell exception handling and turn on strict mode.
11 years ago
Brian Coca 01708cc824 added test for environment directive
11 years ago
Feanil Patel 892e230514 Don't convert nulls to strings.
11 years ago
Rene Moser 9d3577a74a cloudstack: fix tests unhashable type: 'dict'
11 years ago
Rene Moser 8f3c181d90 cloudstack: tests: use resource_prefix
11 years ago
Brian Coca 69f380da3a changed mod_args test to match connection
11 years ago
Jeremy Wells 9f9f476b6e Update consul integration test with http checks
11 years ago
Brian Coca ab355218a0 fixed test to new parser options
11 years ago
Brian Coca 1acb29ff9b sequence will now run once for start=end, added test to suite
11 years ago
Brian Coca ee21ebaffc Merge pull request #11975 from mutemule/become_doas
11 years ago
Damian Gerow 1c5611100e Add become support for OpenBSD doas
11 years ago
Brian Coca 43bf9c86d8 fixed typo
11 years ago
Brian Coca d38bb4152d fixed test to match new exception class used
11 years ago
Brian Coca 2eb5333b50 fixed test to match new become output
11 years ago
Brian Coca 43cc27084d corrected on delete also
11 years ago
Brian Coca 089687140d corrected role path
11 years ago
Brian Coca 033c77a13b now creates/removes files/ dir
11 years ago
Brian Coca 464a436f8f fixed testplay host, included lookup path tests in all, added stage for easier debugging
11 years ago
Brian Coca 60803a1d3c added lookup paths testing
11 years ago
Brian Coca 8f106c9a58 Merge pull request #11078 from Yannig/devel
11 years ago
Toshio Kuratomi e8452c864e Restore the relative path handling portion of #11865
11 years ago
Brian Coca b9433650d1 Revert "Path of group_vars and host_vars were getting the basedir added twice."
11 years ago
Toshio Kuratomi bae7a02be5 Path of group_vars and host_vars were getting the basedir added twice.
11 years ago
Yannig Perré 47db352725 Merge remote-tracking branch 'ansible/devel' into devel
11 years ago
Yannig Perré c0bd140959 Add documentation for the ini lookup plugin.
11 years ago
Yannig Perré 733d40a77c When value does not exist, return default value instead of stopping ansible with an exception.
11 years ago
James Cammarata 9891bcbcae Fix unit tests broken by previous commit
11 years ago
Brian Coca aefca24616 Merge pull request #10857 from jeffb-stell/devel
11 years ago
James Cammarata 6b244ed61e update unit tests for role templating changes
11 years ago
James Cammarata a586c74967 Merge pull request #11838 from cchurch/stringify_powershell_unquote_value
11 years ago
Chris Church cafc35fd5b Fix for PowerShell unquote method when passed None.
11 years ago
Chris Church 6969b5ac8b Make sure raw doesn't eat key=value arguments.
11 years ago
Chris Church 2154212491 Merge pull request #11094 from cchurch/test_win_feature_has_servermanager
11 years ago
Chris Church e87cf4a3cc Fixes for WinRM/PowerShell support in v2.
11 years ago
Brian Coca c2d8ca4bf7 fixed test to expected output
11 years ago
Brian Lloyd 07b14b9731 integration tests for windows implementation of lineinfile
11 years ago
James Cammarata ba56beda90 Fix include task using a potentially undefined variable
11 years ago
James Cammarata 71867f9480 Remove vars attribute from base
11 years ago
James Cammarata 42cfacf83b Switch up the task/host overrides for PlayContext to use the compiled vars dict
11 years ago
James Cammarata e505a1b7c4 Fix variable precedence integrationt test
11 years ago
Brian Coca c76a66694f fixed typo
11 years ago
Michael Scherer 106e942faa Document and test 'is undefined' rather than 'is not defined'
11 years ago
James Cammarata 8146a193eb Fix strategy base unit tests after 88e1ef8
11 years ago
Toshio Kuratomi b06353791c Don't pass mode from synchronize action plugin to the ansible module
11 years ago
James Cammarata 993ce592b1 Update unit tests for flush_handlers fix
11 years ago
James Cammarata 66a8864ae9 Fix environment setting and inheritence
11 years ago
James Cammarata 46f74a0d69 Re-adding --start-at-task test to unicode integration test
11 years ago
James Cammarata e64989beb4 Moving ConnectionInformation -> PlayContext
11 years ago
James Cammarata b09eed3353 Merge branch 'test_notify_with_loops' of https://github.com/pilou-/ansible into pilou--test_notify_with_loops
11 years ago
James Cammarata fadd8f23f1 Fix broken strategy unit test from earlier change
11 years ago
James Cammarata dca36c1d16 Reestablishing the use of tags/when for role duplication detection
11 years ago
Pierre-Louis Bonicoli aa23ea8462 tests: checks that handlers work with loops
11 years ago
Pierre-Louis Bonicoli 8c392a94b7 Play.get_name: remove prefix, return name only
11 years ago
James Cammarata 3d77723e3d Cleaning up some stuff related to the connection info/become/executable change
11 years ago
Brian Coca 9dc5607730 Merge pull request #11519 from bcoca/human_readable
11 years ago
James Cammarata d6b058eaae Removing invocation from async test, as it's pointless
11 years ago
Brian Coca 323362e23a added stdout to test result
11 years ago
Toshio Kuratomi 327b1676a8 Add support for SNI and TLS-1.1 and TLS-1.2 to the fetch_url() helper
11 years ago
Brian Coca f6c64a8c00 fixed var file loading
11 years ago
Brian Coca 5eb25a48ee added empty include test
11 years ago
Brian Coca 22165dd046 fixed bad parsing tests
11 years ago
James Cammarata 3b913943b2 Updating base strategy unit test regarding bad file loads based on earlier change
11 years ago
Brian Coca 44aef347cb enabled good parsing tests in parsing target
11 years ago
James Cammarata 6971e92f39 Fixing up some output stuff
11 years ago
Brian Coca b4de103bb2 Merge pull request #11555 from cchurch/test_win_get_url_updates
11 years ago
Chris Church 1aa2191fd5 Update tests for win_get_url module to test force parameter and invalid URLs/paths.
11 years ago
Brian Coca c6dde19a5e Merge pull request #11537 from chrismeyersfsu/azure-test
11 years ago
Brian Coca 9c5a6d7b5a fixed all references to old plugins/inventory to point at contrib/inventory
11 years ago
James Cammarata 5430169b77 Cleaning up includes test to match 2.0 behavior
11 years ago
James Cammarata 1163e38d39 Fix unit tests for new magic variable addition 'ansible_version'
11 years ago
James Cammarata bbe8f48a46 Update role unit tests for changes made to require a play during loading
11 years ago
James Cammarata b520d5bc60 Lots of fixes for integration test bugs
11 years ago
Chris Meyers 32685f9648 assert password or ssh key provided on new image creation
11 years ago
James Cammarata 27fcf1a4b5 Fix bug in registered variables related to delegate_to changes
11 years ago
James Cammarata f5baad4fb2 Removing unicode --start-at-task test for now as we haven't added that back into devel
11 years ago
James Cammarata 64a1b1e043 Fix first_available_file: support for copy and template actions
11 years ago
marconius 79394f5c8f Added tests for `taggable` module
11 years ago
Brian Coca 48827a31bc added minimal testing for special template vars
11 years ago
James Cammarata bfbb88b4a9 Fix strategy plugin unit tests related to earlier changes
11 years ago
Brian Coca 688088547b new human_readable filter to transform bits and bytes into cake (not really)
11 years ago
Toshio Kuratomi f44f9569e1 Test unquote works as expected and fix two bugs:
11 years ago
Brian Coca aa6486778f fixed become test to match new expected output
11 years ago
James Cammarata 53cd96befe Updating unit tests to account for new magic variable 'vars'
11 years ago
Brian Coca 5122455db8 ported missing sequence updates from 1.9
11 years ago
Matt Martz 2cd3a1be00 assertRaises should be given an exception type. Fixes 11441
11 years ago
Matt Martz 43f81c7c01 Fix YAML formatting issue for rax integration tests
11 years ago
Brian Coca 200706d5ab Merge pull request #9812 from fgsch/fix_1904
11 years ago
Matt Martz c440762b61 Make the wait_timeout for rax tests a configurable default
11 years ago
James Cammarata 4fbd4ae18b Update VariableManager test for additional magic variable playbook_dir
11 years ago
Matt Martz b370f6efce Add tests for rax_scaling_group
11 years ago
Toshio Kuratomi 605ddad37e Add test that url lookup checks tls certificates
11 years ago
James Cammarata d913f169a8 Update failed_when integration test to be more thorough
11 years ago
Brian Coca 5ed2e44026 adjusted with_dict test to now work
11 years ago
Brian Coca dc31086a17 added with_dict test
11 years ago
Brian Coca 5bac17de51 fixed pfexec test
11 years ago
Brian Coca 11f1d99a5b added test for first_available and copy
11 years ago
Brian Coca b9bb3e83b7 added new test that allows for listed bare strings
11 years ago
Brian Coca 091caf6279 added missing error class import
11 years ago
Brian Coca e9cf67004b updated fail_on_undefined test to new function signatures
11 years ago
Brian Coca aa6e204b6e Merge pull request #11115 from jhawkesworth/second_go_at_fixing_1404
11 years ago
Matt Martz 230be812ba Don't test for play.become_pass any longer
11 years ago
Matt Martz 49d19e82ab Get tests passing
11 years ago
James Cammarata 9ac624d2c9 Fix mock DictDataLoader _get_file_contents to match real code
11 years ago
James Cammarata e547e1f9ba Merge branch 'devel' into devel_switch_v2
11 years ago
James Cammarata fe41f109a9 Merge branch 'v2_final' into devel_switch_v2
11 years ago
James Cammarata 4bc7703db3 Fixing some small bugs related to integration tests (v2)
11 years ago
Jon Hawkesworth 30b92a6f4c Get-FileChecksum allways returns a string now,
11 years ago