@@ -69,7 +69,10 @@ public async Task ApiTest3()
6969 new ( )
7070 {
7171 Scheme = HttpScheme . Http ,
72- Url = "localhost" ,
72+ Url =
73+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
74+ ? "localhost"
75+ : "host.docker.internal" ,
7376 Port = 6676 ,
7477 Up = true ,
7578 LastUse = DateTime . UtcNow ,
@@ -78,7 +81,10 @@ public async Task ApiTest3()
7881 new ( )
7982 {
8083 Scheme = HttpScheme . Http ,
81- Url = "localhost" ,
84+ Url =
85+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
86+ ? "localhost"
87+ : "host.docker.internal" ,
8288 Port = 6677 ,
8389 Up = true ,
8490 LastUse = DateTime . UtcNow ,
@@ -87,7 +93,10 @@ public async Task ApiTest3()
8793 new ( )
8894 {
8995 Scheme = HttpScheme . Http ,
90- Url = "localhost" ,
96+ Url =
97+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
98+ ? "localhost"
99+ : "host.docker.internal" ,
91100 Port = 6678 ,
92101 Up = true ,
93102 LastUse = DateTime . UtcNow ,
@@ -116,7 +125,10 @@ public async Task ApiTest4()
116125 new ( )
117126 {
118127 Scheme = HttpScheme . Http ,
119- Url = "localhost" ,
128+ Url =
129+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
130+ ? "localhost"
131+ : "host.docker.internal" ,
120132 Port = 6676 ,
121133 Up = true ,
122134 LastUse = DateTime . UtcNow ,
@@ -146,7 +158,10 @@ public async Task ApiTest5()
146158 new ( )
147159 {
148160 Scheme = HttpScheme . Http ,
149- Url = "localhost" ,
161+ Url =
162+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
163+ ? "localhost"
164+ : "host.docker.internal" ,
150165 Port = 6678 ,
151166 Up = true ,
152167 LastUse = DateTime . UtcNow ,
@@ -228,7 +243,10 @@ public async Task DeleteObjectsTest0()
228243 new ( )
229244 {
230245 Scheme = HttpScheme . Http ,
231- Url = "localhost" ,
246+ Url =
247+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
248+ ? "localhost"
249+ : "host.docker.internal" ,
232250 Port = 6680 ,
233251 Up = true ,
234252 LastUse = DateTime . UtcNow ,
@@ -316,7 +334,10 @@ public async Task IndexExistsTest0()
316334 new ( )
317335 {
318336 Scheme = HttpScheme . Http ,
319- Url = "localhost" ,
337+ Url =
338+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
339+ ? "localhost"
340+ : "host.docker.internal" ,
320341 Port = 6681 ,
321342 Up = true ,
322343 LastUse = DateTime . UtcNow ,
@@ -343,7 +364,10 @@ public async Task IndexExistsTest1()
343364 new ( )
344365 {
345366 Scheme = HttpScheme . Http ,
346- Url = "localhost" ,
367+ Url =
368+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
369+ ? "localhost"
370+ : "host.docker.internal" ,
347371 Port = 6681 ,
348372 Up = true ,
349373 LastUse = DateTime . UtcNow ,
@@ -370,7 +394,10 @@ public async Task IndexExistsTest2()
370394 new ( )
371395 {
372396 Scheme = HttpScheme . Http ,
373- Url = "localhost" ,
397+ Url =
398+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
399+ ? "localhost"
400+ : "host.docker.internal" ,
374401 Port = 6681 ,
375402 Up = true ,
376403 LastUse = DateTime . UtcNow ,
@@ -476,7 +503,10 @@ public async Task PartialUpdateObjectsTest0()
476503 new ( )
477504 {
478505 Scheme = HttpScheme . Http ,
479- Url = "localhost" ,
506+ Url =
507+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
508+ ? "localhost"
509+ : "host.docker.internal" ,
480510 Port = 6680 ,
481511 Up = true ,
482512 LastUse = DateTime . UtcNow ,
@@ -515,7 +545,10 @@ public async Task PartialUpdateObjectsTest1()
515545 new ( )
516546 {
517547 Scheme = HttpScheme . Http ,
518- Url = "localhost" ,
548+ Url =
549+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
550+ ? "localhost"
551+ : "host.docker.internal" ,
519552 Port = 6680 ,
520553 Up = true ,
521554 LastUse = DateTime . UtcNow ,
@@ -554,7 +587,10 @@ public async Task ReplaceAllObjectsTest0()
554587 new ( )
555588 {
556589 Scheme = HttpScheme . Http ,
557- Url = "localhost" ,
590+ Url =
591+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
592+ ? "localhost"
593+ : "host.docker.internal" ,
558594 Port = 6679 ,
559595 Up = true ,
560596 LastUse = DateTime . UtcNow ,
@@ -601,7 +637,10 @@ public async Task SaveObjectsTest0()
601637 new ( )
602638 {
603639 Scheme = HttpScheme . Http ,
604- Url = "localhost" ,
640+ Url =
641+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
642+ ? "localhost"
643+ : "host.docker.internal" ,
605644 Port = 6680 ,
606645 Up = true ,
607646 LastUse = DateTime . UtcNow ,
@@ -639,7 +678,10 @@ public async Task SaveObjectsTest1()
639678 new ( )
640679 {
641680 Scheme = HttpScheme . Http ,
642- Url = "localhost" ,
681+ Url =
682+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
683+ ? "localhost"
684+ : "host.docker.internal" ,
643685 Port = 6680 ,
644686 Up = true ,
645687 LastUse = DateTime . UtcNow ,
@@ -676,7 +718,10 @@ public async Task SetClientApiKeyTest0()
676718 new ( )
677719 {
678720 Scheme = HttpScheme . Http ,
679- Url = "localhost" ,
721+ Url =
722+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
723+ ? "localhost"
724+ : "host.docker.internal" ,
680725 Port = 6683 ,
681726 Up = true ,
682727 LastUse = DateTime . UtcNow ,
@@ -719,7 +764,10 @@ public async Task WaitForApiKeyTest0()
719764 new ( )
720765 {
721766 Scheme = HttpScheme . Http ,
722- Url = "localhost" ,
767+ Url =
768+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
769+ ? "localhost"
770+ : "host.docker.internal" ,
723771 Port = 6681 ,
724772 Up = true ,
725773 LastUse = DateTime . UtcNow ,
@@ -753,7 +801,10 @@ public async Task WaitForApiKeyTest1()
753801 new ( )
754802 {
755803 Scheme = HttpScheme . Http ,
756- Url = "localhost" ,
804+ Url =
805+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
806+ ? "localhost"
807+ : "host.docker.internal" ,
757808 Port = 6681 ,
758809 Up = true ,
759810 LastUse = DateTime . UtcNow ,
@@ -802,7 +853,10 @@ public async Task WaitForApiKeyTest2()
802853 new ( )
803854 {
804855 Scheme = HttpScheme . Http ,
805- Url = "localhost" ,
856+ Url =
857+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
858+ ? "localhost"
859+ : "host.docker.internal" ,
806860 Port = 6681 ,
807861 Up = true ,
808862 LastUse = DateTime . UtcNow ,
@@ -832,7 +886,10 @@ public async Task WaitForAppTaskTest0()
832886 new ( )
833887 {
834888 Scheme = HttpScheme . Http ,
835- Url = "localhost" ,
889+ Url =
890+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
891+ ? "localhost"
892+ : "host.docker.internal" ,
836893 Port = 6681 ,
837894 Up = true ,
838895 LastUse = DateTime . UtcNow ,
@@ -863,7 +920,10 @@ public async Task WaitForTaskTest0()
863920 new ( )
864921 {
865922 Scheme = HttpScheme . Http ,
866- Url = "localhost" ,
923+ Url =
924+ Environment . GetEnvironmentVariable ( "CI" ) == "true"
925+ ? "localhost"
926+ : "host.docker.internal" ,
867927 Port = 6681 ,
868928 Up = true ,
869929 LastUse = DateTime . UtcNow ,
0 commit comments