From 04c0e1a91f9f4851047e4efe290bed8ed229c358 Mon Sep 17 00:00:00 2001 From: vasraz Date: Fri, 27 Aug 2021 17:04:12 +0100 Subject: Increase test coverage (TypesUploadServlet) Change-Id: I78abc4872d99d4d4fa37c77a2186421ba5f41724 Signed-off-by: Vasyl Razinkov Issue-ID: SDC-3684 --- catalog-be/src/test/resources/types/datatypes.yml | 59 +++++++++++++++++++++ catalog-be/src/test/resources/types/datatypes.zip | Bin 0 -> 867 bytes catalog-be/src/test/resources/types/group.zip | Bin 0 -> 448 bytes catalog-be/src/test/resources/types/policy.zip | Bin 0 -> 672 bytes .../src/test/resources/types/relationship.zip | Bin 0 -> 432 bytes 5 files changed, 59 insertions(+) create mode 100644 catalog-be/src/test/resources/types/datatypes.yml create mode 100644 catalog-be/src/test/resources/types/datatypes.zip create mode 100644 catalog-be/src/test/resources/types/group.zip create mode 100644 catalog-be/src/test/resources/types/policy.zip create mode 100644 catalog-be/src/test/resources/types/relationship.zip (limited to 'catalog-be/src/test/resources') diff --git a/catalog-be/src/test/resources/types/datatypes.yml b/catalog-be/src/test/resources/types/datatypes.yml new file mode 100644 index 0000000000..b1406d4919 --- /dev/null +++ b/catalog-be/src/test/resources/types/datatypes.yml @@ -0,0 +1,59 @@ +tosca.datatypes.Root: + description: The TOSCA root Data Type all other TOSCA base Data Types derive from + properties: + rootProperty: + type: string + description: Added to allow import + +tosca.datatypes.nfv.L2AddressData: + derived_from: tosca.datatypes.Root + description: Describes the information on the MAC addresses to be assigned to a connection point. + properties: + mac_address_assignment: + type: boolean + description: Specifies if the address assignment is the responsibility of management and orchestration function or not. If it is set to True, it is the management and orchestration function responsibility + required: true + +tosca.datatypes.nfv.L3AddressData: + derived_from: tosca.datatypes.Root + description: Provides information about Layer 3 level addressing scheme and parameters applicable to a CP + properties: + ip_address_assignment: + type: boolean + description: Specifies if the address assignment is the responsibility of management and orchestration function or not. If it is set to True, it is the management and orchestration function responsibility + required: true + floating_ip_activated: + type: boolean + description: Specifies if the floating IP scheme is activated on the Connection Point or not + required: true + ip_address_type: + type: string + description: Defines address type. The address type should be aligned with the address type supported by the layer_protocols properties of the parent VnfExtCp + required: false + constraints: + - valid_values: [ ipv4, ipv6 ] + number_of_ip_address: + type: integer + description: Minimum number of IP addresses to be assigned + required: false + constraints: + - greater_than: 0 + +tosca.datatypes.nfv.AddressData: + derived_from: tosca.datatypes.Root + description: Describes information about the addressing scheme and parameters applicable to a CP + properties: + address_type: + type: string + description: Describes the type of the address to be assigned to a connection point. The content type shall be aligned with the address type supported by the layerProtocol property of the connection point + required: true + constraints: + - valid_values: [ mac_address, ip_address ] + l2_address_data: + type: tosca.datatypes.nfv.L2AddressData + description: Provides the information on the MAC addresses to be assigned to a connection point. + required: false + l3_address_data: + type: tosca.datatypes.nfv.L3AddressData + description: Provides the information on the IP addresses to be assigned to a connection point + required: false diff --git a/catalog-be/src/test/resources/types/datatypes.zip b/catalog-be/src/test/resources/types/datatypes.zip new file mode 100644 index 0000000000..755bf7c701 Binary files /dev/null and b/catalog-be/src/test/resources/types/datatypes.zip differ diff --git a/catalog-be/src/test/resources/types/group.zip b/catalog-be/src/test/resources/types/group.zip new file mode 100644 index 0000000000..d7374f53ae Binary files /dev/null and b/catalog-be/src/test/resources/types/group.zip differ diff --git a/catalog-be/src/test/resources/types/policy.zip b/catalog-be/src/test/resources/types/policy.zip new file mode 100644 index 0000000000..98ce22f11f Binary files /dev/null and b/catalog-be/src/test/resources/types/policy.zip differ diff --git a/catalog-be/src/test/resources/types/relationship.zip b/catalog-be/src/test/resources/types/relationship.zip new file mode 100644 index 0000000000..2c768736d0 Binary files /dev/null and b/catalog-be/src/test/resources/types/relationship.zip differ -- cgit 1.2.3-korg