Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zekehuntergreen committed Mar 21, 2024
1 parent 02488eb commit 63b9579
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import test.integration.Helpers.stubControllerComponentsAsUser
import test.{TestAnnotations, TestUserManagement, TestUserRegistration}
import utils.IndexTestHelpers
import utils.attempt.AttemptAwait._
import services.MetricsService.{NoOpMetricsService}
import services.{NoOpMetricsService}

class ElasticsearchResourcesITest extends AnyFreeSpec with Matchers with ElasticsearchTestService with IndexTestHelpers {
import TestUserManagement._
Expand Down
4 changes: 3 additions & 1 deletion backend/test/test/integration/Helpers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import services.ingestion.IngestionServices
import services.manifest.Neo4jManifest
import services.users.{Neo4jUserManagement, UserManagement}
import services.{BucketConfig, Neo4jQueryLoggingConfig, S3Config, TestTypeDetector}
import services.{NoOpMetricsService}
import test.integration.Helpers.BlobAndNodeId
import test.{TestAuthActionBuilder, TestObjectStorage, TestPostgresClient, TestPreviewService, TestUserManagement}
import utils.Logging
Expand Down Expand Up @@ -257,7 +258,8 @@ object Helpers extends Matchers with Logging with OptionValues with Inside {
val resourceController = new Resource(controllerComponents, manifest, elasticsearch.elasticResources, elasticsearch.elasticPages, annotations, null)
val filtersController = new Filters(controllerComponents, manifest, annotations)
val workspaceController = new Workspaces(controllerComponents, annotations, elasticsearch.elasticResources, manifest, userManagement, new TestObjectStorage(), new TestObjectStorage(), new TestPostgresClient)
val searchController = new Search(controllerComponents, userManagement, elasticsearch.elasticResources, annotations)
val metricsService = new NoOpMetricsService()
val searchController = new Search(controllerComponents, userManagement, elasticsearch.elasticResources, annotations, metricsService)
val documentsController = new Documents(controllerComponents, manifest, elasticsearch.elasticResources, null, userManagement, annotations, downloadExpiryPeriod)
val previewsController = new Previews(controllerComponents, manifest, elasticsearch.elasticResources, new TestPreviewService, userManagement, annotations, downloadExpiryPeriod)

Expand Down

0 comments on commit 63b9579

Please sign in to comment.