Add basic cfg file checks to Beaker generic tests 91/55591/1
authorDaniel Farrell <dfarrell@redhat.com>
Tue, 2 Feb 2016 18:07:24 +0000 (13:07 -0500)
committerDaniel Farrell <dfarrell@redhat.com>
Wed, 19 Apr 2017 19:18:40 +0000 (15:18 -0400)
Do basic file validations for all config files in generic test Beaker
helper function, which is run against most situations.

More detailed config file validations are handled by other helper
functions and called from dedicated test logic.

Change-Id: I43010740473dafd25f689183744f72e798862561
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
spec/spec_helper_acceptance.rb

index cb2bc3b740eb1e5e7cae60d0a34f74ba53ab3489..beb7364abacf959d813e01bde4291b65186373db 100644 (file)
@@ -130,6 +130,20 @@ def generic_validations()
     it { should be_running }
   end
 
+  # Should contain Karaf features config file
+  describe file('/opt/opendaylight/etc/org.apache.karaf.features.cfg') do
+    it { should be_file }
+    it { should be_owned_by 'odl' }
+    it { should be_grouped_into 'odl' }
+  end
+
+  # Should contain ODL NB port config file
+  describe file('/opt/opendaylight/etc/jetty.xml') do
+    it { should be_file }
+    it { should be_owned_by 'odl' }
+    it { should be_grouped_into 'odl' }
+  end
+
   # Should contain log level config file
   describe file('/opt/opendaylight/etc/org.ops4j.pax.logging.cfg') do
     it { should be_file }
@@ -137,6 +151,13 @@ def generic_validations()
     it { should be_grouped_into 'odl' }
   end
 
+  # Should contain ODL OVSDB L3 enable/disable config file
+  describe file('/opt/opendaylight/etc/custom.properties') do
+    it { should be_file }
+    it { should be_owned_by 'odl' }
+    it { should be_grouped_into 'odl' }
+  end
+
   if ['centos-7', 'centos-7-docker', 'fedora-22'].include? ENV['RS_SET']
     # Validations for modern Red Hat family OSs