Skip to content

Commit b634855

Browse files
CopilotAniruddh25
andcommitted
Fix integration test to use actual stored procedure from test schema
Co-authored-by: Aniruddh25 <[email protected]>
1 parent 8d31b21 commit b634855

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Service.Tests/Configuration/HealthEndpointTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -584,21 +584,21 @@ public async Task HealthEndpoint_ExcludesStoredProcedures()
584584
Relationships: null,
585585
Mappings: null);
586586

587-
// Create a stored procedure entity
587+
// Create a stored procedure entity - using an actual stored procedure from test schema
588588
Entity storedProcEntity = new(
589589
Health: new(enabled: true),
590-
Source: new("GetData", EntitySourceType.StoredProcedure, null, null),
590+
Source: new("get_books", EntitySourceType.StoredProcedure, null, null),
591591
Fields: null,
592592
Rest: new(Enabled: true),
593-
GraphQL: new("getData", "getDataList", true),
593+
GraphQL: new("executeGetBooks", "executeGetBooksList", true),
594594
Permissions: new[] { ConfigurationTests.GetMinimalPermissionConfig(AuthorizationResolver.ROLE_ANONYMOUS) },
595595
Relationships: null,
596596
Mappings: null);
597597

598598
Dictionary<string, Entity> entityMap = new()
599599
{
600600
{ "Book", tableEntity },
601-
{ "GetData", storedProcEntity }
601+
{ "GetBooks", storedProcEntity }
602602
};
603603

604604
RuntimeConfig runtimeConfig = CreateRuntimeConfig(
@@ -646,9 +646,9 @@ public async Task HealthEndpoint_ExcludesStoredProcedures()
646646
Assert.IsTrue(entityNamesInHealthCheck.Contains("Book"),
647647
"Table entity 'Book' should be included in health check results");
648648

649-
// Verify that the stored procedure entity (GetData) does NOT appear in health checks
650-
Assert.IsFalse(entityNamesInHealthCheck.Contains("GetData"),
651-
"Stored procedure entity 'GetData' should be excluded from health check results");
649+
// Verify that the stored procedure entity (GetBooks) does NOT appear in health checks
650+
Assert.IsFalse(entityNamesInHealthCheck.Contains("GetBooks"),
651+
"Stored procedure entity 'GetBooks' should be excluded from health check results");
652652
}
653653
}
654654

0 commit comments

Comments
 (0)