@@ -150,7 +150,7 @@ TEST_F(ProxyEnvVarSetHttpProxyForHttpsEndpointFixture, test_config_resolution_pr
150
150
arcticdb::proto::s3_storage::Config s3_config;
151
151
s3_config.set_endpoint (" https://test.endpoint.com" );
152
152
s3_config.set_https (true );
153
- auto ret_cfg = arcticdb::storage::s3::get_s3_config (s3_config);
153
+ auto ret_cfg = arcticdb::storage::s3::get_s3_config_and_set_env_var (s3_config);
154
154
ASSERT_EQ (ret_cfg.proxyHost , " http-proxy.com" );
155
155
ASSERT_EQ (ret_cfg.proxyPort , 443 );
156
156
ASSERT_EQ (ret_cfg.proxyScheme , Aws::Http::Scheme::HTTP);
@@ -159,15 +159,15 @@ TEST_F(ProxyEnvVarSetHttpProxyForHttpsEndpointFixture, test_config_resolution_pr
159
159
TEST_F (ProxyEnvVarUpperCaseFixture, test_config_resolution_proxy) {
160
160
arcticdb::proto::s3_storage::Config s3_config_http;
161
161
s3_config_http.set_endpoint (" http://test.endpoint.com" );
162
- auto ret_cfg = arcticdb::storage::s3::get_s3_config (s3_config_http);
162
+ auto ret_cfg = arcticdb::storage::s3::get_s3_config_and_set_env_var (s3_config_http);
163
163
ASSERT_EQ (ret_cfg.proxyHost , " http-proxy-2.com" );
164
164
ASSERT_EQ (ret_cfg.proxyPort , 2222 );
165
165
ASSERT_EQ (ret_cfg.proxyScheme , Aws::Http::Scheme::HTTP);
166
166
167
167
arcticdb::proto::s3_storage::Config s3_config_https;
168
168
s3_config_https.set_endpoint (" https://test.endpoint.com" );
169
169
s3_config_https.set_https (true );
170
- ret_cfg = arcticdb::storage::s3::get_s3_config (s3_config_https);
170
+ ret_cfg = arcticdb::storage::s3::get_s3_config_and_set_env_var (s3_config_https);
171
171
ASSERT_EQ (ret_cfg.proxyHost , " https-proxy-2.com" );
172
172
ASSERT_EQ (ret_cfg.proxyPort , 2222 );
173
173
ASSERT_EQ (ret_cfg.proxyScheme , Aws::Http::Scheme::HTTPS);
@@ -177,15 +177,15 @@ TEST_F(ProxyEnvVarLowerCasePrecedenceFixture, test_config_resolution_proxy) {
177
177
SKIP_WIN (" Env vars are not case-sensitive on Windows" );
178
178
arcticdb::proto::s3_storage::Config s3_config_http;
179
179
s3_config_http.set_endpoint (" http://test.endpoint.com" );
180
- auto ret_cfg = arcticdb::storage::s3::get_s3_config (s3_config_http);
180
+ auto ret_cfg = arcticdb::storage::s3::get_s3_config_and_set_env_var (s3_config_http);
181
181
ASSERT_EQ (ret_cfg.proxyHost , " http-proxy-1.com" );
182
182
ASSERT_EQ (ret_cfg.proxyPort , 2222 );
183
183
ASSERT_EQ (ret_cfg.proxyScheme , Aws::Http::Scheme::HTTP);
184
184
185
185
arcticdb::proto::s3_storage::Config s3_config_https;
186
186
s3_config_https.set_endpoint (" https://test.endpoint.com" );
187
187
s3_config_https.set_https (true );
188
- ret_cfg = arcticdb::storage::s3::get_s3_config (s3_config_https);
188
+ ret_cfg = arcticdb::storage::s3::get_s3_config_and_set_env_var (s3_config_https);
189
189
ASSERT_EQ (ret_cfg.proxyHost , " https-proxy-1.com" );
190
190
ASSERT_EQ (ret_cfg.proxyPort , 2222 );
191
191
ASSERT_EQ (ret_cfg.proxyScheme , Aws::Http::Scheme::HTTPS);
@@ -194,7 +194,7 @@ TEST_F(ProxyEnvVarLowerCasePrecedenceFixture, test_config_resolution_proxy) {
194
194
TEST_F (NoProxyEnvVarUpperCaseFixture, test_config_resolution_proxy) {
195
195
arcticdb::proto::s3_storage::Config s3_config;
196
196
s3_config.set_endpoint (" http://test.endpoint.com" );
197
- auto ret_cfg = arcticdb::storage::s3::get_s3_config (s3_config);
197
+ auto ret_cfg = arcticdb::storage::s3::get_s3_config_and_set_env_var (s3_config);
198
198
199
199
Aws::Utils::Array<Aws::String> expected_non_proxy_hosts{1 };
200
200
expected_non_proxy_hosts[0 ] = " http://test-1.endpoint.com" ;
@@ -205,7 +205,7 @@ TEST_F(NoProxyEnvVarLowerCasePrecedenceFixture, test_config_resolution_proxy) {
205
205
SKIP_WIN (" Env vars are not case-sensitive on Windows" );
206
206
arcticdb::proto::s3_storage::Config s3_config;
207
207
s3_config.set_endpoint (" http://test.endpoint.com" );
208
- auto ret_cfg = arcticdb::storage::s3::get_s3_config (s3_config);
208
+ auto ret_cfg = arcticdb::storage::s3::get_s3_config_and_set_env_var (s3_config);
209
209
210
210
Aws::Utils::Array<Aws::String> expected_non_proxy_hosts{2 };
211
211
expected_non_proxy_hosts[0 ] = " http://test-1.endpoint.com" ;
0 commit comments