- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
- using inventory:
127.0.0.1 ansible_connection=local
{ | |
"uuid": "64840ad9-aac1-4494-b4d1-9de5d8cbedd9", | |
"general": { | |
"name": "node-1", | |
"device": "tp-wr743ndv1", | |
"build_channel": "stable", | |
"version": null | |
}, | |
"location": { | |
"address": "Foo Street 17", |
math.randomseed(os.time()) | |
local charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" | |
function string.random(length) | |
if length > 0 then | |
return string.random(length - 1) .. charset:sub(math.random(1, #charset), 1) | |
else | |
return "" | |
end |
ansible-playbook --connection=local 127.0.0.1 playbook.yml
127.0.0.1 ansible_connection=local
""" | |
A unittest.TestCase mixin that allows using the | |
responses (https://pypi.python.org/pypi/responses/) package in tests. | |
Usage | |
----- | |
Install responses with `pip install responses`. | |
Add `ResponsesMixin` to your `TestCase` parent classes instead of using |