test-kitchen / kitchen-vagrant

A Test Kitchen Driver for Vagrant
Other
348 stars 189 forks source link

kitchen converage error #406

Closed spandanareddyt closed 5 years ago

spandanareddyt commented 5 years ago
---
driver:
  name: vagrant
  provider: hyperv
  network:  
         -["public_network", bridge: "vagrant"]
## The forwarded_port port feature lets you connect to ports on the VM guest via
## localhost on the host.
## see also: https://www.vagrantup.com/docs/networking/forwarded_ports.html

#  network:
#    - ["forwarded_port", {guest: 80, host: 8080}]

provisioner:
  name: chef_zero
  # You may wish to disable always updating cookbooks in CI or other testing environments.
  # For example:
  #   always_update_cookbooks: <%= !ENV['CI'] %>
  always_update_cookbooks: true

  ## product_name and product_version specifies a specific Chef product and version to install.
  ## see the Chef documentation for more details: https://docs.chef.io/config_yml_kitchen.html
  #  product_name: chef
  #  product_version: 15

verifier:
  name: inspec

platforms:
  #- name: ubuntu-18.04
  - name: centos-7

suites:
  - name: default
    run_list:
      - recipe[effectivelamp::default]
    verifier:
      inspec_tests:
        - test/integration/default
    attributes:

dis is the code and the error is 62572199-c9bef280-b8b0-11e9-8d3a-713d2a155578

cheeseplus commented 5 years ago

As the error indicates, something is syntactically wrong with your YAML file - this isn't really a bug for specifically kitchen-vagrant. Since the YAML was pasted without formatting (I edited this later) it's likely a missing field or things are tabbed incorrectly.

A tool such as yamlint can help check this https://github.com/adrienverge/yamllint

It seems you've already got an issue open on another repo and as this isn't an issue with kitchen-vagrant or test-kitchen itself, I'm closing. If you need more real-time assistance then check out the #test-kitchen channel on the Chef Community Slack which can be signed up for here https://community-slack.chef.io/