File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
core/src/main/scala/app/softnetwork/notification/service
testkit/src/main/scala/app/softnetwork/notification/scalatest Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ trait NotificationService[SD <: SessionData with SessionDataDecorator[SD]]
5858 requiredSession(sc, gt) { session =>
5959 post {
6060 WsChannels .addSession(channel, session.id)
61- val channels =
61+ complete(HttpResponse (StatusCodes .OK ))
62+ /* val channels =
6263 session.get("channels").getOrElse("").split(",").filter(_.nonEmpty).toSet + channel
6364 var updatedSession = session
6465 updatedSession += ("channels" -> channels.mkString(","))
@@ -67,10 +68,11 @@ trait NotificationService[SD <: SessionData with SessionDataDecorator[SD]]
6768 setNewCsrfToken(checkHeader) {
6869 complete(HttpResponse(StatusCodes.OK))
6970 }
70- }
71+ }*/
7172 } ~ delete {
7273 WsChannels .removeSession(channel, session.id)
73- val channels =
74+ complete(HttpResponse (StatusCodes .OK ))
75+ /* val channels =
7476 session.get("channels").getOrElse("").split(",").filter(_.nonEmpty).toSet - channel
7577 var updatedSession = session
7678 updatedSession += ("channels" -> channels.mkString(","))
@@ -79,7 +81,7 @@ trait NotificationService[SD <: SessionData with SessionDataDecorator[SD]]
7981 setNewCsrfToken(checkHeader) {
8082 complete(HttpResponse(StatusCodes.OK))
8183 }
82- }
84+ }*/
8385 }
8486 }
8587 }
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ trait AllNotificationsRoutesTestKit[SD <: SessionData with SessionDataDecorator[
7272 Post (s " $wsPath/channels/ ${URLEncoder .encode(channel, " UTF-8" )}" )
7373 ) ~> routes ~> check {
7474 status.isSuccess() shouldEqual true
75- httpHeaders = extractHeaders(headers)
75+ /* httpHeaders = extractHeaders(headers)
7676 extractSession(false) match {
7777 case None => fail()
7878 case Some(session) =>
@@ -83,7 +83,7 @@ trait AllNotificationsRoutesTestKit[SD <: SessionData with SessionDataDecorator[
8383 .filter(_.nonEmpty)
8484 .toSet
8585 .contains(channel) shouldEqual true
86- }
86+ }*/
8787 }
8888 }
8989
@@ -92,7 +92,7 @@ trait AllNotificationsRoutesTestKit[SD <: SessionData with SessionDataDecorator[
9292 Delete (s " $wsPath/channels/ ${URLEncoder .encode(channel, " UTF-8" )}" )
9393 ) ~> routes ~> check {
9494 status.isSuccess() shouldEqual true
95- httpHeaders = extractHeaders(headers)
95+ /* httpHeaders = extractHeaders(headers)
9696 extractSession(false) match {
9797 case None => fail()
9898 case Some(session) =>
@@ -103,7 +103,7 @@ trait AllNotificationsRoutesTestKit[SD <: SessionData with SessionDataDecorator[
103103 .filter(_.nonEmpty)
104104 .toSet
105105 .contains(channel) shouldEqual false
106- }
106+ }*/
107107 }
108108 }
109109}
You can’t perform that action at this time.
0 commit comments