Skip to content

Commit fd8bc22

Browse files
committed
ut
1 parent c820f5e commit fd8bc22

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

kyuubi-server/src/test/scala/org/apache/kyuubi/server/rest/client/BatchCliSuite.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import java.io.File
2121
import java.net.InetAddress
2222
import java.nio.charset.StandardCharsets
2323
import java.nio.file.{Files, Paths}
24+
import java.util.UUID
2425

2526
import org.apache.hadoop.security.UserGroupInformation
2627
import org.apache.hadoop.shaded.com.nimbusds.jose.util.StandardCharset
@@ -29,6 +30,7 @@ import org.scalatest.time.SpanSugar.convertIntToGrainOfTime
2930

3031
import org.apache.kyuubi.{BatchTestHelper, RestClientTestHelper, Utils}
3132
import org.apache.kyuubi.config.KyuubiConf
33+
import org.apache.kyuubi.config.KyuubiReservedKeys.KYUUBI_BATCH_ID_KEY
3234
import org.apache.kyuubi.ctl.{CtlConf, TestPrematureExit}
3335
import org.apache.kyuubi.metrics.{MetricsConstants, MetricsSystem}
3436
import org.apache.kyuubi.session.KyuubiSessionManager
@@ -256,7 +258,7 @@ class BatchCliSuite extends RestClientTestHelper with TestPrematureExit with Bat
256258
"kyuubi",
257259
"kyuubi",
258260
InetAddress.getLocalHost.getCanonicalHostName,
259-
Map.empty,
261+
Map(KYUUBI_BATCH_ID_KEY -> UUID.randomUUID().toString),
260262
newBatchRequest(
261263
"spark",
262264
"",
@@ -278,7 +280,7 @@ class BatchCliSuite extends RestClientTestHelper with TestPrematureExit with Bat
278280
"kyuubi",
279281
"kyuubi",
280282
InetAddress.getLocalHost.getCanonicalHostName,
281-
Map.empty,
283+
Map(KYUUBI_BATCH_ID_KEY -> UUID.randomUUID().toString),
282284
newBatchRequest(
283285
"spark",
284286
"",
@@ -288,7 +290,7 @@ class BatchCliSuite extends RestClientTestHelper with TestPrematureExit with Bat
288290
"kyuubi",
289291
"kyuubi",
290292
InetAddress.getLocalHost.getCanonicalHostName,
291-
Map.empty,
293+
Map(KYUUBI_BATCH_ID_KEY -> UUID.randomUUID().toString),
292294
newBatchRequest(
293295
"spark",
294296
"",

0 commit comments

Comments
 (0)