Skip to content

Commit 3ce7726

Browse files
committed
checking sanity failures
1 parent 8d8ec6f commit 3ce7726

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Contentstack.Core.Tests/Integration/ConfigurationTests/RegionSupportTest.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ public async Task Region_DefaultHost_ConnectsSuccessfully()
4141
[Fact(DisplayName = "Region Configuration - Region Standard CDN Works Correctly")]
4242
public async Task Region_StandardCDN_WorksCorrectly()
4343
{
44-
// Arrange
45-
var client = CreateClient("cdn.contentstack.io");
44+
// Arrange - Use configured host instead of hardcoded cdn.contentstack.io
45+
// This allows the test to work with custom regions like dev11
46+
var client = CreateClient(TestDataHelper.Host);
4647

4748
// Act
4849
var entry = await client

Contentstack.Core.Tests/Integration/StackTests/StackOperationsComprehensiveTest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,10 @@ public async Task Stack_ImageDelivery_AssetUrlIsAccessible()
308308
[Fact(DisplayName = "Stack Operations - Stack Branches Support Can Query With Branch")]
309309
public async Task Stack_Branches_Support_CanQueryWithBranch()
310310
{
311-
// Arrange
311+
// Arrange - Include Host for custom regions like dev11
312312
var options = new ContentstackOptions()
313313
{
314+
Host = TestDataHelper.Host,
314315
ApiKey = TestDataHelper.ApiKey,
315316
DeliveryToken = TestDataHelper.DeliveryToken,
316317
Environment = TestDataHelper.Environment,
@@ -408,6 +409,7 @@ public async Task Stack_Timeout_Configuration_IsRespected()
408409
// Arrange
409410
var options = new ContentstackOptions()
410411
{
412+
Host = TestDataHelper.Host, // Use configured host for custom regions
411413
ApiKey = TestDataHelper.ApiKey,
412414
DeliveryToken = TestDataHelper.DeliveryToken,
413415
Environment = TestDataHelper.Environment,

0 commit comments

Comments
 (0)