Permalink
Browse files

Update specs to CLI 1.0.rc1

Change-Id: I3850952c920e1048172107a6f0c161535fba7df0
  • Loading branch information...
1 parent f985b28 commit bcf106f14071228318b8b50ef5640baac090f1a7 @oppegard oppegard committed Oct 15, 2012
View
@@ -6,7 +6,7 @@ gem "rspec", "~>2.11"
gem "rake", "~>0.9"
gem "httpclient", "~>2.2"
gem "json", "~>1.7"
-gem "bosh_cli", ">=0.19"
+gem "bosh_cli", ">=1.0.rc1"
gem "bosh_common", ">=0.5.2"
gem "minitar"
gem "net-ssh"
View
@@ -12,8 +12,9 @@ GEM
multi_json (~> 1.1.0)
ruby-atmos-pure (~> 1.0.5)
uuidtools (~> 2.1.2)
- bosh_cli (0.19.6)
+ bosh_cli (1.0.rc1)
blobstore_client (~> 0.4.0)
+ bosh_common (>= 0.5.1)
highline (~> 1.6.2)
httpclient (>= 2.2.4, <= 2.2.4)
json_pure (~> 1.6.1)
@@ -24,11 +25,11 @@ GEM
progressbar (~> 0.9.0)
terminal-table (~> 1.4.2)
bosh_common (0.5.2)
- builder (3.0.0)
+ builder (3.1.3)
diff-lcs (1.1.3)
- highline (1.6.14)
+ highline (1.6.15)
httpclient (2.2.4)
- json (1.7.4)
+ json (1.7.5)
json_pure (1.6.7)
log4r (1.1.10)
mime-types (1.19)
@@ -49,7 +50,7 @@ GEM
rspec-core (2.11.1)
rspec-expectations (2.11.3)
diff-lcs (~> 1.1.3)
- rspec-mocks (2.11.2)
+ rspec-mocks (2.11.3)
ruby-atmos-pure (1.0.5)
log4r (>= 1.1.9)
ruby-hmac (>= 0.4.0)
@@ -62,7 +63,7 @@ PLATFORMS
ruby
DEPENDENCIES
- bosh_cli (>= 0.19)
+ bosh_cli (>= 1.0.rc1)
bosh_common (>= 0.5.2)
httpclient (~> 2.2)
json (~> 1.7)
View
@@ -52,7 +52,7 @@ namespace "bat" do
desc "Run stemcell tests"
RSpec::Core::RakeTask.new(:stemcell => :env) do |t|
- t.pattern = "spec/bat/deployment_spec.rb"
+ t.pattern = "spec/bat/stemcell_spec.rb"
t.rspec_opts = SPEC_OPTS
end
View
@@ -26,18 +26,18 @@
end
it "should restart a job" do
- bosh("restart bat 0").should succeed_with /bat\(0\) has been restarted/
+ bosh("restart bat 0").should succeed_with /bat\/0 has been restarted/
# TODO verify that the process gets a new pid
end
it "should recreate a job" do
- bosh("recreate bat 0").should succeed_with /bat\(0\) has been recreated/
+ bosh("recreate bat 0").should succeed_with /bat\/0 has been recreated/
# TODO verify that the VM gets a new cid
end
it "should stop and start a job" do
- bosh("stop bat 0").should succeed_with /bat\(0\) has been stopped/
- bosh("start bat 0").should succeed_with /bat\(0\) has been started/
+ bosh("stop bat 0").should succeed_with /bat\/0 has been stopped/
+ bosh("start bat 0").should succeed_with /bat\/0 has been started/
# TODO verify that the process gets a new pid
end
@@ -73,7 +73,7 @@
end
it "should be possible to delete all releases" do
- bosh("delete release bat").should succeed_with /Deleted release/
+ bosh("delete release bat").should succeed_with /Deleted `bat'/
releases["bat"].should be_nil
end
end
View
@@ -48,7 +48,7 @@
describe "director" do
it "should be targetable" do
- bosh("target #{bosh_director}").should succeed_with /#{bosh_director}/
+ bosh("target #{bosh_director}").should succeed_with /Target \w*\s*set/
end
it "should not have a bat deployment" do
@@ -64,4 +64,4 @@
stemcells.map {|s| s["version"]}.should_not include stemcell_version
end
end
-end
+end
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit bcf106f

Please sign in to comment.