Setting node attributes via test-kitchen

I am looking to properly test a cookbook. I need to run in a particular role and set the nodes run_state. Is it possible to do such thing when invoking vagrant ala test-kitchen?

John

2 Likes

I'm also interested in overriding the node run_state via the kitchen attributes. I ended up creating a dedicated recipe that sets the desired run_state and running it before the recipes under test.

Would love to have an alternative solution.