Skip to content

Commit e279260

Browse files
algolia-botmillotp
andcommitted
chore(cts): replace localhost at runtime (#3806) (generated) [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent 428d85d commit e279260

File tree

93 files changed

+1466
-316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1466
-316
lines changed

tests/output/csharp/src/generated/benchmark/Search.test.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ public async Task BenchmarkTest0()
3232
new()
3333
{
3434
Scheme = HttpScheme.Http,
35-
Url = "localhost",
35+
Url =
36+
Environment.GetEnvironmentVariable("CI") == "true"
37+
? "localhost"
38+
: "host.docker.internal",
3639
Port = 6682,
3740
Up = true,
3841
LastUse = DateTime.UtcNow,

tests/output/csharp/src/generated/client/Abtesting.test.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ public async Task SetClientApiKeyTest0()
122122
new()
123123
{
124124
Scheme = HttpScheme.Http,
125-
Url = "localhost",
125+
Url =
126+
Environment.GetEnvironmentVariable("CI") == "true"
127+
? "localhost"
128+
: "host.docker.internal",
126129
Port = 6683,
127130
Up = true,
128131
LastUse = DateTime.UtcNow,

tests/output/csharp/src/generated/client/Analytics.test.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ public async Task SetClientApiKeyTest0()
137137
new()
138138
{
139139
Scheme = HttpScheme.Http,
140-
Url = "localhost",
140+
Url =
141+
Environment.GetEnvironmentVariable("CI") == "true"
142+
? "localhost"
143+
: "host.docker.internal",
141144
Port = 6683,
142145
Up = true,
143146
LastUse = DateTime.UtcNow,

tests/output/csharp/src/generated/client/Ingestion.test.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ public async Task SetClientApiKeyTest0()
111111
new()
112112
{
113113
Scheme = HttpScheme.Http,
114-
Url = "localhost",
114+
Url =
115+
Environment.GetEnvironmentVariable("CI") == "true"
116+
? "localhost"
117+
: "host.docker.internal",
115118
Port = 6683,
116119
Up = true,
117120
LastUse = DateTime.UtcNow,

tests/output/csharp/src/generated/client/Insights.test.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ public async Task SetClientApiKeyTest0()
143143
new()
144144
{
145145
Scheme = HttpScheme.Http,
146-
Url = "localhost",
146+
Url =
147+
Environment.GetEnvironmentVariable("CI") == "true"
148+
? "localhost"
149+
: "host.docker.internal",
147150
Port = 6683,
148151
Up = true,
149152
LastUse = DateTime.UtcNow,

tests/output/csharp/src/generated/client/Monitoring.test.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ public async Task SetClientApiKeyTest0()
9595
new()
9696
{
9797
Scheme = HttpScheme.Http,
98-
Url = "localhost",
98+
Url =
99+
Environment.GetEnvironmentVariable("CI") == "true"
100+
? "localhost"
101+
: "host.docker.internal",
99102
Port = 6683,
100103
Up = true,
101104
LastUse = DateTime.UtcNow,

tests/output/csharp/src/generated/client/Personalization.test.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ public async Task SetClientApiKeyTest0()
137137
new()
138138
{
139139
Scheme = HttpScheme.Http,
140-
Url = "localhost",
140+
Url =
141+
Environment.GetEnvironmentVariable("CI") == "true"
142+
? "localhost"
143+
: "host.docker.internal",
141144
Port = 6683,
142145
Up = true,
143146
LastUse = DateTime.UtcNow,

tests/output/csharp/src/generated/client/QuerySuggestions.test.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ public async Task SetClientApiKeyTest0()
137137
new()
138138
{
139139
Scheme = HttpScheme.Http,
140-
Url = "localhost",
140+
Url =
141+
Environment.GetEnvironmentVariable("CI") == "true"
142+
? "localhost"
143+
: "host.docker.internal",
141144
Port = 6683,
142145
Up = true,
143146
LastUse = DateTime.UtcNow,

tests/output/csharp/src/generated/client/Recommend.test.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ public async Task SetClientApiKeyTest0()
106106
new()
107107
{
108108
Scheme = HttpScheme.Http,
109-
Url = "localhost",
109+
Url =
110+
Environment.GetEnvironmentVariable("CI") == "true"
111+
? "localhost"
112+
: "host.docker.internal",
110113
Port = 6683,
111114
Up = true,
112115
LastUse = DateTime.UtcNow,

tests/output/csharp/src/generated/client/Search.test.cs

Lines changed: 80 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)