Skip to content

Commit 992e5d3

Browse files
waahm7TingDaoK
andauthored
Move to postman-echo.com from httpbin.org (#442)
Co-authored-by: Dengke Tang <dengket@amazon.com>
1 parent ac18abb commit 992e5d3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

integration-testing/http_client_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ def test_simple_get_google(self):
8282
run_command(simple_get_args)
8383
def test_simple_get_h1(self):
8484
"""make a simple GET request via HTTP/1.1 and make sure it succeeds"""
85-
simple_get_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http1_1', 'http://httpbin.org/get']
85+
simple_get_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http1_1', 'http://postman-echo.com/get']
8686
run_command(simple_get_args)
8787

8888
def test_simple_post_h1(self):
8989
"""make a simple POST request via HTTP/1.1 to make sure sending data succeeds"""
90-
simple_post_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http1_1', '-P', '-H', 'content-type: application/json', '-i', '-d', '\"{\'test\':\'testval\'}\"', 'http://httpbin.org/post']
90+
simple_post_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http1_1', '-P', '-H', 'content-type: application/json', '-i', '-d', '\"{\'test\':\'testval\'}\"', 'http://postman-echo.com/post']
9191
run_command(simple_post_args)
9292

9393
def test_simple_download_h1(self):
@@ -100,12 +100,12 @@ def test_simple_download_h1(self):
100100

101101
def test_simple_get_h2(self):
102102
"""make a simple GET request via HTTP2 and make sure it succeeds"""
103-
simple_get_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http2', 'https://httpbin.org/get']
103+
simple_get_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http2', 'https://postman-echo.com/get']
104104
run_command(simple_get_args)
105105

106106
def test_simple_post_h2(self):
107107
"""make a simple POST request via HTTP2 to make sure sending data succeeds"""
108-
simple_post_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http2', '-P', '-H', 'content-type: application/json', '-i', '-d', '\"{\'test\':\'testval\'}\"', 'https://httpbin.org/post']
108+
simple_post_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http2', '-P', '-H', 'content-type: application/json', '-i', '-d', '\"{\'test\':\'testval\'}\"', 'https://postman-echo.com/post']
109109
run_command(simple_post_args)
110110

111111
def test_simple_download_h2(self):

tests/test_connection_manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ static struct aws_byte_cursor s_get_proxy_host_for_test(
13781378
bool h2) {
13791379
struct aws_string *host_string;
13801380
if (h2) {
1381-
host_string = configs->https_proxy_host_h2;
1381+
host_string = configs->https_proxy_host;
13821382
} else if (auth_type == AWS_HPAT_BASIC) {
13831383
host_string = configs->http_proxy_basic_host;
13841384
} else if (proxy_test_type == TUNNELING_DOUBLE_TLS) {

tests/test_stream_manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ TEST_CASE(h2_sm_acquire_stream_multiple_connections) {
12291229
TEST_CASE(h2_sm_close_connection_on_server_error) {
12301230
(void)ctx;
12311231
/* server that will return 500 status code all the time. */
1232-
struct aws_byte_cursor uri_cursor = aws_byte_cursor_from_c_str("https://httpbin.org/status/500");
1232+
struct aws_byte_cursor uri_cursor = aws_byte_cursor_from_c_str("https://postman-echo.com/status/500");
12331233
struct sm_tester_options options = {
12341234
.max_connections = 1,
12351235
.max_concurrent_streams_per_connection = 10,

0 commit comments

Comments
 (0)