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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.buildout
Commits
db668953
Commit
db668953
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
c4dec598
Changes
1
Hide 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 @
db668953
...
@@ -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