projects
/
arvados-formula.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat(distro): add centos-7 support
[arvados-formula.git]
/
test
/
integration
/
dispatcher
/
controls
/
config_spec.rb
diff --git
a/test/integration/dispatcher/controls/config_spec.rb
b/test/integration/dispatcher/controls/config_spec.rb
index bbc54f86506e002604912556390fe250153fdf1a..46282f7f8b57b184da6276fc89cc4ce3b3e145c6 100644
(file)
--- a/
test/integration/dispatcher/controls/config_spec.rb
+++ b/
test/integration/dispatcher/controls/config_spec.rb
@@
-6,6
+6,13
@@
dispatcher_stanza = <<-DISPATCHER_STANZA
http://fixme.example.net:9006: {}
DISPATCHER_STANZA
http://fixme.example.net:9006: {}
DISPATCHER_STANZA
+group = case os[:name]
+ when 'centos'
+ 'nginx'
+ when 'debian', 'ubuntu'
+ 'www-data'
+ end
+
control 'arvados configuration' do
title 'should match desired dispatcher lines'
control 'arvados configuration' do
title 'should match desired dispatcher lines'
@@
-13,7
+20,7
@@
control 'arvados configuration' do
it { should be_file }
it { should be_owned_by 'root' }
# We're testing it in the API instance, so group will be nginx's
it { should be_file }
it { should be_owned_by 'root' }
# We're testing it in the API instance, so group will be nginx's
- it { should be_grouped_into
'www-data'
}
+ it { should be_grouped_into
group
}
its('mode') { should cmp '0640' }
its('content') do
should include(
its('mode') { should cmp '0640' }
its('content') do
should include(