tests/test-patchbomb-tls.t
changeset 29481 5caa415aa48b
parent 29449 5b71a8d7f7ff
child 29499 9c5325c79683
equal deleted inserted replaced
29480:1e4512eac59e 29481:5caa415aa48b
    41   > }
    41   > }
    42 
    42 
    43 Our test cert is not signed by a trusted CA. It should fail to verify if
    43 Our test cert is not signed by a trusted CA. It should fail to verify if
    44 we are able to load CA certs:
    44 we are able to load CA certs:
    45 
    45 
    46 #if defaultcacerts
    46 #if sslcontext defaultcacerts no-defaultcacertsloaded
    47   $ try
    47   $ try
    48   this patch series consists of 1 patches.
    48   this patch series consists of 1 patches.
    49   
    49   
    50   
    50   
    51   (an attempt was made to load CA certificates but none were loaded; see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error)
    51   (an attempt was made to load CA certificates but none were loaded; see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error)
    52   (?i)abort: .*?certificate.verify.failed.* (re)
    52   (?i)abort: .*?certificate.verify.failed.* (re)
       
    53   [255]
       
    54 #endif
       
    55 
       
    56 #if no-sslcontext defaultcacerts
       
    57   $ try
       
    58   this patch series consists of 1 patches.
       
    59   
       
    60   
       
    61   (?i)abort: .*?certificate.verify.failed.* (re)
       
    62   [255]
       
    63 #endif
       
    64 
       
    65 #if defaultcacertsloaded
       
    66   $ try
       
    67   this patch series consists of 1 patches.
       
    68   
       
    69   
       
    70   (?i)abort: .*?certificate.verify.failed.* (re)
       
    71   [255]
       
    72 
       
    73 #endif
       
    74 
       
    75 #if no-defaultcacerts
       
    76   $ try
       
    77   this patch series consists of 1 patches.
       
    78   
       
    79   
       
    80   abort: localhost certificate error: no certificate received
       
    81   (set hostsecurity.localhost:certfingerprints=sha256:62:09:97:2f:97:60:e3:65:8f:12:5d:78:9e:35:a1:36:7a:65:4b:0e:9f:ac:db:c3:bc:6e:b6:a3:c0:16:e0:30 config setting or use --insecure to connect insecurely)
    53   [255]
    82   [255]
    54 #endif
    83 #endif
    55 
    84 
    56   $ DISABLECACERTS="--config devel.disableloaddefaultcerts=true"
    85   $ DISABLECACERTS="--config devel.disableloaddefaultcerts=true"
    57 
    86