Fix SSL tests by allowing multiple cipher counts

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-01-22 15:00:49 -05:00 committed by GitHub
commit ed460c7869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,6 +50,6 @@ describe 'Inspec::Resources::SSL' do
resource = load_resource('ssl', host: 'localhost')
_(resource.protocols.uniq).must_equal ['ssl2', 'ssl3', 'tls1.0', 'tls1.1', 'tls1.2']
_(resource.ciphers.include?('TLS_RSA_WITH_AES_128_CBC_SHA256')).must_equal true
_(resource.ciphers.count).must_equal 681
[681, 993].must_include(resource.ciphers.count)
end
end