mirror of
https://github.com/azaion/missions.git
synced 2026-06-22 19:51:07 +00:00
Enhance test infrastructure and configuration for JWKS and Docker setup
ci/woodpecker/push/build-arm Pipeline was successful
ci/woodpecker/push/build-arm Pipeline was successful
- Updated Azaion.Missions.csproj to exclude test sources from service compilation, preventing build failures due to test project dependencies. - Modified docker-compose.test.yml to preload the pg_stat_statements extension for testing and adjusted JWT refresh intervals for better test execution timing. - Enhanced Dockerfile to install wget for health checks and ensure proper initialization of the container. - Introduced a test-only endpoint for JWKS refresh to facilitate end-to-end testing without relying on the default refresh intervals. - Updated DTOs in ApiDtos.cs to reflect camelCase naming conventions for consistency with service responses. - Improved test cases to handle JWKS rotation and refresh scenarios effectively, ensuring robust validation of JWT handling. This commit lays the groundwork for more reliable and efficient testing of the Azaion.Missions project.
This commit is contained in:
@@ -28,11 +28,12 @@ public sealed class CascadeF3Tests : TestBase, IClassFixture<CascadeF3Fixture>
|
||||
public async Task FT_P_12_mission_cascade_walks_every_dependency_table()
|
||||
{
|
||||
// Arrange — load the canonical walk JSON to assert pre-state and post-state.
|
||||
// The expected_results directory is mounted directly at /app/fixtures
|
||||
// (see docker-compose.test.yml e2e-consumer volumes), so SQL fixtures
|
||||
// and JSON walks live side-by-side under the same root.
|
||||
var walkJson = JsonDocument.Parse(File.ReadAllText(
|
||||
Path.Combine(
|
||||
Environment.GetEnvironmentVariable("FIXTURE_SQL_DIR") ?? "/app/fixtures",
|
||||
"..", // expected_results/.. == input_data
|
||||
"expected_results",
|
||||
"cascade_F3_walk.json")));
|
||||
var preState = walkJson.RootElement.GetProperty("expected_per_table_pre_state_for_safety_check");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user