Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
isaak yansane-sisk
slapos.buildout
Commits
03856db8
Commit
03856db8
authored
Aug 16, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if file was really uploaded.
In addition comment why it does not work.
parent
e4837fc4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/zc/buildout/testing.py
src/zc/buildout/testing.py
+4
-1
No files found.
src/zc/buildout/testing.py
View file @
03856db8
...
@@ -296,6 +296,8 @@ def make_buildout(executable=None):
...
@@ -296,6 +296,8 @@ def make_buildout(executable=None):
def get_filename_from_upload_network_cached(**kw):
def get_filename_from_upload_network_cached(**kw):
""" Check the upload network cache. """
""" Check the upload network cache. """
# Note: Since slapos.libnetworkcache is not directly available in testing
# environment this assertions will not work.
import logging
import logging
import json
import json
logger = logging.getLogger('zc.buildout')
logger = logging.getLogger('zc.buildout')
...
@@ -304,7 +306,8 @@ def get_filename_from_upload_network_cached(**kw):
...
@@ -304,7 +306,8 @@ def get_filename_from_upload_network_cached(**kw):
signature_certificate_file='',
signature_certificate_file='',
signature_private_key_file=None)
signature_private_key_file=None)
kw.update(default_params)
kw.update(default_params)
zc.buildout.networkcache.upload_network_cached(**kw)
if not zc.buildout.networkcache.upload_network_cached(**kw):
return 'Upload failed.'
# check the file created.
# check the file created.
external_url = kw.get('external_url')
external_url = kw.get('external_url')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment