Backblaze / boardwalk

A linear remote execution workflow engine built on top of Ansible
Other
18 stars 1 forks source link

Make the test Boardwalkfile.py workflows function #31

Closed asullivan-blze closed 1 year ago

asullivan-blze commented 1 year ago

Creates a minimal environment consisting of an ansible.cfg and an inventory file--with a dummy host variable in-line--required for correct execution. Fixes #29.

What and why?

Prior to this PR, a fresh clone of this repository would not result in the test Boardwalk workflows executing correctly. This PR aims to fix that with a minimally viable configuration (an ansible.cfg (which references the inventory file); a test-inventory (which contains localhost and a dummy inventory variable[1]). With these changes, the test workflows succeed.

[1] The dummy inventory variable is required, due to various places in boardwalk--such as check_host_preconditions_locally--relying on the hostname being a key within the gathered inventory_vars.

How was this tested?

Locally by executing the ShouldSucceedTestWorkspace and ShouldFailTestWorkspace workspaces (which succeeded and failed respectively). Absent the PR, they were failing to gather any hosts.

Checklist