Skip to content

Commit

Permalink
Do not merge: test runner with ara
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsimard committed Jan 17, 2021
1 parent 9d71bbd commit 7feec8a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/lib/ansible_test/_data/requirements/integration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ junit-xml
ordereddict ; python_version < '2.7'
packaging
pyyaml
ara
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ ordereddict ; python_version < '2.7' # ansible-test junit callback plugin requir
packaging
paramiko
pyyaml
ara
14 changes: 14 additions & 0 deletions test/lib/ansible_test/_internal/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,20 @@ def integration_environment(args, target, test_dir, inventory_path, ansible_conf
INVENTORY_PATH=os.path.abspath(inventory_path),
)

# Do not merge -- test purposes
# Test with a reasonable list of locations where ara would be installed.
python_versions = ["3.6","3.7","3.8","3.9"]
callback_paths = [ "/usr/lib/python%s/site-packages/ara/plugins/callback" % version for version in python_versions ]

display.info("Enabling ARA with ANSIBLE_CALLBACK_PLUGINS=%s" % ":".join(callback_paths))
env.update(dict(
ANSIBLE_CALLBACK_PLUGINS=":".join(callback_paths),
ARA_API_CLIENT="http",
ARA_API_SERVER="https://demo.recordsansible.org",
ARA_CALLBACK_THREADS="4",
ARA_DEFAULT_LABELS="ansible-test_20200117"
))

if args.debug_strategy:
env.update(dict(ANSIBLE_STRATEGY='debug'))

Expand Down

0 comments on commit 7feec8a

Please sign in to comment.