Skip to content

Commit ab74813

Browse files
committed
Add unit test for omitted case
1 parent 8a84e32 commit ab74813

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/src/test/scala/skuber/json/ServiceFormatSpec.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ import Service._
4242
service("mySvc",Spec(ports=List(Port(name="myPort",port=5654))))
4343
val readSvc = Json.fromJson[Service](Json.toJson(mySvc)).get
4444
mySvc mustEqual readSvc
45+
val spec = readSvc.spec.get
46+
spec.publishNotReadyAddresses mustEqual false
4547
}
4648
"this can be done for a Service with a more complex spec" >> {
4749
val ports=List(Port(port=9081,targetPort=Some(8080)),

0 commit comments

Comments
 (0)