---
spec/configure_spec.rb | 11 +++++++++++
spec/spec_helper.rb | 2 +-
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/spec/configure_spec.rb b/spec/configure_spec.rb
index 83d303f..68c368c 100644
--- a/spec/configure_spec.rb
+++ b/spec/configure_spec.rb
@@ -76,4 +76,15 @@ describe "aeolus-configure" do
output = `/bin/echo listpeers | /usr/sbin/ntpdc`
output.should =~ /.*client.*/
end
+
+ it "should create mock and ec2 providers" do
+ ['ec2', 'mock'].each { |provider|
+ pt = ProviderType.find_by_codename(provider)
+ Provider.find(:first, :conditions => ['name = ? AND provider_type_id =
?', provider, pt.id]).should_not be_nil, "provider #{provider} 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..7cd533c 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',
'imagefactoryd',
'aeolus-conductor', 'conductor-condor_refreshd',
'conductor-dbomatic']
# 'conductor-delayed_job'] TODO where is the init script for
this?
--
1.7.2.3