@@ -55,9 +55,6 @@ init_per_group(https_mutual, Config) ->
55
55
[{cert_file , list_to_binary (Cert )},
56
56
{key_file , list_to_binary (Key )},
57
57
{decrypted_key_der , KeyDer } | Config ];
58
- init_per_group (proxy , Config ) ->
59
- application :ensure_all_started (http_proxy ),
60
- Config ;
61
58
init_per_group (_ , Config ) ->
62
59
Config .
63
60
@@ -68,24 +65,12 @@ end_per_group(http, Config) ->
68
65
end_per_group (pool , Config ) ->
69
66
application :stop (meck ),
70
67
Config ;
71
- end_per_group (proxy , Config ) ->
72
- application :stop (http_proxy ),
73
- Config ;
74
68
end_per_group (_ , Config ) ->
75
69
Config .
76
70
77
- init_per_testcase (TestCase , Config )
78
- when TestCase == proxy_get orelse TestCase == proxy_post_data ->
79
- {ok , HttpProxyService } = http_proxy :start (3128 , []),
80
- [{http_proxy , HttpProxyService } | Config ];
81
71
init_per_testcase (_ , Config ) ->
82
72
Config .
83
73
84
- end_per_testcase (TestCase , Config )
85
- when TestCase == proxy_get orelse TestCase == proxy_post_data ->
86
- HttpProxyService = ? config (http_proxy , Config ),
87
- ok = http_proxy :stop (HttpProxyService ),
88
- proplists :delete (http_proxy , Config );
89
74
end_per_testcase (_ , Config ) ->
90
75
Config .
91
76
@@ -160,9 +145,6 @@ groups() ->
160
145
badssl ]},
161
146
{https_mutual , [],
162
147
[badssl_client_cert ]},
163
- {proxy , [],
164
- [proxy_get ,
165
- proxy_post_data ]},
166
148
{session , [parallel ],
167
149
[session_new ,
168
150
session_new_bad_opts ,
@@ -183,7 +165,6 @@ all() ->
183
165
{group , pool },
184
166
{group , https },
185
167
{group , https_mutual },
186
- {group , proxy },
187
168
{group , session },
188
169
{group , port },
189
170
{group , metrics },
@@ -749,23 +730,6 @@ badssl_client_cert(Config) ->
749
730
end ,
750
731
ok .
751
732
752
- proxy_get (_ ) ->
753
- Url = <<" http://httpbin.org/get?a=%21%40%23%24%25%5E%26%2A%28%29_%2B" >>,
754
- {ok , #{status := 200 , body := Body }} =
755
- katipo :get (? POOL , Url , #{proxy => <<" http://localhost:3128" >>}),
756
- Json = jsx :decode (Body ),
757
- [{<<" a" >>, <<" !@#$%^&*()_+" >>}] = proplists :get_value (<<" args" >>, Json ).
758
-
759
- proxy_post_data (_ ) ->
760
- Url = <<" http://httpbin.org/post" >>,
761
- {ok , #{status := 200 , body := Body }} =
762
- katipo :post (? POOL , Url ,
763
- #{headers => [{<<" Content-Type" >>, <<" application/json" >>}],
764
- body => <<" !@#$%^&*()" >>,
765
- proxy => <<" http://localhost:3128" >>}),
766
- Json = jsx :decode (Body ),
767
- <<" !@#$%^&*()" >> = proplists :get_value (<<" data" >>, Json ).
768
-
769
733
% % session
770
734
771
735
session_new (_ ) ->
0 commit comments