Commit 412166d1 authored by Łukasz Nowak's avatar Łukasz Nowak

fix test based showcase.

parent d67f6a9f
......@@ -6,26 +6,37 @@ Note: We are in process of preparing docs. This is only showcase.
>>> write(sample_buildout, 'buildout.cfg',
... '''
... [buildout]
... sha-cache = http://127.0.0.1:1/
... sha-dir = http://127.0.0.1:2/
...
... networkcache-section = networkcache
... find-links = %(link_server)s
... parts = eggs
...
... [eggs]
... recipe = zc.recipe.egg:eggs
... eggs = demo ==0.2
...
... [networkcache]
... download-cache-url = http://127.0.0.1:1/
... download-dir-url = http://127.0.0.1:1/
... upload-cache-url = http://127.0.0.1:1/
... upload-dir-url = http://127.0.0.1:1/
... ''' % globals())
>>> print system(buildout)
Networkcache enabled.
Networkcache download cache: 'http://127.0.0.1:1/', directory 'http://127.0.0.1:1/'
Networkcache upload cache: 'http://127.0.0.1:1/', directory 'http://127.0.0.1:1/'
Installing eggs.
Getting distribution for 'demo==0.2'.
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
Failed to download from network cache demo-0.2-py2.7.egg: [Errno 111] Connection refused
Uploading http://localhost/demo-0.2-py2.7.egg into network cache.
Fail to upload file. [Errno 111] Connection refused
Got demo 0.2.
Getting distribution for 'demoneeded'.
Downloading demoneeded-1.2c1.zip from network cache.
Fail to download from network cache demoneeded-1.2c1.zip: [Errno 111] Connection refused
Failed to download from network cache demoneeded-1.2c1.zip: [Errno 111] Connection refused
Uploading http://localhost/demoneeded-1.2c1.zip into network cache.
Fail to upload file. [Errno 111] Connection refused
Got demoneeded 1.2c1.
<BLANKLINE>
......@@ -36,10 +47,14 @@ Note: We are in process of preparing docs. This is only showcase.
... remove(sample_buildout, 'eggs', egg)
>>> print system(buildout)
Networkcache enabled.
Networkcache download cache: 'http://127.0.0.1:1/', directory 'http://127.0.0.1:1/'
Networkcache upload cache: 'http://127.0.0.1:1/', directory 'http://127.0.0.1:1/'
Updating eggs.
Getting distribution for 'demoneeded'.
Downloading demoneeded-1.2c1.zip from network cache.
Fail to download from network cache demoneeded-1.2c1.zip: [Errno 111] Connection refused
Failed to download from network cache demoneeded-1.2c1.zip: [Errno 111] Connection refused
Uploading http://localhost/demoneeded-1.2c1.zip into network cache.
Fail to upload file. [Errno 111] Connection refused
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