Commit Graph

350 Commits (0fefab66514ac10acaed754793df3106fca4c4a8)

Author SHA1 Message Date
James Laska aacccd441b Add integration test for apt_repository
Tests several ways to specify the repository.  For every repo added, the test
asserts that:

 * the apt-cache was updated as expected (depends on `update_cache` parameter)
 * the PPA key was installed (depends on `repo` format)
10 years ago
James Cammarata 8df29e7c8b Cleaning up some exception blocks in TestModuleUtilsBasic 10 years ago
James Cammarata 69ff355726 Adding new unit tests for module_utils/basic (run_command only now) 10 years ago
James Tanner b0d22b76bd Add an ast.parse unit test for modules to simulate ansible-doc 10 years ago
James Laska 07dd02c25a [test_ec2*] cloud integration test updates
To support parallel cloud test execution, create and provide a random string to
cloud integration tests.  The variable 'resource_prefix' can be used in cloud
roles and during resource cleanup to safely create/destroy cloud-based
resources.

Additional changes include:

 * The roles test_ec2_key and test_ec2_group were updated to use to
 {{resource_prefix}}.

 * Additionally, the Makefile was updated to set resource_prefix to a random
 string.  The Makefile will also use 'resource_prefix' during cloud_cleanup.

 * All test_ec2* roles were updated to add 'setup_ec2' as a role dependency.
10 years ago
James Laska 9cc4be2683 Correct test integration ec2 cleanup script 10 years ago
James Laska bc678e7d7b Add credentials.template and support custom INVENTORY
Testers may override the inventory and vars-file using the environment
variables 'INVENTORY' and 'VARS_FILE'.
10 years ago
James Laska 5c9dc33e41 Additional test_git scenarios
Includes coverage for accept_hostkey and additional scm URL formats.
10 years ago
James Laska 551cb1892b Always run cleanup after running cloud_integration tests 10 years ago
James Tanner 0d6f6ad282 Implement new default cipher class AES256 10 years ago
Dolph Mathews 8808e029f9 spelling correction for "separate"
s/seperate/separate/

http://en.wiktionary.org/wiki/separate
10 years ago
Richard C Isaacson a483e42583 unarchive module: Add creates functionality.
Closes GH-5354.

Forklift copy logic into unarchive. Provides integration unit tests.
10 years ago
James Laska c7d1c1a306 [test_service] correct upstart service name and permissions
The 'service' utility was unable to find the 'ansible_test' service due to an
unexpected filename.  This patch corrects the filename and adjusts the
permissions to match other service scripts within /etc/init/.
10 years ago
Richard Isaacson 119434d079 Merge pull request #6319 from risaacson/fix_test_dir_inventory
Fix TestInventory Unit Tests

Tested clean.
10 years ago
James Laska 868746b095 Correct ansible_distribution typo
Redhat != RedHat
10 years ago
James Laska ba9950a73a Use correct value of ansible_distribution in integration tests
This fixes integration tests when run on a RHEL system.  Oddly, the
ansible_distribution='RedHat' when run on RHEL.
10 years ago
James Tanner 85bc14a8eb Remve debug file from vault unit test 10 years ago
Richard C Isaacson 913c855df4 Formatting cleanup.
Post merging of GH-5837 via GH-5749.
10 years ago
g-k-r dbad5d71c6 modifed test to use get_hosts instead of get_groups
closes #5749

Conflicts:
	test/units/TestInventory.py
10 years ago
g-k-r 6626cb0b3d add test same host in different files in dir
tests issue #5749
 same host defined in different groups which in turn are defined
 in different ini files in an inventory directory

Conflicts:
	test/units/TestInventory.py
10 years ago
James Tanner cd6d7ddc97 Fix test_async by using env python 10 years ago
Richard C Isaacson 16fe09eef8 Fixes related to uncommenting test_dir_inventory in TestInventory.
0. Uncomment the test.
1. Test fails.
2. Make vars unique per file in test inventory files.
3. Modify token addition to not ast.literal_eval(v) a variable containing a hash.
4. Modify vars to have an escape in test inventory file.
5. Catch exceptions explicitly. Any unknown exceptions should be a bug.
6. Test passes.
10 years ago
Michael DeHaan 94a7fb60fe Allow escaped comments in inventory files. 10 years ago
Richard C Isaacson b41d8106ff Revert "Merge pull request #6287 from risaacson/fix_hash_in_var"
This reverts commit a808287451, reversing
changes made to 6129ea7566.
10 years ago
Richard Isaacson a808287451 Merge pull request #6287 from risaacson/fix_hash_in_var
Fix inventory for test_dir_inventory, merge PRs from GH-5749, cleanup some formatting.
10 years ago
James Tanner 6129ea7566 Fixes #6298 and adds a sudo unit test for synchronize 10 years ago
Richard C Isaacson 22a1fb28d6 Minor cleanup. 10 years ago
g-k-r a3c36a6853 modifed test to use get_hosts instead of get_groups
closes #5749

Conflicts:
	test/units/TestInventory.py
10 years ago
g-k-r 23fee4b836 add test same host in different files in dir
tests issue #5749
 same host defined in different groups which in turn are defined
 in different ini files in an inventory directory

Conflicts:
	test/units/TestInventory.py
10 years ago
Richard C Isaacson 49bd8b0b35 Fix inventory for test_dir_inventory
It came up that fixing this unit test may relate to another ticket that is open. This work allows us to uncomment this unit test by fixing how we pars variables allowing a quoted variable to contain a '#'.

Work also went into cleaning up some of the test data to clarify what was working.

Lastly work went into cleaning up formatting so that the code is easily read.
10 years ago
Jesse Keating 0c2c37a47a Avoid range selection on empty groups
This prevents a traceback when the group is empty.
Fixes #6258
10 years ago
Michael DeHaan 46ec8759d5 Remove the legacy templating code, which was guarded by deprecation warnings in the previous two releases, and undocumented for a long time. use {{ foo }} to access variables instead of ${foo} or $foo. 10 years ago
Michael DeHaan 956eb91de0 Merge pull request #6198 from jlaska/integration_ec2
First pass at ec2 module tests
10 years ago
Chris Church adeea2c3f3 Added integration test for subversion parameters that need escaping. 10 years ago
James Laska b589bf1d2e First pass at ec2 module tests 10 years ago
James Tanner a37a6983be Switch from skipIf to SkipTest for TestVaulLib 10 years ago
James Tanner f5359c310f Add negative tests for VaultLib 10 years ago
James Tanner baed7a0ed9 Fixes #6187 Add unit tests for VaultLib 10 years ago
Richard C Isaacson 2bce819519 Fix fails on ubuntu due to missing /etc/motd
Some systems that we are testing on may not have /etc/motd. So we need to create a file that we can control and use that for the further tests.
10 years ago
James Tanner e121ff111d Fix synchronize unit test to handle checkmode 10 years ago
James Cammarata f23ccebbdc Merge branch 'issue_4620' of https://github.com/jimi-c/ansible into jimi-c-issue_4620 10 years ago
James Cammarata 7517cd9398 Moving the assemble test to the correct location 10 years ago
James Cammarata f03d6a67c8 Adding new tests for assemble role 10 years ago
Michael DeHaan 0a83f743c1 Merge pull request #6146 from jlaska/test_synchronize
Correct assert and add with_items test
10 years ago
James Laska 40e0204051 Correct assert and add with_items test 10 years ago
Richard C Isaacson 087f7c230d Typo fixes. 11 years ago
Richard C Isaacson 0446a030d7 Typo fixes. 11 years ago
Richard C Isaacson dcbc69b69c Added script to the new integration tests. 11 years ago
Richard C Isaacson e2a47162d0 Added test for failed_when to non_destructive integration tests. 11 years ago
Richard C Isaacson 0c33e936d4 Adding tests for the command and shell modules. 11 years ago