comparison tests/test-clonebundles.t @ 44881:89f83e47e9c9

tests: remove "sslcontext" check Now that we require the presence of ssl.SSLContext in setup.py, the check would always return `True`.
author Manuel Jacob <me@manueljacob.de>
date Sat, 30 May 2020 05:27:53 +0200
parents 4dacd0cef146
children 72feaeb510b3
comparison
equal deleted inserted replaced
44880:7dd63a8cb1ee 44881:89f83e47e9c9
253 adding manifests 253 adding manifests
254 adding file changes 254 adding file changes
255 added 2 changesets with 2 changes to 2 files 255 added 2 changesets with 2 changes to 2 files
256 new changesets 53245c60e682:aaff8d2ffbbf 256 new changesets 53245c60e682:aaff8d2ffbbf
257 257
258 URLs requiring SNI are filtered in Python <2.7.9 258 We require a Python version that supports SNI. Therefore, URLs requiring SNI
259 are not filtered.
259 260
260 $ cp full.hg sni.hg 261 $ cp full.hg sni.hg
261 $ cat > server/.hg/clonebundles.manifest << EOF 262 $ cat > server/.hg/clonebundles.manifest << EOF
262 > http://localhost:$HGPORT1/sni.hg REQUIRESNI=true 263 > http://localhost:$HGPORT1/sni.hg REQUIRESNI=true
263 > http://localhost:$HGPORT1/full.hg 264 > http://localhost:$HGPORT1/full.hg
264 > EOF 265 > EOF
265 266
266 #if sslcontext
267 Python 2.7.9+ support SNI
268
269 $ hg clone -U http://localhost:$HGPORT sni-supported 267 $ hg clone -U http://localhost:$HGPORT sni-supported
270 applying clone bundle from http://localhost:$HGPORT1/sni.hg 268 applying clone bundle from http://localhost:$HGPORT1/sni.hg
271 adding changesets 269 adding changesets
272 adding manifests 270 adding manifests
273 adding file changes 271 adding file changes
274 added 2 changesets with 2 changes to 2 files 272 added 2 changesets with 2 changes to 2 files
275 finished applying clone bundle 273 finished applying clone bundle
276 searching for changes 274 searching for changes
277 no changes found 275 no changes found
278 2 local changesets published 276 2 local changesets published
279 #else
280 Python <2.7.9 will filter SNI URLs
281
282 $ hg clone -U http://localhost:$HGPORT sni-unsupported
283 applying clone bundle from http://localhost:$HGPORT1/full.hg
284 adding changesets
285 adding manifests
286 adding file changes
287 added 2 changesets with 2 changes to 2 files
288 finished applying clone bundle
289 searching for changes
290 no changes found
291 2 local changesets published
292 #endif
293 277
294 Stream clone bundles are supported 278 Stream clone bundles are supported
295 279
296 $ hg -R server debugcreatestreamclonebundle packed.hg 280 $ hg -R server debugcreatestreamclonebundle packed.hg
297 writing 613 bytes for 4 files 281 writing 613 bytes for 4 files