Skip to content

Commit

Permalink
delete security test, since it doesnt do anything
Browse files Browse the repository at this point in the history
  • Loading branch information
squito committed Apr 27, 2015
1 parent a325563 commit 7bd4d15
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,33 +125,6 @@ class HistoryServerSuite extends FunSuite with BeforeAndAfter with Matchers with
}
}

test("security") {
val conf = new SparkConf()
.set("spark.history.fs.logDirectory", logDir.getAbsolutePath)
.set("spark.history.fs.updateInterval", "0")
.set("spark.acls.enable", "true")
.set("spark.ui.view.acls", "user1")
val securityManager = new SecurityManager(conf)

val securePort = port + 1
val secureServer = new HistoryServer(conf, provider, securityManager, securePort)
secureServer.initialize()
secureServer.bind()

securityManager.checkUIViewPermissions("user1") should be (true)
securityManager.checkUIViewPermissions("user2") should be (false)

try {

// TODO figure out a way to authenticate as the users in the requests
pending

} finally {
secureServer.stop()
}

}

test("response codes on bad paths") {
val badAppId = getContentAndCode("applications/foobar")
badAppId._1 should be (HttpServletResponse.SC_NOT_FOUND)
Expand Down

0 comments on commit 7bd4d15

Please sign in to comment.