Skip to content

Commit

Permalink
Remove local image content tests because we will NEVER render locally
Browse files Browse the repository at this point in the history
  • Loading branch information
alinaboghiu committed Feb 2, 2024
1 parent 0132b1d commit 11abbfa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 60 deletions.
5 changes: 4 additions & 1 deletion applications/app/controllers/ImageContentController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ import com.gu.contentapi.client.model.v1.{Block, ItemResponse, Content => ApiCon
import com.gu.contentapi.client.model.{Direction, FollowingSearchQuery, SearchQuery}
import common._
import conf.Configuration.contentApi
import conf.switches.Switches
import contentapi.ContentApiClient
import implicits.{AppsFormat, JsonFormat}
import model._
import model.dotcomrendering.{DotcomRenderingDataModel, PageType}
import pages.ContentHtmlPage
import play.api.libs.json._
import play.api.libs.ws.WSClient
import play.api.mvc._
import renderers.DotcomRenderingService
import services.ImageQuery
import services.dotcomrendering.RemoteRender
import views.support.RenderOtherStatus

import scala.concurrent.Future
Expand All @@ -36,7 +39,7 @@ class ImageContentController(
override def renderItem(path: String)(implicit request: RequestHeader): Future[Result] =
image(Edition(request), path).flatMap {
case Right((content, mainBlock)) => remoteRender(content, mainBlock)
case Left(result) => Future.successful(RenderOtherStatus(result))
case Left(result) => Future.successful(RenderOtherStatus(result))
}

private def getDCRJson(content: ImageContentPage, pageType: PageType, mainBlock: Option[Block])(implicit
Expand Down
35 changes: 0 additions & 35 deletions applications/test/ImageContentControllerTest.scala

This file was deleted.

22 changes: 0 additions & 22 deletions applications/test/ImageContentTemplateTest.scala

This file was deleted.

2 changes: 0 additions & 2 deletions applications/test/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class ApplicationsTestSuite
new AllIndexTemplateTestLite,
new GalleryControllerTest,
new GalleryTemplateTest,
new ImageContentControllerTest,
new ImageContentTemplateTest,
new IndexControllerTest,
new CrosswordPageMetaDataTest,
new IndexMetaDataTest,
Expand Down

0 comments on commit 11abbfa

Please sign in to comment.