Commit Graph

776 Commits (78985e5c330c29b4b01ac986e58d49f18ee75512)

Author SHA1 Message Date
Toshio Kuratomi 8790be3154 Now that we have all of the postgres db being blown away the package manager is initializing a new db.
12 years ago
Chris Church de267b5655 Fix PowerShell plugin issues affecting fetch module when used against Windows hosts.
12 years ago
Toshio Kuratomi 7329bcde99 New integration tests for postgresql
12 years ago
Toshio Kuratomi 86b21a1b8d Integration tests for https://github.com/ansible/ansible-modules-core/issues/416
12 years ago
Tomasz Kontusz 9ee367e044 Add mock and nose to requirements for running unit tests
12 years ago
Toshio Kuratomi c697d01151 Integration tests for #9242 and #9640
12 years ago
Brian Coca 7d2937b1cc minor fixes to template function
12 years ago
Toshio Kuratomi d36c38c35e Exception message changes
12 years ago
Toshio Kuratomi 067112b5ee Code for modules to perform more robust quoting of database identifiers
12 years ago
Chris Church e9b6aaf5d8 Update PowerShell command line processing to handle parameters passed via splatting.
12 years ago
Toshio Kuratomi ef6769d6c8 Clean up the format of pull #9590
12 years ago
Rohan McGovern be6ef11e96 test_git: add tests for version=<sha1> case
12 years ago
Toshio Kuratomi c4c3cc315d Transform both values of a task name into a byte str prior to comparing
12 years ago
James Cammarata aa1a46092d Fix missing dep on parsing integration test for preparation role
12 years ago
Toshio Kuratomi 4ae2d58d72 Fix detection of fips mode in test_do_encrypt_md5
12 years ago
James Cammarata 9a0f8f0158 Split out various vars-related things to avoid merging too early
12 years ago
Toshio Kuratomi c3c6a07e65 Update apt test for newer version of test package and pull in an apt module fix
12 years ago
Mario de Frutos dd9dc637d1 Test install with wildcard
12 years ago
Toshio Kuratomi d14dcdc222 Docker test does not require the mock module
12 years ago
Toshio Kuratomi b95475c1f9 Unittest the get_split_image_tag function in the docker module
12 years ago
Brian Coca dd60036fb9 added changed status to return when new early create check is triggered,
12 years ago
Toshio Kuratomi 6030be3835 Add unittest for discrete functions in the apt module
12 years ago
Toshio Kuratomi 44eb19d553 Make VaultEditor Tests compatible with FIPS mode
12 years ago
Toshio Kuratomi e05b22e0d1 Skip some md5 related unit tests when running in fips mode
12 years ago
Toshio Kuratomi 531eaddb3d Remove second invocation of mysql_user integration test
12 years ago
Toshio Kuratomi f109b818bf Disable pip test on FIPS enabled systems because pip unconditionally uses md5
12 years ago
Toshio Kuratomi b828b25784 Add a fips fact and use it for integration tests
12 years ago
Toshio Kuratomi ffc2e5a627 Do not fail on failure of md5 checksumming tests for non_destructive
12 years ago
Toshio Kuratomi 507a1ef093 Fix integration test to check for checksum, not md5sum
12 years ago
Toshio Kuratomi f1267c0b05 Move from md5 to sha1 to work on fips-140 enabled systems
12 years ago
Toshio Kuratomi 67ff4428d5 Fix up all python3 issues that do not have to do with text/bytes
12 years ago
Toshio Kuratomi 050d17295d Remove test case that wasn't reported as something git should do
12 years ago
Toshio Kuratomi 82e8d677d9 Test the git changes for the git module's recursive flag
12 years ago
Toshio Kuratomi 56c268ade4 New test that newlines in systemd service scripts don't cause problems
12 years ago
Toshio Kuratomi 43b3eecf52 Debian/Ubuntu doesn't have group nobody so remove the group portion of the new template tests as owner and mode will exercise the problematic code path
12 years ago
Toshio Kuratomi feb9ed1de8 Fix template module incorrectly handling mode when dest is a directory
12 years ago
James Cammarata b61a78532c Catch template syntax errors specifically when templating strings
12 years ago
James Cammarata c08c907ee0 Merge pull request #9346 from MiLk/test/shell-multiline
12 years ago
James Cammarata 21577ff2cc Moved v2 tests for plugins to new location
12 years ago
James Cammarata 1d04e4b3d2 Updating unittests for v2 stuff
12 years ago
Toshio Kuratomi 938b2108d0 Move the v2 tests under the v2 tree
12 years ago
Emilien Kenler 39ce134c2c Add integration test for the shell module
12 years ago
Toshio Kuratomi 692d31d221 Python3 fix
12 years ago
Toshio Kuratomi 1e255a72a8 Python3 fix
12 years ago
Toshio Kuratomi 25ac4ccef3 Update other asserts that have a py2.6 unittest method
12 years ago
Toshio Kuratomi c752f012f7 Start converting asserts to self.assert*() so we get better error messages
12 years ago
Michael DeHaan ccd559137f add missing headers, rm the subtree of ansible/inventory as we wish to overhaul it.
12 years ago
James Cammarata fe5a7bcabf Fixing bad variable naming choices
12 years ago
James Cammarata 2eda9a3a47 Fixing item loop when undefined variable errors occur because of missing attributes
12 years ago
James Cammarata a50332fc8a Adding v2 error line support, and tests
12 years ago
Toshio Kuratomi 48a308a87c Allow both old-style and new-style role dependencies to be valid.
12 years ago
Michael DeHaan 79f41d9c1a This makes the module args parser more functional to eliminate side effects and eliminiates the 'return None' error path
12 years ago
Michael DeHaan 56b6cb5328 Teaching objects to load themselves, making the JSON/YAML parsing ambidexterous.
12 years ago
James Cammarata ad893ea867 Merge pull request #9286 from damncabbage/9008-undef-var-in-list
12 years ago
James Cammarata c83a833740 New v2 ModuleArgsParser code and fixing up tests/other task code
12 years ago
Rob Howard 2769098fe7 Make listify respect the global setting for undefined variables.
12 years ago
James Cammarata bbd9921dbd Adding a negative test for new safe_load
12 years ago
Michael DeHaan 4cb7f654b6 Add stub tests for module args parsing.
12 years ago
James Cammarata 93e273333d Adding tests for new yaml parsing stuff and adjusting imports
12 years ago
Michael DeHaan ad9ab8e033 Stub class for mod arg parsing tests.
12 years ago
Michael DeHaan 21642c0fbf We need module args specific parsing classes.
12 years ago
Michael DeHaan d97b38ba83 Attribute defaults and optional accessors.
12 years ago
Michael DeHaan e66a0096a7 Work in progress on task loading.
12 years ago
Michael DeHaan f066e361f1 WIP on data structure processing patterns.
12 years ago
James Cammarata 05644686de Fix bug in plugin path caching
12 years ago
Michael DeHaan 94db7365b9 __getattr__ to hide some of the attribute magic.
12 years ago
Michael DeHaan b54434c1b2 WIP on Attributes. Getting closer.
12 years ago
Michael DeHaan 6db1b4dfd2 WIP on refactoring changes
12 years ago
Michael DeHaan 335221d79e This is an exceedingly rough sketch of what attributes might look like - metaclass implementations NOT complete.
12 years ago
James Cammarata 0c40c6c23c Fix order of resolving dependent role variables from vars files
12 years ago
Toshio Kuratomi e6fcd90342 Merge pull request #9224 from drawks/iss9223
12 years ago
Toshio Kuratomi e00d657362 Make unittest compatible with python <= 2.6
12 years ago
James Cammarata 313f26f866 Fix issue with vars precedence from roles
12 years ago
Dave Rawks 5f54b57b6d Corrected indentation
12 years ago
Chris Church 997ea78b1f Add integration tests for the win_feature module.
12 years ago
Toshio Kuratomi 0af750e3e5 Merge pull request #9182 from bbasleeper/feature_sudo_exe_from_inventory
12 years ago
Dave Rawks c070ab69f7 Resolve #9223 Fix test for python 2.6
12 years ago
Bruno BAILLUET a25da4af05 Add a new inventory parameter (ansible_sudo_exe) to specify sudo command path.
12 years ago
Michael DeHaan f35ed8a6c0 Update module test code to avoid pycs (that are not used)
12 years ago
James Cammarata 21dcfd7192 Adding integration tests for async fire-and-forget checking
12 years ago
James Cammarata 889dfc4374 Merge pull request #8959 from willthames/galaxy_ssh_clone
12 years ago
James Cammarata 56954a200e Merge branch 'devel' of https://github.com/dmage/ansible into dmage-devel
12 years ago
Toshio Kuratomi f7b5b85743 Fix the name of the upstart service
12 years ago
Toshio Kuratomi d98e32e364 Fix the var we're checking in the upstart test
12 years ago
Toshio Kuratomi 6943ec11a5 Failure to enable a service now fails the task
12 years ago
James Cammarata 28f6a18ef6 Allow git repo queries without a clone when update=no
12 years ago
James Cammarata b376e208c7 Adding "follow" param for file/copy options
12 years ago
Toshio Kuratomi 49a6af1378 Test that file touch does not keep a new file if we failed to set its
12 years ago
James Cammarata dc9482d548 Fix quoting issues in lineinfile for individual single-quotes
12 years ago
James Cammarata 503f7afbd8 Merge branch 'hfinucane-gh-7432' into devel
12 years ago
James Cammarata 178075489b Merge branch 'gh-7432' of https://github.com/hfinucane/ansible into hfinucane-gh-7432
12 years ago
Michael DeHaan d6e6d2a6ca Remove regex related to baby-JSON parsing only.
12 years ago
Michael DeHaan 26cdddaebf Tracebacks are now catchable with ignore_errors and have streamlined output. Also removes 'baby-JSON' for bash modules.
12 years ago
James Laska 6cd55a5e95 Correct mysql integration indentation
12 years ago
James Laska b7c7476359 Include el7 mariadb support in mysql integration test
12 years ago
James Cammarata 317ab06bc6 Fixing multiline parsing to preserve newlines
12 years ago
James Cammarata a571fd4efe Convert boolean strings from set_fact to proper boolean values
12 years ago
Will Thames d6a725659e Allow github style ssh repo names
12 years ago
Toshio Kuratomi a9b5b1bf55 Test that we can override variables set in inventory when the vars_file name is templated
12 years ago
James Cammarata 8cc3543918 Re-allow templating of complex_args, but count params to prevent injection
12 years ago
Toshio Kuratomi 8233522a7a Reduce commenting as basic.py is copied to the remote host with every module transfer.
12 years ago
Toshio Kuratomi d293a46994 Unittests to detect speed regressions in password obfuscation and that
12 years ago
James Cammarata cd99821f8a Fix py26 difference in ssl socket connect call from 99ba9d6
12 years ago
James Cammarata 14b8e2cf01 Make sure set_fact variables go into VARS_CACHE
12 years ago
Henry Finucane 9638ab973f Add integration test
12 years ago
Oleg Bulatov a7d38702d9 Fix #7711
12 years ago
Chris Church dac11904cb Add tests for new windows facts.
12 years ago
James Cammarata e99db078b4 Additional fixes for the new omit parameter variable
12 years ago
Victor Lin 6260635c65 add new test case
12 years ago
Victor Lin 559c04f324 Implement omit for module args, also add tests for it
12 years ago
James Cammarata d99b835c3e Adding integration tests for symbolic modes
12 years ago
Will Thames ab8490d003 Added warnings to command module
12 years ago
Michael DeHaan 3871eebfbb Merge pull request #8441 from willthames/unarchive_dest_fix
12 years ago
Michael DeHaan 3695c2bcab Remove galaxy CLI tests that hit bitbucket as bitbucket is hanging tests - maybe replace with nice github examples later :)
12 years ago
Michael DeHaan 8a0045baad Update tests for ansible-galaxy CLI additions.
12 years ago
Michael DeHaan d87830e1cc Merge branch 'galaxy_github_archive' of git://github.com/willthames/ansible into devel
12 years ago
James Cammarata d01188033f Checking for localized versions of the su password prompt
12 years ago
Will Thames 850963790d Allow roles to be installed from archives on github
12 years ago
Michael DeHaan bcb44276fe Assume github.com URLs are git protocol if not specified.
12 years ago
Will Thames 6e9abefc11 Corrected bug where role_path was wrong for roles in subdirectories
12 years ago
Will Thames 31540246dd Handle older git archive commands
12 years ago
Will Thames ada9074276 Allow installation of roles from yaml roles file
12 years ago
Will Thames 46b59b02ed Friendly Role Names and roles from URLs
12 years ago
Will Thames 4803e923ff Improved handling of role_version in repo_url_to_role_name
12 years ago
Will Thames 1803976a40 Ensured that role version can be specified in role dependencies
12 years ago
Will Thames c2fe33f9f4 Tidied up a little, added tests
12 years ago
James Cammarata 5e240fec71 Merge branch 'devel' of https://github.com/l1k/ansible into l1k-devel
12 years ago
James Cammarata 8a1fbed5d6 Correct variable blending from vars_files with hostvars in them
12 years ago
Michael DeHaan f2adee9fc9 Merge pull request #8665 from cchurch/winrm_timeout
12 years ago
James Cammarata d4ff0d125a Make sure password files from lookups are created with restrictive permissions
12 years ago
James Cammarata 3a7aca6066 Fix no_log value for content in common file args settings
12 years ago
Chris Church 90fc6c6881 Added winrm test for long-running command.
12 years ago
Lukas Wunner 677de07f44 Try optimistic chown, do not error out if not permitted to chown
12 years ago
Michael DeHaan 99c39b1ff3 By popular request, make the no_log attribute also censor tasks from callbacks.
12 years ago
James Cammarata 5a128ca286 Adding extra member to mock inventory for unittests
12 years ago
James Cammarata 783a1e3dfc Fixing broken patch 20957a1
12 years ago
James Cammarata 66802169f5 Adding integration test based on #8535
12 years ago
Michael DeHaan 2629cd3fce Fix some copyrights, fix a misc test.
12 years ago
James Cammarata 25e9d1197e Merge branch 'optimise_utils_clean_data' of https://github.com/leth/ansible into leth-optimise_utils_clean_data
12 years ago
Marcus Cobden e3dbca9378 Test escaping strings with two variables
12 years ago
Michael DeHaan 3bead39c75 Merge branch 'spelling' of git://github.com/cgar/ansible into devel
12 years ago
James Cammarata 63bf2f6d9a Preserve all line breaks in literal blocks
12 years ago
Michael DeHaan 8c4161d4a1 Merge branch 'retf_py' of git://github.com/berendt/ansible into devel
12 years ago
Michael Peters 3ba516ac25 adding min() and max() filters for use in Jinja templates
12 years ago
Will Thames d9b895b319 Unarchive should work when parent directory is not writable
12 years ago
James Cammarata 5c2c10987e Re-enable the ec2_eip test
12 years ago
James Laska d202616213 Merge pull request #8426 from jlaska/update_integration_Makefile
12 years ago
James Cammarata af0d8cda7b Fix literal block multiline parsing
12 years ago
James Cammarata 6d94ae64ec Remove unnecessary unicode conversions from parse_kv
12 years ago
James Laska d4a78dc951 Include unicode and var_precedence tests in 'all' target
12 years ago
Wayne Rosario 2957a8de44 Adding test Coverage for mysql_variable module
12 years ago
James Cammarata 80df2135e9 Fix parsing of tasks with variable module names
12 years ago
James Cammarata 730e23fa07 Merge branch 'integration_mysql_user' of https://github.com/wrosario/ansible into wrosario-integration_mysql_user
12 years ago
James Cammarata e6fa50a306 Move splitter to module_utils so modules can use it and fix command arg splitting
12 years ago
Wayne Rosario eaf4571e42 Adding the following Test Coverage:
12 years ago
James Cammarata b64a5ff73d Further enhancements for include params tests
12 years ago
James Cammarata c9bfcf40d3 Adding further integration tests for include params with quotes
12 years ago
James Cammarata aee940aaca Reworking _clean_data() to be smarter about replaces
12 years ago
James Cammarata 6e814566de Unquote params passed to an include statement
12 years ago
Michael DeHaan f814e4e463 Verify playbook includes can take params.
12 years ago
Michael DeHaan a1e4f826ca Add some more integration tests for the task and playbook include mechanism.
12 years ago
James Cammarata 5bcb715dc0 Fixing up previous include test
12 years ago
James Cammarata 4d659229ce Adding integration test to parsing for includes with params
12 years ago
James Cammarata a8c2d6acd5 Adding unittest for space preservation within quotes when splitting args
12 years ago
James Cammarata 8f694c7588 Fixing unittests based on previous patch for splitting
12 years ago
James Cammarata 57f89b85eb Merge pull request #8271 from tksmd/fix-copy-set-fs-attributes-issue
12 years ago
James Cammarata 63bcbd0af2 Fix for unicode decoding error in new splitting code
12 years ago
Michael DeHaan 8d42f5cbfa Smush ds removal
12 years ago
Michael DeHaan 3adddf4836 Add another negative test for the parser logic.
12 years ago
Michael DeHaan eeb51b6bf3 Moar split_args tests
12 years ago
Michael DeHaan 630f080cf0 Start of unit tests for split_args function, moved split_args to utils since not needed by modules (so far).
12 years ago
James Cammarata 43154e5101 Using custom splitting function for module param counting
12 years ago
James Cammarata cd6602475b Merge branch 'integration_mysql_db' of https://github.com/wrosario/ansible into wrosario-integration_mysql_db
12 years ago
someda 1b1d5d0d3d fix an issue that copying directory will fail when trying to change file attributes and the target file already exists on remote
12 years ago
James Cammarata 091b76efaa Fixes to parsing tests to remove trailing space
12 years ago
Michael DeHaan 1064550b47 Add missing file.
12 years ago
Michael DeHaan a21092d7c2 Add missing role test file.
12 years ago
Michael DeHaan 5a763fb5b6 Add some negative tests on the same parsing infrastructure.
12 years ago
Michael DeHaan 02c63cee26 Add a lot of tests to verify parsing routines for scenarios that should pass. Some changes TBD, like stripping command spaces off end of expressions.
12 years ago
James Cammarata 75e5b6401c Fixing up shell quoting issues
12 years ago
James Cammarata 8e940004c2 Fix ec2_setup task param quoting
12 years ago
James Cammarata 84759faa09 Security fixes:
12 years ago
Michael DeHaan 98c6688343 Merge pull request #6976 from clconway/gce-snapshots
12 years ago
Wayne Rosario 24a3d55c78 Adding Integration Tests for mysql_db module
12 years ago
James Cammarata 0e5b0a2e97 Revert "Set Jinja2's keep_trailing_newline=True in template_from_string."
12 years ago
Jacob Leverich 7a8eb0b670 Set Jinja2's keep_trailing_newline=True in template_from_string.
12 years ago
James Cammarata a320c02c81 Correcting var blending integration test
12 years ago
James Cammarata 4e5eb7559e Merge branch 'svg_and_inventory_refactor' into devel
12 years ago
Dan Slimmon 6ad09f1825 Added test for regex grouping bug fixed in 307a3e
12 years ago
James Cammarata bcf83cbc24 Merge branch 'sergevanginderachter-inventorytree' into svg_and_inventory_refactor
12 years ago
Chris Church 12a0f4abd8 Add integration tests for win_service module.
12 years ago
James Cammarata d8a7b49b59 Merge branch 'inventorytree' of https://github.com/sergevanginderachter/ansible into sergevanginderachter-inventorytree
12 years ago
James Cammarata 9564818e1e Merge branch 'fix_lineinfile_newlines' into devel
12 years ago
Chris Church f59041871e Fix typo in powershell setup module.
12 years ago
James Cammarata 32aa948dd0 Exclude ps1 modules from the TestModules unittest
12 years ago
James Cammarata 22ae21ab43 Exclude ps1 modules from the TestModules unittest
12 years ago
James Cammarata 48dbb79fbe Merge branch 'issue_5679_lineinfile' into fix_lineinfile_newlines
12 years ago
Chris Church 2654f7b200 Add copyright header to main winrm test playbook.
12 years ago
Chris Church 43236ca0ed Add basic tests for win_get_url and win_msi modules.
12 years ago
Chris Church 5b85252043 Add tests for windows setup module.
12 years ago