diff options
author | Matt Clay <matt@mystile.com> | 2017-09-13 17:31:44 -0700 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2017-09-14 07:14:30 -0700 |
commit | 781fd7099a0278d3d91557b94da1083f19fad329 (patch) | |
tree | 766050ac2c03cf881bab60ff59600437db500da5 /test/legacy/consul_running.py | |
parent | 896c4b42baeb0c07c0a29009e8fb7c8e98954a83 (diff) | |
download | ansible-781fd7099a0278d3d91557b94da1083f19fad329.tar.gz |
Reorganize integration tests:
- Move legacy tests into a separate directory.
- Reduce common dependencies between targets.
Diffstat (limited to 'test/legacy/consul_running.py')
-rw-r--r-- | test/legacy/consul_running.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/legacy/consul_running.py b/test/legacy/consul_running.py new file mode 100644 index 0000000000..f64aaeecc3 --- /dev/null +++ b/test/legacy/consul_running.py @@ -0,0 +1,11 @@ +''' Checks that the consul agent is running locally. ''' + +if __name__ == '__main__': + + try: + import consul + consul = consul.Consul(host='0.0.0.0', port=8500) + consul.catalog.nodes() + print("True") + except: + pass |