Commit Graph

795 Commits (816b20af0beb5a96957cd51412aa116f14374b04)

Author SHA1 Message Date
James Cammarata 0828028c71 Fixing unit test for included file changes 10 years ago
Toshio Kuratomi afc19894e1 Make fetch_url check the server's certificate on https connections 10 years ago
James Cammarata e59d4f3b51 More module_utils/basic.py unit tests for v2 10 years ago
James Cammarata 339a02c384 Started reworking module_utils/basic unit tests (v2) 10 years ago
James Cammarata d4a31e8d26 Adding unit tests for TaskExecutor (v2) 10 years ago
James Cammarata 838ff32001 Fix unit test for conn_info (v2)
The default user expected in the connection information is the current
user, not root
10 years ago
James Cammarata ecd5eb902d Adding unit tests for ConnectionInformation (v2) 10 years ago
James Cammarata 9921a1d2be Unit tests for base strategy class (v2) 10 years ago
James Cammarata 21fa385ce7 Reorganizing plugin unit tests and adding start of strategy tests (v2) 10 years ago
James Cammarata a960fcd569 Adding module_utils tests from v1 to v2 10 years ago
James Cammarata 398b1d3e60 Cleaning up template test syntax a bit 10 years ago
James Cammarata 9aa8676bdd More template unit tests for v2 10 years ago
James Cammarata 23cd3294d0 Starting to add v2 tests for template 10 years ago
James Cammarata 48d62fd934 Cleaning up VariableManager tests (v2) 10 years ago
James Cammarata a0509cda1e Fix test_role unit tests to use unique role names to avoid role caching errors 10 years ago
Toshio Kuratomi bbda86ad0a Fix parsing tests so that they all run 10 years ago
James Cammarata b94e2a1f4e Fixing bugs related to parsing and fixing up parsing integration tests (v2) 10 years ago
James Cammarata 830225d9c1 Fix errors in subelements lookup plugin and associated tests (v2) 10 years ago
Jan Losinski dcb54d9657 Add integration test to verify #10073
In issue #10073 a misbehaviour in literal handling for inline lookup
arguments that can cause unexpected behaviur was reported. This
integration testcase reproduce the problem.

After applying pull request #10991 the issue is fixed and the test
passes.

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
10 years ago
Serge van Ginderachter 9b646dea41 Add optional 'skip_missing' flag to subelements 10 years ago
James Cammarata 1ca8cb8553 Fixing up v2 unit tests 10 years ago
Toshio Kuratomi f9f8af06fc Change asserts to assertIsInstance for better error messages 10 years ago
Matt Martz a0fc8bb0bd Testing additions and fixes
* Fix import pathing for units.mock
* Add some additional requirements
* Use compileall to test compatiblity with different python versions
10 years ago
James Cammarata 8f504dacdd Merge branch 'devel' into v2_final
Conflicts:
	lib/ansible/modules/core
	v2/ansible/modules/core
	v2/ansible/modules/extras
10 years ago
Brian Coca 1071fa12ca Merge pull request #10908 from resmo/feature/cloudstack-tests
cloudstack: integration tests
10 years ago
Brian Coca 4d357a73f6 Merge pull request #10868 from jaypei/devel
Add lineinfile integration tests for quoted string
10 years ago
James Cammarata ce3ef7f4c1 Making the switch to v2 10 years ago
Rene Moser 0588a0fdd9 cloudstack: integration tests 10 years ago
Toshio Kuratomi da5e201b07 Change python-q into sharutils as the epel repo for centos6 is being funky. 10 years ago
Toshio Kuratomi 6a985b9c6b Add Fedora mysql vars so we get mariadb rather than mariadb-galera 10 years ago
Toshio Kuratomi 3ccc2ae299 Fix include test to keep type 10 years ago
Toshio Kuratomi 974731bec0 Fix filename of output file 10 years ago
Toshio Kuratomi 8d0ceeca91 Make template test work with both py2.6 and 2.7+ 10 years ago
Toshio Kuratomi fb96173d10 to_nice_json filter no longer has a trailing space when formatting dicts 10 years ago
jaypei 288fe1179a Add lineinfile integration tests for quoted string
Reference #10864
10 years ago
Carlos E. Garcia cfbfd38723 just a few spelling error changes 10 years ago
Toshio Kuratomi 6935d467eb Add tests for yum module taking lists of packages in various formats 10 years ago
Toshio Kuratomi a0def30c34 Add integration test for unarchive filelist feature 10 years ago
Toshio Kuratomi aab681bc2b Update core and extras module refs and add tests for an unarchive
problem that the update fixes:

https://github.com/ansible/ansible-modules-core/issues/1064
10 years ago
Toshio Kuratomi ed601f964d Merge pull request #10683 from timsutton/remove-old-git-integration-test
Git integration test: remove test for ambiguous .git/branches dir
10 years ago
Timothy Sutton 5f1ba589a5 Git integration test: remove test for ambiguous .git/branches dir
- '.git/branches' does not always exist, but the git integration
  tests always checks for this directory's existence so it always
  fails
- more info:
  - http://stackoverflow.com/questions/10398225/what-is-the-git-branches-folder-used-for
10 years ago
Brian Coca 67512aeeb6 Merge pull request #10618 from jder/force-handlers
Fix --force-handlers, and allow it in plays and ansible.cfg
10 years ago
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.
10 years ago
Chris Church 42bd640d14 Update win_user tests to set a group on user creation. 10 years ago
Chris Church 56f4bf44f5 Add integration tests for win_user module. 10 years ago
Jesse Rusak 652cd6cd5e Fix --force-handlers, and allow it in plays and ansible.cfg
The --force-handlers command line argument was not correctly running
handlers on hosts which had tasks that later failed. This corrects that,
and also allows you to specify force_handlers in ansible.cfg or in a
play.
10 years ago
Toshio Kuratomi aaa25eb75c Make run_command() work when we get byte str with non-ascii characters (instead of unicode type like we were expecting)
Fix and test.

Fixes #10536
10 years ago
Brian Coca c49685b753 removed debug play from tests 10 years ago
Brian Coca a53cf9d6fa now correctly aplies add_host passed variables last to override existing vars. 10 years ago
Toshio Kuratomi e73b945900 Merge pull request #10112 from jsmartin/ec2_asg_rolling_integration_tests
Adds integration tests for new ec2_asg features
10 years ago