-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need an assist on serverspec #31
Comments
The spec stuff is based off the run list of the node, not the name. This allows for a flow of a "node that has a runlist of |
Chris, I did what you suggested but didn't have much luck... I destroyed the Chef server and all nodes and then ran
Not sure what happened, but all I did was mv the two files as you suggested and re-start the cluster. Passing --debug to the command did not produce any more output:
Any ideas? Best, |
Doh, ignore the above :( I was using metering-db and not metering_db. Probably would be good to have a better error message in case of mistyped cluster names! :) I'll work on that and push a patch. |
OK, well the cluster completed again, and I got all tests passed:
It's still not clear however that the tests ran.. any way I can tell ? |
Hi Chris,
OK, so I'm very happy with Vagabond so far. It's been immensely useful for me to test a fix for CHEF 2100 (http://tickets.opscode.com/browse/COOK-2100). I have a master and slave recipe in my local cookbook and two nodes in a cluster assigned respectively. Here's my Vagabondfile:
I run
bundle exec vagabond cluster metering_db
and the cluster nodes come up just fine. All good in the hood.So, I decided to move on to writing some serverspec tests. I did a
bundle exec vagabond spec init
, edited the Layout file to look like this:I then created two identical serverspec tests:
and placed the above into files called
spec/metering_master.rb
andspec/metering_slave.rb
.After that, I fired off the spec, using:
Both the master and slave nodes came up, and at the end of the run, I got:
Now, my question is... did the tests actually get run? I don't think they actually did :)
Best,
-jay
The text was updated successfully, but these errors were encountered: