Sha256: 1aa8c1949676eb9e9856ef5c5ddcceba80acb37ab8bc067d733f7d4640c1dfa1
Contents?: true
Size: 1.96 KB
Versions: 7
Compression:
Stored size: 1.96 KB
Contents
# Copyright (c) 2012-2013 Stark & Wayne, LLC require File.expand_path("../../spec_helper", __FILE__) describe Bosh::CloudFoundry::ConfigOptions do include Bosh::CloudFoundry::ConfigOptions include FileUtils attr_reader :options before do @options = { common_config: File.join(Dir.mktmpdir, "bosh_common_config.yml"), system: File.join(Dir.mktmpdir, "systems", "production"), bosh_target: 'http://1.2.3.4:25555', bosh_target_uuid: 'UUUUUIIIIIDDDD' } mkdir_p(@options[:system]) end describe "common_config attribute" do end describe "system_config attribute" do it "release_name can be overridden but is stored in system_config" do options[:release_name] = "CHANGED" release_name.should == "CHANGED" system_config.release_name.should == "CHANGED" end it "stemcell_version can be overridden but is stored in system_config" do options[:stemcell_version] = "CHANGED" stemcell_version.should == "CHANGED" system_config.stemcell_version.should == "CHANGED" end it "core_ip can be overridden but is stored in system_config" do options[:core_ip] = "CHANGED" core_ip.should == "CHANGED" system_config.core_ip.should == "CHANGED" end it "root_dns can be overridden but is stored in system_config" do options[:root_dns] = "CHANGED" root_dns.should == "CHANGED" system_config.root_dns.should == "CHANGED" end it "core_server_flavor can be overridden but is stored in system_config" do options[:core_server_flavor] = "CHANGED" core_server_flavor.should == "CHANGED" system_config.core_server_flavor.should == "CHANGED" end it "common_password is 16 characters long" do generate_common_password.size.should == 16 end it "generate_security_group includes system name" do security_group.should == "cloudfoundry-production" generate_security_group.should == "cloudfoundry-production" end end end
Version data entries
7 entries across 7 versions & 1 rubygems