Skip to content

Commit 1ecd1c0

Browse files
committed
Fix test case error
1 parent 0a10580 commit 1ecd1c0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

common/scala/src/main/scala/org/apache/openwhisk/core/entity/InstanceId.scala

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,20 @@ object InvokerInstanceId extends DefaultJsonProtocol {
9999
val uniqueName = fromField[Option[String]](json, "uniqueName")
100100
val displayedName = fromField[Option[String]](json, "displayedName")
101101
val userMemory = fromField[String](json, "userMemory")
102+
val busyMemory = fromField[Option[String]](json, "busyMemory")
102103
val instanceType = fromField[String](json, "instanceType")
104+
val tags = fromField[Seq[String]](json, "tags")
105+
val dedicatedNamespaces = fromField[Seq[String]](json, "dedicatedNamespaces")
103106

104107
if (instanceType == "invoker") {
105-
new InvokerInstanceId(instance, uniqueName, displayedName, ByteSize.fromString(userMemory))
108+
new InvokerInstanceId(
109+
instance,
110+
uniqueName,
111+
displayedName,
112+
ByteSize.fromString(userMemory),
113+
busyMemory.map(ByteSize.fromString(_)),
114+
tags,
115+
dedicatedNamespaces)
106116
} else {
107117
deserializationError("could not read InvokerInstanceId")
108118
}

0 commit comments

Comments
 (0)