@@ -160,6 +160,11 @@ def test_update_catalog_entry_example(self):
160
160
print ('\n update_catalog_entry() result:' )
161
161
# begin-update_catalog_entry
162
162
163
+ catalog_entry = global_catalog_service .get_catalog_entry (
164
+ id = catalog_entry_id ,
165
+ complete = True ,
166
+ ).get_result ()
167
+
163
168
overview_model_EN = {
164
169
'display_name' : 'Example Web Starter V2' ,
165
170
'description' : 'Use the Example V2 service in your applications' ,
@@ -195,6 +200,7 @@ def test_update_catalog_entry_example(self):
195
200
provider = provider_model ,
196
201
active = True ,
197
202
metadata = metadata_model ,
203
+ url = catalog_entry ['url' ],
198
204
).get_result ()
199
205
200
206
print (json .dumps (catalog_entry , indent = 2 ))
@@ -265,7 +271,7 @@ def test_restore_catalog_entry_example(self):
265
271
266
272
response = global_catalog_service .restore_catalog_entry (
267
273
id = catalog_entry_id ,
268
- ). get_result ()
274
+ )
269
275
270
276
# end-restore_catalog_entry
271
277
@@ -309,7 +315,7 @@ def test_update_visibility_example(self):
309
315
response = global_catalog_service .update_visibility (
310
316
id = catalog_entry_id ,
311
317
extendable = False ,
312
- ). get_result ()
318
+ )
313
319
314
320
# end-update_visibility
315
321
@@ -381,7 +387,7 @@ def test_upload_artifact_example(self):
381
387
artifact_id = 'artifact.txt' ,
382
388
artifact = artifact_contents ,
383
389
content_type = 'text/plain' ,
384
- ). get_result ()
390
+ )
385
391
386
392
# end-upload_artifact
387
393
@@ -448,7 +454,7 @@ def test_delete_artifact_example(self):
448
454
response = global_catalog_service .delete_artifact (
449
455
object_id = catalog_entry_id ,
450
456
artifact_id = 'artifact.txt' ,
451
- ). get_result ()
457
+ )
452
458
453
459
# end-delete_artifact
454
460
@@ -467,7 +473,7 @@ def test_delete_catalog_entry_example(self):
467
473
try :
468
474
# begin-delete_catalog_entry
469
475
470
- response = global_catalog_service .delete_catalog_entry (id = catalog_entry_id ). get_result ()
476
+ response = global_catalog_service .delete_catalog_entry (id = catalog_entry_id )
471
477
472
478
# end-delete_catalog_entry
473
479
0 commit comments