spec/unit/config/dea_config_spec.rb in bosh-cloudfoundry-0.2.1 vs spec/unit/config/dea_config_spec.rb in bosh-cloudfoundry-0.3.0

- old
+ new

@@ -10,11 +10,14 @@ before do @systems_dir = Dir.mktmpdir("system_config") @system_dir = File.join(@systems_dir, "production") mkdir_p(@system_dir) @system_config = Bosh::CloudFoundry::Config::SystemConfig.new(@system_dir) + @system_config.bosh_target = "http://6.7.8.9:25555" + @system_config.bosh_target_uuid = "DIRECTOR_UUID" @system_config.bosh_provider = "aws" + @system_config.core_server_flavor = "m1.large" @manifest = YAML.load_file(spec_asset("deployments/aws-core-only.yml")) end # find a specificly named job in the manifest def job(name) @@ -46,10 +49,10 @@ end it "sets the properties.dea.max_memory" do subject.merge_manifest_properties(@manifest) @manifest["properties"]["dea"].should_not be_nil @manifest["properties"]["dea"]["max_memory"].should_not be_nil - @manifest["properties"]["dea"]["max_memory"].should == 512 + @manifest["properties"]["dea"]["max_memory"].should == 7380 end end describe "5 x m1.xlarge deas on AWS" do subject do @system_config.dea = { "count" => 5, "flavor" => 'm1.xlarge' } \ No newline at end of file