Commit 912333a3 authored by Łukasz Nowak's avatar Łukasz Nowak

Make test following reality.

parent 2e1893a8
Using buildout with network-cache Using buildout with cache over network
================================= ======================================
NOTE: You need to install the networkcached into your system to run this Note: We are in process of preparing docs. This is only showcase.
test, otherwise it will not be possible to get proper results.
The buildout itself must be able to cache everything which is downloadble
into an external and universal cache server.
Such feature is not enabled by default, but you can enable defining the
option called ```network-cache```.
>>> write(sample_buildout, 'buildout.cfg', >>> write(sample_buildout, 'buildout.cfg',
... ''' ... '''
... [buildout] ... [buildout]
... network-cache = http://127.0.0.1:5001/ ... sha-cache = http://127.0.0.1:1/
... sha-dir = http://127.0.0.1:2/
... find-links = %(link_server)s ... find-links = %(link_server)s
... parts = eggs ... parts = eggs
... ...
...@@ -25,12 +19,16 @@ option called ```network-cache```. ...@@ -25,12 +19,16 @@ option called ```network-cache```.
>>> print system(buildout) >>> print system(buildout)
Installing eggs. Installing eggs.
Getting distribution for 'demo==0.2'. Getting distribution for 'demo==0.2'.
The url is not cached yet: http://localhost/demo-0.2-py2.6.egg Downloading demo-0.2-py2.7.egg from network cache.
Fail to download from network cache demo-0.2-py2.7.egg: [Errno 111] Connection refused
Fail to upload file. [Errno 111] Connection refused
Got demo 0.2. Got demo 0.2.
Getting distribution for 'demoneeded'. Getting distribution for 'demoneeded'.
The url is not cached yet: http://localhost/demoneeded-1.2c1.zip Downloading demoneeded-1.2c1.zip from network cache.
Fail to download from network cache demoneeded-1.2c1.zip: [Errno 111] Connection refused
Fail to upload file. [Errno 111] Connection refused
Got demoneeded 1.2c1. Got demoneeded 1.2c1.
... <BLANKLINE>
>>> from glob import glob >>> from glob import glob
>>> from os.path import join >>> from os.path import join
...@@ -40,6 +38,8 @@ option called ```network-cache```. ...@@ -40,6 +38,8 @@ option called ```network-cache```.
>>> print system(buildout) >>> print system(buildout)
Updating eggs. Updating eggs.
Getting distribution for 'demoneeded'. Getting distribution for 'demoneeded'.
Downloading from network cache http://127.0.0.1:5001/105e4a9ba3f9c7f45b46cc8c47ac2d2ca6440ae564538090c6d390a8959dd03e Downloading demoneeded-1.2c1.zip from network cache.
Fail to download from network cache demoneeded-1.2c1.zip: [Errno 111] Connection refused
Fail to upload file. [Errno 111] Connection refused
Got demoneeded 1.2c1. Got demoneeded 1.2c1.
... <BLANKLINE>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment