fix(config): RailsSessionSecretToken is deprecated
[arvados-formula.git] / test / integration / api / controls / config_spec.rb
index 8efe253ac98d332ed41dcc0458fd8a6e7bbfb8f5..57fffc1284d65e3af8100ef9ce27982dcc4851bf 100644 (file)
@@ -2,22 +2,28 @@
 
 api_stanza = <<-API_STANZA
     API:
-      RailsSessionSecretToken: "changeme_rails_secret_token"
 API_STANZA
 
 rails_stanza = <<-RAILS_STANZA
       RailsAPI:
         InternalURLs:
-          "http://localhost:8004": {}
+          http://api.internal:8004: {}
 RAILS_STANZA
 
+group = case os[:name]
+        when 'centos'
+          'nginx'
+        when 'debian', 'ubuntu'
+          'www-data'
+        end
+
 control 'arvados configuration' do
   title 'should match desired api lines'
 
   describe file('/etc/arvados/config.yml') do
     it { should be_file }
     it { should be_owned_by 'root' }
-    it { should be_grouped_into 'www-data' }
+    it { should be_grouped_into group }
     its('mode') { should cmp '0640' }
     its('content') do
       should include(