aboutsummaryrefslogtreecommitdiff
path: root/sql/hive-thriftserver
diff options
context:
space:
mode:
authorCheng Lian <lian@databricks.com>2015-05-22 16:25:52 +0800
committerCheng Lian <lian@databricks.com>2015-05-22 16:25:52 +0800
commit4e5220c3171b6a2f4970409bd16be2db930df65d (patch)
tree1ce31b519a57908002ca75bc7fd0a9b6bf1245f3 /sql/hive-thriftserver
parentf6f2eeb17910b5d446dfd61839e37dd698d0860f (diff)
downloadspark-4e5220c3171b6a2f4970409bd16be2db930df65d.tar.gz
spark-4e5220c3171b6a2f4970409bd16be2db930df65d.tar.bz2
spark-4e5220c3171b6a2f4970409bd16be2db930df65d.zip
[MINOR] [SQL] Ignores Thrift server UISeleniumSuite
This Selenium test case has been flaky for a while and led to frequent Jenkins build failure. Let's disable it temporarily until we figure out a proper solution. Author: Cheng Lian <lian@databricks.com> Closes #6345 from liancheng/ignore-selenium-test and squashes the following commits: 09996fe [Cheng Lian] Ignores Thrift server UISeleniumSuite
Diffstat (limited to 'sql/hive-thriftserver')
-rw-r--r--sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/UISeleniumSuite.scala19
1 files changed, 8 insertions, 11 deletions
diff --git a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/UISeleniumSuite.scala b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/UISeleniumSuite.scala
index 47541015a3..a286dc5825 100644
--- a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/UISeleniumSuite.scala
+++ b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/UISeleniumSuite.scala
@@ -17,21 +17,18 @@
package org.apache.spark.sql.hive.thriftserver
-
-
import scala.util.Random
+import org.apache.hadoop.hive.conf.HiveConf.ConfVars
import org.openqa.selenium.WebDriver
import org.openqa.selenium.htmlunit.HtmlUnitDriver
-import org.scalatest.{Matchers, BeforeAndAfterAll}
import org.scalatest.concurrent.Eventually._
import org.scalatest.selenium.WebBrowser
import org.scalatest.time.SpanSugar._
+import org.scalatest.{BeforeAndAfterAll, Matchers}
-import org.apache.hadoop.hive.conf.HiveConf.ConfVars
import org.apache.spark.sql.hive.HiveContext
-
class UISeleniumSuite
extends HiveThriftJdbcTest
with WebBrowser with Matchers with BeforeAndAfterAll {
@@ -75,9 +72,9 @@ class UISeleniumSuite
""".stripMargin.split("\\s+").toSeq
}
- test("thrift server ui test") {
+ ignore("thrift server ui test") {
withJdbcStatement(statement =>{
- val baseURL = s"http://localhost:${uiPort}"
+ val baseURL = s"http://localhost:$uiPort"
val queries = Seq(
"CREATE TABLE test_map(key INT, value STRING)",
@@ -86,14 +83,14 @@ class UISeleniumSuite
queries.foreach(statement.execute)
eventually(timeout(10 seconds), interval(50 milliseconds)) {
- go to (baseURL)
- find(cssSelector("""ul li a[href*="ThriftServer"]""")) should not be(None)
+ go to baseURL
+ find(cssSelector("""ul li a[href*="ThriftServer"]""")) should not be None
}
eventually(timeout(10 seconds), interval(50 milliseconds)) {
go to (baseURL + "/ThriftServer")
- find(id("sessionstat")) should not be(None)
- find(id("sqlstat")) should not be(None)
+ find(id("sessionstat")) should not be None
+ find(id("sqlstat")) should not be None
// check whether statements exists
queries.foreach { line =>