(self)
| 3160 | return [httpProxy, httpsProxy, socksProxy] |
| 3161 | |
| 3162 | def check_ws_proxy_settings(self): |
| 3163 | usedProxies = [] |
| 3164 | wsProxy = None |
| 3165 | wssProxy = None |
| 3166 | wsSocksProxy = None |
| 3167 | # ws proxy |
| 3168 | isWsProxyDefined = self.value_is_defined(self.wsProxy) |
| 3169 | is_ws_proxy_defined = self.value_is_defined(self.ws_proxy) |
| 3170 | if isWsProxyDefined or is_ws_proxy_defined: |
| 3171 | usedProxies.append('wsProxy') |
| 3172 | wsProxy = self.wsProxy if (isWsProxyDefined) else self.ws_proxy |
| 3173 | # wss proxy |
| 3174 | isWssProxyDefined = self.value_is_defined(self.wssProxy) |
| 3175 | is_wss_proxy_defined = self.value_is_defined(self.wss_proxy) |
| 3176 | if isWssProxyDefined or is_wss_proxy_defined: |
| 3177 | usedProxies.append('wssProxy') |
| 3178 | wssProxy = self.wssProxy if (isWssProxyDefined) else self.wss_proxy |
| 3179 | # ws socks proxy |
| 3180 | isWsSocksProxyDefined = self.value_is_defined(self.wsSocksProxy) |
| 3181 | is_ws_socks_proxy_defined = self.value_is_defined(self.ws_socks_proxy) |
| 3182 | if isWsSocksProxyDefined or is_ws_socks_proxy_defined: |
| 3183 | usedProxies.append('wsSocksProxy') |
| 3184 | wsSocksProxy = self.wsSocksProxy if (isWsSocksProxyDefined) else self.ws_socks_proxy |
| 3185 | # check |
| 3186 | length = len(usedProxies) |
| 3187 | if length > 1: |
| 3188 | joinedProxyNames = ','.join(usedProxies) |
| 3189 | raise InvalidProxySettings(self.id + ' you have multiple conflicting proxy settings(' + joinedProxyNames + '), please use only one from: wsProxy, wssProxy, wsSocksProxy') |
| 3190 | return [wsProxy, wssProxy, wsSocksProxy] |
| 3191 | |
| 3192 | def check_conflicting_proxies(self, proxyAgentSet, proxyUrlSet): |
| 3193 | if proxyAgentSet and proxyUrlSet: |
no test coverage detected