def test_make_pod_ports(self) -> NoReturn: """Testing make pod ports.""" port = 22 expected_result = [{ "name": "ueport", "containerPort": port, "protocol": "TCP", }] dictport = {"ssh_port": 22} pod_ports = pod_spec._make_pod_ports(dictport) self.assertListEqual(expected_result, pod_ports)
def test_make_pod_ports(self) -> NoReturn: """Testing make pod ports.""" port = 29518 expected_result = [{ "name": "amf", "containerPort": port, "protocol": "TCP", }] pod_ports = pod_spec._make_pod_ports() self.assertListEqual(expected_result, pod_ports)
def test_make_pod_ports(self) -> NoReturn: """Testing make pod ports.""" port = 4060 diaport = 3869 expected_result = [ { "name": "diaicscf", "containerPort": diaport, "protocol": "TCP", }, { "name": "icscf", "containerPort": port, "protocol": "TCP", }, ] portdict = {"diameter_port": 3869} pod_ports = pod_spec._make_pod_ports(portdict) self.assertListEqual(expected_result, pod_ports)
def test_make_pod_ports(self) -> NoReturn: """Testing make pod ports.""" sctp_port = 9999 rest_port = 8081 expected_result = [ { "name": "ranport", "containerPort": sctp_port, "protocol": "TCP", }, { "name": "ranport2", "containerPort": rest_port, "protocol": "TCP", }, ] portdict = { "sctp_port": 9999, } pod_ports = pod_spec._make_pod_ports(portdict) self.assertListEqual(expected_result, pod_ports)
def test_make_pod_ports(self) -> NoReturn: """Testing make pod ports.""" hss_port = 8080 diameter_port = 3868 expected_result = [ { "name": "diahss", "containerPort": diameter_port, "protocol": "TCP", }, { "name": "hss", "containerPort": hss_port, "protocol": "TCP", }, ] dict_port = {"diameter_port": 3868} pod_ports = pod_spec._make_pod_ports(dict_port) self.assertListEqual(expected_result, pod_ports)