Skip to content

Commit 6fc3057

Browse files
committed
[MINOR] Verify appId is not null in LivyInterpreterIT
### What is this PR for? Someone complain that they could not get appId, this PR just try to verify appId returned by livy rest api is not null. ### What type of PR is it? [Improvement] ### Todos * [ ] - Task ### What is the Jira issue? * No jira created ### How should this be tested? * CI pass ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Jeff Zhang <[email protected]> Closes #2999 from zjffdu/minor_livy and squashes the following commits: eae0cf5 [Jeff Zhang] [MINOR] Verify appId is null in LivyInterpreterIT
1 parent 48647e5 commit 6fc3057

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

livy/src/test/java/org/apache/zeppelin/livy/LivyInterpreterIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,8 @@ public void testSparkInterpreterWithDisplayAppInfo_StringWithoutTruncation()
495495
InterpreterResult result = sparkInterpreter.interpret("sc.version", context);
496496
assertEquals(InterpreterResult.Code.SUCCESS, result.code());
497497
assertEquals(2, result.message().size());
498-
assertTrue(result.message().get(1).getData().contains("Spark Application Id"));
498+
// check yarn appId and ensure it is not null
499+
assertTrue(result.message().get(1).getData().contains("Spark Application Id: application_"));
499500

500501
// html output
501502
String htmlCode = "println(\"%html <h1> hello </h1>\")";

0 commit comments

Comments
 (0)