projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17948: Adds info to error messaging.
[arvados.git]
/
tools
/
test-collection-create
/
test-collection-create.py
diff --git
a/tools/test-collection-create/test-collection-create.py
b/tools/test-collection-create/test-collection-create.py
index 13754381e186016649fd4db281f9001b22e8a4c1..9a02745694e6dd3898b543ec4623c29c7a01e7d2 100644
(file)
--- a/
tools/test-collection-create/test-collection-create.py
+++ b/
tools/test-collection-create/test-collection-create.py
@@
-426,15
+426,15
@@
def main(arguments=None):
break
manifest += s + '\n'
try:
break
manifest += s + '\n'
try:
- coll
= api.collections().create(body={
- "ensure_unique_name": True,
- "collection": {
- "name":
get_random_name(False)
,
+ coll
_name = get_random_name(False)
+ coll = api.collections().create(
+
body={
"collection": {
+ "name":
coll_name
,
"manifest_text": manifest
},
}).execute()
except:
"manifest_text": manifest
},
}).execute()
except:
- logger.info("ERROR
trying manifest:\n'{}...'\nSize: {}".format(
manifest[0:1024], len(manifest)))
+ logger.info("ERROR
creating collection with name '{}' and manifest:\n'{}...'\nSize: {}".format(coll_name,
manifest[0:1024], len(manifest)))
raise
logger.info("Created collection {} - manifest size: {}".format(coll["uuid"], len(manifest)))
return 0
raise
logger.info("Created collection {} - manifest size: {}".format(coll["uuid"], len(manifest)))
return 0