Skip to content

Commit 7bd4d15

Browse files
committed
delete security test, since it doesnt do anything
1 parent a325563 commit 7bd4d15

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

core/src/test/scala/org/apache/spark/deploy/history/HistoryServerSuite.scala

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -125,33 +125,6 @@ class HistoryServerSuite extends FunSuite with BeforeAndAfter with Matchers with
125125
}
126126
}
127127

128-
test("security") {
129-
val conf = new SparkConf()
130-
.set("spark.history.fs.logDirectory", logDir.getAbsolutePath)
131-
.set("spark.history.fs.updateInterval", "0")
132-
.set("spark.acls.enable", "true")
133-
.set("spark.ui.view.acls", "user1")
134-
val securityManager = new SecurityManager(conf)
135-
136-
val securePort = port + 1
137-
val secureServer = new HistoryServer(conf, provider, securityManager, securePort)
138-
secureServer.initialize()
139-
secureServer.bind()
140-
141-
securityManager.checkUIViewPermissions("user1") should be (true)
142-
securityManager.checkUIViewPermissions("user2") should be (false)
143-
144-
try {
145-
146-
// TODO figure out a way to authenticate as the users in the requests
147-
pending
148-
149-
} finally {
150-
secureServer.stop()
151-
}
152-
153-
}
154-
155128
test("response codes on bad paths") {
156129
val badAppId = getContentAndCode("applications/foobar")
157130
badAppId._1 should be (HttpServletResponse.SC_NOT_FOUND)

0 commit comments

Comments
 (0)