- list_catalogs.return_value = [{'isShared': 'false', 'numberOfVAppTemplates': '1', 'orgName': 'Org3', 'isPublished': 'false', 'ownerName': 'system', 'numberOfMedia': '0', 'creationDate': '2017-10-15T02:03:59.403-07:00', 'id': '34925a30-0f4a-4018-9759-0d6799063b51', 'name': 'Ubuntu_1nic'}, {'isShared': 'false', 'numberOfVAppTemplates': '1', 'orgName': 'Org3', 'isPublished': 'false', 'ownerName': 'orgadmin', 'numberOfMedia': '1', 'creationDate': '2018-02-15T02:16:58.300-08:00', 'id': '4b94b67e-c2c6-49ec-b46c-3f35ba45ca4a', 'name': 'cirros034'}, {'isShared': 'true', 'numberOfVAppTemplates': '1', 'orgName': 'Org3', 'isPublished': 'true', 'ownerName': 'system', 'numberOfMedia': '0', 'creationDate': '2018-01-26T02:09:12.387-08:00', 'id': 'b139ed82-7ca4-49fb-9882-5f841f59c890', 'name': 'Ubuntu_plugtest-1'}, {'isShared': 'true', 'numberOfVAppTemplates': '1', 'orgName': 'Org2', 'isPublished': 'false', 'ownerName': 'system', 'numberOfMedia': '0', 'creationDate': '2017-06-18T21:33:16.430-07:00', 'id': 'b31e6973-86d2-404b-a522-b16846d099dc', 'name': 'Ubuntu_Cat'}, {'isShared': 'false', 'numberOfVAppTemplates': '1', 'orgName': 'Org3', 'isPublished': 'false', 'ownerName': 'orgadmin', 'numberOfMedia': '0', 'creationDate': '2018-02-15T22:26:28.910-08:00', 'id': 'c3b56180-f980-4256-9109-a93168d73ff2', 'name': 'de4ffcf2ad21f1a5d0714d6b868e2645'}, {'isShared': 'false', 'numberOfVAppTemplates': '0', 'orgName': 'Org3', 'isPublished': 'false', 'ownerName': 'system', 'numberOfMedia': '0', 'creationDate': '2017-08-23T05:54:56.780-07:00', 'id': 'd0eb0b02-718d-42e0-b889-56575000b52d', 'name': 'Test_Cirros'}, {'isShared': 'false', 'numberOfVAppTemplates': '0', 'orgName': 'Org3', 'isPublished': 'false', 'ownerName': 'system', 'numberOfMedia': '0', 'creationDate': '2017-03-08T21:25:05.923-08:00', 'id': 'd3fa3df2-b311-4571-9138-4c66541d7f46', 'name': 'cirros_10'}, {'isShared': 'false', 'numberOfVAppTemplates': '0', 'orgName': 'Org3', 'isPublished': 'false', 'ownerName': 'system', 'numberOfMedia': '0', 'creationDate': '2017-07-12T22:45:20.537-07:00', 'id': 'd64b2617-ea4b-4b90-910b-102c99dd2031', 'name': 'Ubuntu16'}, {'isShared': 'true', 'numberOfVAppTemplates': '1', 'orgName': 'Org3', 'isPublished': 'true', 'ownerName': 'system', 'numberOfMedia': '1', 'creationDate': '2017-10-14T23:52:37.260-07:00', 'id': 'e8d953db-8dc9-46d5-9cab-329774cd2ad9', 'name': 'Ubuntu_no_nic'}]
-
- result = self.vim.get_image_list({'id': '4b94b67e-c2c6-49ec-b46c-3f35ba45ca4a'})
+ list_catalogs.return_value = [
+ {
+ "isShared": "false",
+ "numberOfVAppTemplates": "1",
+ "orgName": "Org3",
+ "isPublished": "false",
+ "ownerName": "system",
+ "numberOfMedia": "0",
+ "creationDate": "2017-10-15T02:03:59.403-07:00",
+ "id": "34925a30-0f4a-4018-9759-0d6799063b51",
+ "name": "Ubuntu_1nic",
+ },
+ {
+ "isShared": "false",
+ "numberOfVAppTemplates": "1",
+ "orgName": "Org3",
+ "isPublished": "false",
+ "ownerName": "orgadmin",
+ "numberOfMedia": "1",
+ "creationDate": "2018-02-15T02:16:58.300-08:00",
+ "id": "4b94b67e-c2c6-49ec-b46c-3f35ba45ca4a",
+ "name": "cirros034",
+ },
+ {
+ "isShared": "true",
+ "numberOfVAppTemplates": "1",
+ "orgName": "Org3",
+ "isPublished": "true",
+ "ownerName": "system",
+ "numberOfMedia": "0",
+ "creationDate": "2018-01-26T02:09:12.387-08:00",
+ "id": "b139ed82-7ca4-49fb-9882-5f841f59c890",
+ "name": "Ubuntu_plugtest-1",
+ },
+ {
+ "isShared": "true",
+ "numberOfVAppTemplates": "1",
+ "orgName": "Org2",
+ "isPublished": "false",
+ "ownerName": "system",
+ "numberOfMedia": "0",
+ "creationDate": "2017-06-18T21:33:16.430-07:00",
+ "id": "b31e6973-86d2-404b-a522-b16846d099dc",
+ "name": "Ubuntu_Cat",
+ },
+ {
+ "isShared": "false",
+ "numberOfVAppTemplates": "1",
+ "orgName": "Org3",
+ "isPublished": "false",
+ "ownerName": "orgadmin",
+ "numberOfMedia": "0",
+ "creationDate": "2018-02-15T22:26:28.910-08:00",
+ "id": "c3b56180-f980-4256-9109-a93168d73ff2",
+ "name": "de4ffcf2ad21f1a5d0714d6b868e2645",
+ },
+ {
+ "isShared": "false",
+ "numberOfVAppTemplates": "0",
+ "orgName": "Org3",
+ "isPublished": "false",
+ "ownerName": "system",
+ "numberOfMedia": "0",
+ "creationDate": "2017-08-23T05:54:56.780-07:00",
+ "id": "d0eb0b02-718d-42e0-b889-56575000b52d",
+ "name": "Test_Cirros",
+ },
+ {
+ "isShared": "false",
+ "numberOfVAppTemplates": "0",
+ "orgName": "Org3",
+ "isPublished": "false",
+ "ownerName": "system",
+ "numberOfMedia": "0",
+ "creationDate": "2017-03-08T21:25:05.923-08:00",
+ "id": "d3fa3df2-b311-4571-9138-4c66541d7f46",
+ "name": "cirros_10",
+ },
+ {
+ "isShared": "false",
+ "numberOfVAppTemplates": "0",
+ "orgName": "Org3",
+ "isPublished": "false",
+ "ownerName": "system",
+ "numberOfMedia": "0",
+ "creationDate": "2017-07-12T22:45:20.537-07:00",
+ "id": "d64b2617-ea4b-4b90-910b-102c99dd2031",
+ "name": "Ubuntu16",
+ },
+ {
+ "isShared": "true",
+ "numberOfVAppTemplates": "1",
+ "orgName": "Org3",
+ "isPublished": "true",
+ "ownerName": "system",
+ "numberOfMedia": "1",
+ "creationDate": "2017-10-14T23:52:37.260-07:00",
+ "id": "e8d953db-8dc9-46d5-9cab-329774cd2ad9",
+ "name": "Ubuntu_no_nic",
+ },
+ ]
+
+ result = self.vim.get_image_list({"id": "4b94b67e-c2c6-49ec-b46c-3f35ba45ca4a"})