regex to check nginx does not provide version

This commit is contained in:
Diego Lendoiro 2018-08-08 11:47:02 +02:00
parent 54f471e31b
commit ab5001559e
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ describe 'passbolt_api service' do
end end
it 'hides nginx version' do it 'hides nginx version' do
expect(command("#{curl} | grep 'Server:'").stdout).to match 'Server: nginx' expect(command("#{curl} | grep 'Server:'").stdout).to match /^Server: nginx$/
end end
end end