summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/resources
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2021-08-27 17:04:12 +0100
committerMichael Morris <michael.morris@est.tech>2021-09-15 13:49:49 +0000
commit04c0e1a91f9f4851047e4efe290bed8ed229c358 (patch)
tree7aed0cb4a02fd9b138f71384136f05e7e5de50d8 /catalog-be/src/test/resources
parent63600cbfd177ece94e854446971d8e297e24d58f (diff)
Increase test coverage (TypesUploadServlet)
Change-Id: I78abc4872d99d4d4fa37c77a2186421ba5f41724 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3684
Diffstat (limited to 'catalog-be/src/test/resources')
-rw-r--r--catalog-be/src/test/resources/types/datatypes.yml59
-rw-r--r--catalog-be/src/test/resources/types/datatypes.zipbin0 -> 867 bytes
-rw-r--r--catalog-be/src/test/resources/types/group.zipbin0 -> 448 bytes
-rw-r--r--catalog-be/src/test/resources/types/policy.zipbin0 -> 672 bytes
-rw-r--r--catalog-be/src/test/resources/types/relationship.zipbin0 -> 432 bytes
5 files changed, 59 insertions, 0 deletions
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
--- /dev/null
+++ b/catalog-be/src/test/resources/types/datatypes.zip
Binary files 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
--- /dev/null
+++ b/catalog-be/src/test/resources/types/group.zip
Binary files 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
--- /dev/null
+++ b/catalog-be/src/test/resources/types/policy.zip
Binary files 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
--- /dev/null
+++ b/catalog-be/src/test/resources/types/relationship.zip
Binary files differ