Created
October 17, 2012 15:17
-
-
Save pmenglund/3906090 to your computer and use it in GitHub Desktop.
Sample spec file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec_helper" | |
describe "foo" do | |
before(:all) do | |
requirement release | |
requirement stemcell | |
end | |
after(:all) do | |
cleanup release | |
cleanup stemcell | |
end | |
it "should one" do | |
use_job("batarang") | |
with_deployment do |deployment| | |
bosh("deployment #{deployment}").should succeed | |
bosh("deploy").should succeed | |
# check stuff | |
bosh("delete deployment #{deployment.name}").should succeed | |
end | |
end | |
it "should two" do | |
use_static_ip | |
with_deployment do | |
# check stuff | |
# e.g. ssh(user, password, static_ip, "command") | |
end | |
end | |
it "should three" do | |
use_persistent_disk(2048) | |
deployment = with_deployment | |
bosh("deployment #{deployment.to_path}").should succeed | |
bosh("deploy").should succeed | |
# check stuff | |
bosh("delete deployment #{deployment.name}").should succeed | |
deployment.delete | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment