Krishna
Krishna

Reputation: 13

Testkitchen in chef

I created a vagrant box out of windows 8.1 embedded OS that I have which includes winrm access. However when I try to create an instance using "Kitchen create", it's pulling the box and everything but kitchen's attempting to connect to Instance over ssh and and not winrm.(I configured transport option in kitchen.yml to winrm, still doesn't work)

* I created a box out of windows 8.1 embedded os and made configured winrm settings.

---
driver:
  name: vagrant

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

verifier:
  name: inspec

platforms:
  - name: testwin
    transport:
      name: winrm
      username: vagrant
      password: vagrant

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

Upvotes: 0

Views: 169

Answers (1)

coderanger
coderanger

Reputation: 54249

Change your platform name to start with win. We use that activate some windows-specific behavior. Also you don't have any configuration about which Vagrant box to use, which you need to add.

Upvotes: 1

Related Questions