---
driver:
  name: vagrant

provisioner:
  name: chef_solo
  sudo: true

verifier:
  name: inspec

platforms:
  - name: ubuntu-18.04

lifecycle:
  # Build the InSpec gem so it is available to install during `kitchen converge`
  pre_create:
    - cd ../../../ && gem build inspec.gemspec
    - mv ../../../inspec-*.gem test/cookbooks/inspec_habitat_fixture/files/inspec-local.gem
  post_converge:
    - local: sleep 10 # Wait for Habitat to load/run hab service before `verify`

suites:
  - name: default
    run_list:
      - recipe[inspec_habitat_fixture]
    attributes:

