mirror of
https://github.com/bitwarden/server.git
synced 2026-02-07 01:16:22 +08:00
Enhance seeder with additional cipher types and architectural refactorings (#6935)
This commit is contained in:
@@ -7,6 +7,7 @@ using Bit.Core.Platform.PushRegistration.Internal;
|
||||
using Bit.Core.Repositories;
|
||||
using Bit.Core.Services;
|
||||
using Bit.Infrastructure.EntityFramework.Repositories;
|
||||
using Bit.Seeder.Services;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
using Microsoft.AspNetCore.TestHost;
|
||||
@@ -190,6 +191,9 @@ public abstract class WebApplicationFactoryBase<T> : WebApplicationFactory<T>
|
||||
TestDatabase.Migrate(services);
|
||||
}
|
||||
|
||||
// Register NoOpManglerService for test data seeding (no mangling in tests)
|
||||
services.TryAddSingleton<IManglerService, NoOpManglerService>();
|
||||
|
||||
// QUESTION: The normal licensing service should run fine on developer machines but not in CI
|
||||
// should we have a fork here to leave the normal service for developers?
|
||||
// TODO: Eventually add the license file to CI
|
||||
|
||||
Reference in New Issue
Block a user