File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Contentstack.Core.Tests/Integration Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments