sous-chefs / certificate

Development repository for the certificate cookbook
https://supermarket.chef.io/cookbooks/certificate
73 stars 43 forks source link

Add ChefSpec matcher #22

Closed esigler closed 10 years ago

esigler commented 10 years ago

Adds a simple ChefSpec matcher, which allows for tests like this:

  expect(runner).to create_certificate_manage('www.example.com').with(
    cert_path: '/path/to/certs',
    owner: 'username',
    group: 'groupname',
    key_file: "www.example.com.key",
    cert_file: "www.example.com.combined.crt",
    create_subfolders: false,
    nginx_cert: true
  )
tmatilai commented 10 years ago

Without testing it this looks good!

ranjib commented 10 years ago

:+1: