Fix an issue with the service ports in Kubectl.py
The ports were retrieved as V1ServicePort classes, and LCM cannot store that in the database
Change-Id: I451ab65478f36c5cb7f33594b4454bd315c22878
Signed-off-by: David Garcia <david.garcia@canonical.com>
diff --git a/n2vc/tests/unit/test_kubectl.py b/n2vc/tests/unit/test_kubectl.py
index 8d57975..dfb954a 100644
--- a/n2vc/tests/unit/test_kubectl.py
+++ b/n2vc/tests/unit/test_kubectl.py
@@ -34,13 +34,15 @@
"cluster_ip": "10.152.183.79",
"type": "LoadBalancer",
"ports": [
- {
- "name": None,
- "node_port": None,
- "port": 30666,
- "protocol": "TCP",
- "target_port": 30666,
- }
+ Dict(
+ {
+ "name": None,
+ "node_port": None,
+ "port": 30666,
+ "protocol": "TCP",
+ "target_port": 30666,
+ }
+ )
],
}
),