Пример #1
0
 def setUp(self) -> None:
     super().setUp()
     self.service_types_created = []
     self.service_types_created.append(
         add_service_type(
             self.client,
             "Internet Access",
             True,
             [
                 ("Service Package", "string", "Public 5G", True),
                 ("Address Family", "string", None, True),
             ],
         ))
     self.location_types_created = []
     self.location_types_created.append(
         add_location_type(self.client, "Room",
                           [("Contact", "email", None, True)]))
     self.equipment_types_created = []
     self.equipment_types_created.append(
         add_equipment_type(
             self.client,
             "Tp-Link T1600G",
             "Router",
             [("IP", "string", None, True)],
             {
                 "Port 1": "Eth",
                 "Port 2": "Eth"
             },
             [],
         ))
Пример #2
0
 def setUp(self) -> None:
     super().setUp()
     add_equipment_port_type(
         self.client,
         name="port type 1",
         properties=[
             PropertyDefinition(
                 property_name="port property",
                 property_kind=PropertyKind.string,
                 default_value="port property value",
                 is_fixed=False,
             )
         ],
         link_properties=[
             PropertyDefinition(
                 property_name="link property",
                 property_kind=PropertyKind.string,
                 default_value="link property value",
                 is_fixed=False,
             )
         ],
     )
     add_service_type(
         client=self.client,
         name="Internet Access",
         hasCustomer=True,
         properties=[
             ("Service Package", "string", "Public 5G", True),
             ("Address Family", "string", None, True),
         ],
     )
     add_location_type(
         client=self.client,
         name="Room",
         properties=[("Contact", "email", None, True)],
     )
     add_equipment_type(
         client=self.client,
         name="Tp-Link T1600G",
         category="Router",
         properties=[("IP", "string", None, True)],
         ports_dict={
             "Port 1": "port type 1",
             "Port 2": "port type 1"
         },
         position_list=[],
     )