File diff 3b16a011c293 → ca784c26d35c
roles/common/molecule/default/tests/test_parameters_optional.py
Show inline comments
 
@@ -182,11 +182,14 @@ def test_ca_certificates(host):
 
    assert ca1_cert_symlink.is_symlink
 
    assert ca1_cert_symlink.linked_to == '/usr/local/share/ca-certificates/cacert1.crt'
 

	
 
    ca1_cert_hash_1 = host.file('/etc/ssl/certs/3ce70b58.0')
 
    ca1_cert_hash = host.run('openssl x509 -hash -noout -in %s', '/usr/local/share/ca-certificates/cacert1.crt').stdout.strip()
 
    ca1_cert_hash_file = '/etc/ssl/certs/%s.0' % ca1_cert_hash
 

	
 
    ca1_cert_hash_1 = host.file(ca1_cert_hash_file)
 
    assert ca1_cert_hash_1.is_symlink
 
    assert ca1_cert_hash_1.linked_to == '/usr/local/share/ca-certificates/cacert1.crt'
 

	
 
    ca1_cert_hash_1 = host.file('/etc/ssl/certs/49f72a44.0')
 
    ca1_cert_hash_1 = host.file(ca1_cert_hash_file)
 
    assert ca1_cert_hash_1.is_symlink
 
    assert ca1_cert_hash_1.linked_to == '/usr/local/share/ca-certificates/cacert1.crt'
 

	
 
@@ -200,11 +203,14 @@ def test_ca_certificates(host):
 
    assert ca2_cert_symlink.is_symlink
 
    assert ca2_cert_symlink.linked_to == '/usr/local/share/ca-certificates/cacert2.crt'
 

	
 
    ca2_cert_hash_1 = host.file('/etc/ssl/certs/a52eec00.0')
 
    ca2_cert_hash = host.run('openssl x509 -hash -noout -in %s', '/usr/local/share/ca-certificates/cacert2.crt').stdout.strip()
 
    ca2_cert_hash_file = '/etc/ssl/certs/%s.0' % ca2_cert_hash
 

	
 
    ca2_cert_hash_1 = host.file(ca2_cert_hash_file)
 
    assert ca2_cert_hash_1.is_symlink
 
    assert ca2_cert_hash_1.linked_to == '/usr/local/share/ca-certificates/cacert2.crt'
 

	
 
    ca2_cert_hash_1 = host.file('/etc/ssl/certs/a0d2e9e4.0')
 
    ca2_cert_hash_1 = host.file(ca2_cert_hash_file)
 
    assert ca2_cert_hash_1.is_symlink
 
    assert ca2_cert_hash_1.linked_to == '/usr/local/share/ca-certificates/cacert2.crt'