--- spec/configure_spec.rb | 13 +++++++++++++ spec/spec_helper.rb | 2 +- 2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/spec/configure_spec.rb b/spec/configure_spec.rb index 83d303f..c988a10 100644 --- a/spec/configure_spec.rb +++ b/spec/configure_spec.rb @@ -76,4 +76,17 @@ describe "aeolus-configure" do output = `/bin/echo listpeers | /usr/sbin/ntpdc` output.should =~ /.*client.*/ end + + it "should create mock and ec2 providers" do + pt = ProviderType.find_by_codename('ec2') + Provider.find(:first, :conditions => ['name = ? AND provider_type_id = ?', 'ec2-us-east-1', pt.id]).should_not be_nil, "provider ec2-us-east-1 should not be nil" + Provider.find(:first, :conditions => ['name = ? AND provider_type_id = ?', 'ec2-us-west-1', pt.id]).should_not be_nil, "provider ec2-us-west-1 should not be nil" + + pt = ProviderType.find_by_codename('mock') + Provider.find(:first, :conditions => ['name = ? AND provider_type_id = ?', 'mock', pt.id]).should_not be_nil, "provider mock should not be nil" + end + + it "should create an initial hardware profile" do + HardwareProfile.find_by_name('hwp1').should_not be_nil + end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 38932d9..e2506c4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -10,7 +10,7 @@ AEOLUS_PACKAGES = ['iwhd', 'imagefactory', 'aeolus-conductor', 'aeolus-conductor-doc', 'aeolus-conductor-daemons', 'aeolus-configure']
-AEOLUS_SERVICES = ['iwhd', 'deltacloud-core', 'imagefactoryd', +AEOLUS_SERVICES = ['iwhd', 'deltacloud-mock', 'deltacloud-ec2-us-east-1', 'deltacloud-ec2-us-west-1', 'imagefactoryd', 'aeolus-conductor', 'conductor-condor_refreshd', 'conductor-dbomatic'] # 'conductor-delayed_job'] TODO where is the init script for this?