Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use only fake domain in our tests #2197

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 39 additions & 39 deletions http/http-advanced-reactive/src/test/resources/big_sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"guid": "45485c08-cfb7-4c2d-ae2b-89a97be28b3c",
"isActive": false,
"balance": "$3,654.57",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 27,
"eyeColor": "green",
"name": "Mckenzie Hansen",
Expand Down Expand Up @@ -50,7 +50,7 @@
"guid": "2bb05b0e-8ae1-4a4e-a7c3-bc2de62a9fed",
"isActive": true,
"balance": "$3,082.49",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 28,
"eyeColor": "blue",
"name": "Shelia Johns",
Expand Down Expand Up @@ -95,7 +95,7 @@
"guid": "7d93ecbc-7284-4565-abf1-09ff91fef6f0",
"isActive": false,
"balance": "$1,525.86",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 27,
"eyeColor": "green",
"name": "Higgins Robertson",
Expand Down Expand Up @@ -140,7 +140,7 @@
"guid": "e2d3c4d4-6455-4a6f-a323-273278b35bb2",
"isActive": true,
"balance": "$1,749.32",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 28,
"eyeColor": "brown",
"name": "Kramer Buck",
Expand Down Expand Up @@ -185,7 +185,7 @@
"guid": "439605bb-648b-4322-90b4-543a9b428fe9",
"isActive": true,
"balance": "$2,295.63",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 37,
"eyeColor": "green",
"name": "Blanchard Best",
Expand Down Expand Up @@ -230,7 +230,7 @@
"guid": "9bd68752-08e2-4b46-895c-704d16f6e262",
"isActive": false,
"balance": "$1,589.89",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 30,
"eyeColor": "green",
"name": "Strickland Caldwell",
Expand Down Expand Up @@ -275,7 +275,7 @@
"guid": "e2d31521-8652-470f-8b56-bbfe60429380",
"isActive": true,
"balance": "$3,354.04",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 26,
"eyeColor": "brown",
"name": "Jenifer Kim",
Expand Down Expand Up @@ -320,7 +320,7 @@
"guid": "0e84495f-725e-403e-9895-4d6fa2a4bfa3",
"isActive": false,
"balance": "$2,642.93",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 36,
"eyeColor": "green",
"name": "Joy Dorsey",
Expand Down Expand Up @@ -365,7 +365,7 @@
"guid": "d2491edb-7421-4146-9e2b-d10723641f6f",
"isActive": true,
"balance": "$2,912.66",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 39,
"eyeColor": "blue",
"name": "Owen Guthrie",
Expand Down Expand Up @@ -410,7 +410,7 @@
"guid": "0c2e0b41-5d17-4042-8ba8-db779bbf5fe0",
"isActive": true,
"balance": "$1,626.56",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 33,
"eyeColor": "brown",
"name": "Kerry Tillman",
Expand Down Expand Up @@ -455,7 +455,7 @@
"guid": "b020ff09-1100-45f4-8f13-61085a791668",
"isActive": true,
"balance": "$1,371.01",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 32,
"eyeColor": "blue",
"name": "Simon Mays",
Expand Down Expand Up @@ -500,7 +500,7 @@
"guid": "717aabdf-be9d-4fef-b5f3-c44442a2a55c",
"isActive": true,
"balance": "$3,591.49",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 28,
"eyeColor": "green",
"name": "Richards Mejia",
Expand Down Expand Up @@ -545,7 +545,7 @@
"guid": "87f4fd3a-cb14-4ce1-ac84-e23e5a2672c6",
"isActive": true,
"balance": "$2,972.68",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 28,
"eyeColor": "blue",
"name": "Claire Downs",
Expand Down Expand Up @@ -590,7 +590,7 @@
"guid": "68f33f2b-4c50-4521-9c39-3f6e54236884",
"isActive": true,
"balance": "$2,933.01",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 34,
"eyeColor": "brown",
"name": "Leach Logan",
Expand Down Expand Up @@ -635,7 +635,7 @@
"guid": "5151080b-0168-4aff-8963-e4f88fa8c301",
"isActive": true,
"balance": "$2,302.99",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 20,
"eyeColor": "blue",
"name": "Kelly Finley",
Expand Down Expand Up @@ -680,7 +680,7 @@
"guid": "444cfa53-d5b4-4bdd-9377-29befec49772",
"isActive": false,
"balance": "$3,626.26",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 35,
"eyeColor": "blue",
"name": "Mcknight Freeman",
Expand Down Expand Up @@ -725,7 +725,7 @@
"guid": "2fc1b02a-364a-4405-b8e7-cf1a60fc3515",
"isActive": false,
"balance": "$1,719.61",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 29,
"eyeColor": "blue",
"name": "Doris Hendrix",
Expand Down Expand Up @@ -770,7 +770,7 @@
"guid": "46dc2f98-27ec-4d56-a204-72e15968ff56",
"isActive": false,
"balance": "$3,963.37",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 26,
"eyeColor": "blue",
"name": "Christine Beasley",
Expand Down Expand Up @@ -815,7 +815,7 @@
"guid": "5d0a080e-42f5-45fe-abee-a9e6c9291758",
"isActive": true,
"balance": "$2,025.65",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 40,
"eyeColor": "green",
"name": "Peck Hoffman",
Expand Down Expand Up @@ -860,7 +860,7 @@
"guid": "52882a92-ab05-4780-8adc-a1f35c16092e",
"isActive": false,
"balance": "$3,289.57",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 20,
"eyeColor": "blue",
"name": "Robbins Waller",
Expand Down Expand Up @@ -905,7 +905,7 @@
"guid": "df3766fe-8ef7-466f-985e-ea6349aa4e22",
"isActive": true,
"balance": "$2,033.57",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 36,
"eyeColor": "blue",
"name": "Ivy Powers",
Expand Down Expand Up @@ -950,7 +950,7 @@
"guid": "546b56f9-213c-47ee-867b-4057358aeef6",
"isActive": false,
"balance": "$2,226.29",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 24,
"eyeColor": "green",
"name": "Mcconnell Collins",
Expand Down Expand Up @@ -995,7 +995,7 @@
"guid": "b840453e-e275-4dcd-9b77-98256d7d26bd",
"isActive": false,
"balance": "$2,786.59",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 20,
"eyeColor": "green",
"name": "Cherie Brock",
Expand Down Expand Up @@ -1040,7 +1040,7 @@
"guid": "3ce831ed-ca4c-4817-a0ee-765630ace6f3",
"isActive": false,
"balance": "$2,373.51",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 29,
"eyeColor": "blue",
"name": "Corrine Rivera",
Expand Down Expand Up @@ -1085,7 +1085,7 @@
"guid": "0b243ea1-72d5-4ed8-9a6b-1ca7ec08e36b",
"isActive": true,
"balance": "$2,745.67",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 39,
"eyeColor": "green",
"name": "Lucas Battle",
Expand Down Expand Up @@ -1130,7 +1130,7 @@
"guid": "11f0f451-938b-487a-ae50-10c43bf6ed7d",
"isActive": false,
"balance": "$1,624.40",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 27,
"eyeColor": "brown",
"name": "Lynda Levy",
Expand Down Expand Up @@ -1175,7 +1175,7 @@
"guid": "b4f156d7-73db-462b-94bf-bd687032cec3",
"isActive": false,
"balance": "$1,795.27",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 35,
"eyeColor": "brown",
"name": "Davenport Sanford",
Expand Down Expand Up @@ -1220,7 +1220,7 @@
"guid": "c92ea480-f346-44c0-99ea-d0f99b76cc32",
"isActive": true,
"balance": "$1,539.30",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 36,
"eyeColor": "green",
"name": "Billie Justice",
Expand Down Expand Up @@ -1265,7 +1265,7 @@
"guid": "7017b8df-1d04-421a-af95-1135e8d2ca29",
"isActive": true,
"balance": "$1,217.16",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 37,
"eyeColor": "brown",
"name": "Neal Jacobs",
Expand Down Expand Up @@ -1310,7 +1310,7 @@
"guid": "786b33b7-6082-4562-8baf-fa6bfc3d8628",
"isActive": true,
"balance": "$1,345.33",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 26,
"eyeColor": "green",
"name": "Gallagher Bailey",
Expand Down Expand Up @@ -1355,7 +1355,7 @@
"guid": "e9b3404d-f767-4bd1-8edf-e734ab163c84",
"isActive": true,
"balance": "$1,396.13",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 21,
"eyeColor": "blue",
"name": "Mccarty Mcpherson",
Expand Down Expand Up @@ -1400,7 +1400,7 @@
"guid": "e30b5873-f712-405c-91d7-3f2dac7cf2bf",
"isActive": false,
"balance": "$3,714.03",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 36,
"eyeColor": "green",
"name": "Tillman Adkins",
Expand Down Expand Up @@ -1445,7 +1445,7 @@
"guid": "82f7ece2-8bc2-4575-bbfe-7d2af083b736",
"isActive": false,
"balance": "$3,799.75",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 32,
"eyeColor": "green",
"name": "Georgina Weiss",
Expand Down Expand Up @@ -1490,7 +1490,7 @@
"guid": "e6ee76bd-6e44-4816-a38c-67902fe16112",
"isActive": false,
"balance": "$3,865.79",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 23,
"eyeColor": "blue",
"name": "Bonita Cardenas",
Expand Down Expand Up @@ -1535,7 +1535,7 @@
"guid": "9c28a164-771d-4e57-a6cc-4a5ccfc0bede",
"isActive": false,
"balance": "$2,523.96",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 40,
"eyeColor": "green",
"name": "Marla Cox",
Expand Down Expand Up @@ -1580,7 +1580,7 @@
"guid": "8bd3ed6a-6cad-4681-a580-8319f4e93573",
"isActive": true,
"balance": "$1,846.19",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 31,
"eyeColor": "brown",
"name": "Moon Bright",
Expand Down Expand Up @@ -1625,7 +1625,7 @@
"guid": "3c9964f5-6eba-4c64-bea2-88ec2491a684",
"isActive": true,
"balance": "$1,986.31",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 37,
"eyeColor": "brown",
"name": "Baird Glover",
Expand Down Expand Up @@ -1670,7 +1670,7 @@
"guid": "ea4cb9be-1248-4ccb-a89d-3a631310363a",
"isActive": true,
"balance": "$1,348.16",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 22,
"eyeColor": "green",
"name": "Terry Velasquez",
Expand Down Expand Up @@ -1715,7 +1715,7 @@
"guid": "4f2c9813-3d4b-4036-9d84-c0191f82b30a",
"isActive": false,
"balance": "$3,152.05",
"picture": "http://placehold.it/32x32",
"picture": "http://placehold.fake/32x32",
"age": 33,
"eyeColor": "brown",
"name": "Singleton Middleton",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
quarkus.rest-client."io.quarkus.ts.http.restclient.reactive.proxy.ProxyClient".url=http://example.com
quarkus.rest-client."io.quarkus.ts.http.restclient.reactive.proxy.ProxyClient".url=http://example.fake
quarkus.rest-client."io.quarkus.ts.http.restclient.reactive.proxy.ProxyClient".proxy-address=localhost:8090
quarkus.rest-client."io.quarkus.ts.http.restclient.reactive.proxy.ProxyClient".proxy-user=proxyuser
quarkus.rest-client."io.quarkus.ts.http.restclient.reactive.proxy.ProxyClient".proxy-password=proxypassword
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public class ReactiveRestClientProxyIT {

@Container(image = "${nginx.image}", port = 8090, expectedLog = "Configuration complete; ready for start up")
static RestService proxy = new RestService()
.withProperty("FORWARD_PROXY_RESOLVER", System.getProperty("forward-proxy-resolver"))
.withProperty("NGINX_ENVSUBST_OUTPUT_DIR", "/etc/nginx")
.withProperty("_whatever", "resource_with_destination::/etc/nginx/templates/|nginx.conf.template");

Expand All @@ -36,7 +35,7 @@ public class ReactiveRestClientProxyIT {
void sendRequestThroughProxy() {
Response proxied = proxyApp.given().with().get("/proxied/");
Assertions.assertEquals(HttpStatus.SC_OK, proxied.statusCode());
Assertions.assertTrue(proxied.body().asString().contains("Example Domain"));
Assertions.assertTrue(proxied.body().asString().contains("Example Domain example.fake"));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ events {}
http {
server {
listen 8090;
resolver ${FORWARD_PROXY_RESOLVER};
location / {
proxy_pass http://$host;
return 200 "Example Domain $host";
}
location ~ \.(txt)$ {
return 403 "Reading is prohibited by corporate policy!";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Configuration file
chucknorris.api.domain=https://api.chucknorris.io
chucknorris.api.domain=https://api.chucknorris.fake
vertx.webclient.timeout-sec=2
vertx.webclient.retries=3

Expand Down
Loading