mirror of
https://github.com/bitwarden/server
synced 2025-12-25 12:43:14 +00:00
[BEEEP] Integration tests (#1945)
* Add api integration tests * Add some stuff * Make program mockable * Work on IntegrationTests for Identity * Formatting * Update packages.lock.json * Update more packages.lock.json * Update all packages.lock.json * Fix InMemory configuration * Actually fix test configuration * Fix tests for CI * Fix event service * Force EF EventRepository * Add client_credentials test * Remove Api.IntegrationTest * Remove Api Program changes * Cleanup * Add more Auth-Email tests * Run formatting * Address some PR feedback * Move integration stuff to it's own common project * Ran linter * Add shared project to test solution * Remove sln changes * Clean usings * Add more coverage * Address PR feedback
This commit is contained in:
@@ -10,7 +10,14 @@ namespace Bit.Identity
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Host
|
||||
CreateHostBuilder(args)
|
||||
.Build()
|
||||
.Run();
|
||||
}
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args)
|
||||
{
|
||||
return Host
|
||||
.CreateDefaultBuilder(args)
|
||||
.ConfigureCustomAppConfiguration(args)
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
@@ -34,9 +41,7 @@ namespace Bit.Identity
|
||||
|
||||
return e.Level >= LogEventLevel.Error;
|
||||
}));
|
||||
})
|
||||
.Build()
|
||||
.Run();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3333,7 +3333,7 @@
|
||||
"infrastructure.dapper": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"Core": "1.47.1",
|
||||
"Core": "1.48.1",
|
||||
"Dapper": "2.0.123",
|
||||
"System.Data.SqlClient": "4.8.3"
|
||||
}
|
||||
@@ -3342,7 +3342,7 @@
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"AutoMapper.Extensions.Microsoft.DependencyInjection": "8.0.1",
|
||||
"Core": "1.47.1",
|
||||
"Core": "1.48.1",
|
||||
"Microsoft.EntityFrameworkCore.Relational": "5.0.12",
|
||||
"Npgsql.EntityFrameworkCore.PostgreSQL": "5.0.2",
|
||||
"Pomelo.EntityFrameworkCore.MySql": "5.0.3",
|
||||
@@ -3352,9 +3352,9 @@
|
||||
"sharedweb": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"Core": "1.47.1",
|
||||
"Infrastructure.Dapper": "1.47.1",
|
||||
"Infrastructure.EntityFramework": "1.47.1"
|
||||
"Core": "1.48.1",
|
||||
"Infrastructure.Dapper": "1.48.1",
|
||||
"Infrastructure.EntityFramework": "1.48.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user