X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/06050e0a5377d3d6a4c54c7f50fe53a06a07c837..ba5e37ebc18049d4340388fc0c19dcb2a78d6a86:/test/integration/keepweb/controls/config_spec.rb diff --git a/test/integration/keepweb/controls/config_spec.rb b/test/integration/keepweb/controls/config_spec.rb index c678dcc..6ac0db8 100644 --- a/test/integration/keepweb/controls/config_spec.rb +++ b/test/integration/keepweb/controls/config_spec.rb @@ -2,13 +2,20 @@ keepweb_stanza = <<-KEEPWEB_STANZA WebDAV: - ExternalURL: https://collections.example.net + ExternalURL: https://collections.fixme.example.net InternalURLs: - "http://localhost:9002": {} + http://127.0.0.2:9002: {} WebDAVDownload: - ExternalURL: https://download.example.net + ExternalURL: https://download.fixme.example.net KEEPWEB_STANZA +group = case os[:name] + when 'centos' + 'nginx' + when 'debian', 'ubuntu' + 'www-data' + end + control 'arvados configuration' do title 'should match desired keepweb lines' @@ -16,7 +23,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_grouped_into 'www-data' } + it { should be_grouped_into group } its('mode') { should cmp '0640' } its('content') do should include(