StackStorm / chef-stackstorm

DEPRECATED! Community-maintained Chef Cookbook to deploy StackStorm, IFTTT for Ops
https://supermarket.chef.io/cookbooks/stackstorm
Apache License 2.0
16 stars 10 forks source link

Add chefspec testing #3

Closed shortdudey123 closed 8 years ago

arm4b commented 8 years ago

Nice :+1:

You can also find some spec here: https://github.com/StackStorm/st2-packages/blob/master/rake/spec/default/

Ex. build log example:

shortdudey123 commented 8 years ago

Fixed travis failures :)

arm4b commented 8 years ago

Since I'm not ruby/Chef guy, I can only assume what's going on here :)

@shortdudey123 Can you describe at a high level how these integration tests are executed? For example what platform is actually tested and how? Is it isolated with test-kitchen + Docker or it's executed directly in Travis environment?

shortdudey123 commented 8 years ago

These are chef specific rspec tests that verify the chef resources do what the are supposed to do. test-kitchen is not involved since these are unit tests and not integration tests.

arm4b commented 8 years ago

since these are unit tests and not integration tests.

That's what I got wrong. Makes sense now, thanks!

arm4b commented 8 years ago

:+1:

@Kami, @sysbot please take a look

Kami commented 8 years ago

Nice work :+1:

Thanks!

Kami commented 8 years ago

@shortdudey123 I also gave you a direct write / collaborator access to this repository since you are more active than us in this repository

Even though you have a direct access, please still follow "best" practices for contributing (open a PR so it's easier to see what has been changed and so other can chime in, etc.), but also feel free to merge those PRs at your discretion.

shortdudey123 commented 8 years ago

@Kami cool, thanks!!!

@sysbot can you review this as well since it is testing on your rewrite?

sysbot commented 8 years ago

@shortdudey123 these are awesome! test-kitchen for integration testing in the future would even be better. LGTM.

shortdudey123 commented 8 years ago

yup, test-kitchen stuff is next on the todo list