Comments (8)
so for now I'm monkey patching it for exactly this case (ignoring non proxy envs) with the following in my kitchen.yml:
<%
require 'oci/api_client'
module OCI
class ApiClient
def get_http_object(hostname, port)
proxy=URI.parse(ENV['http_proxy'])
Net::HTTP.new(
hostname,
port,
proxy.host,
proxy.port,
proxy.user,
proxy.password
)
end
end
end
%>
from kitchen-oci.
@ehaselwanter I agree, that logic in the get_http_object method does look a bit suspect, but we'll just have to work around it.
I think for our purposes it's entirely sensible to pull the proxy settings from the environment as a fallback. Generally more specific settings should override less specific settings, so the .kitchen.yml proxy settings (if any exist) should override the environment.
I'll try to add something over the next few days, or do feel free to submit a PR if you end up coding something yourself.
from kitchen-oci.
yeah. I guess it should work like in kitchen-ec2 (https://github.com/test-kitchen/kitchen-ec2/blob/4adaa2a297cb614218025948915527ca153c109f/lib/kitchen/driver/ec2.rb#L403) / https://github.com/test-kitchen/kitchen-ec2#http_proxy . least surprise. for now I'll stick to the patch
from kitchen-oci.
@ehaselwanter If you get a chance, could you try out version 1.3.0 in branch feature/proxy_support and in PR #9. It seems to work in my tests, so I will merge it into master if it works for you too.
from kitchen-oci.
will do and report back tomorrow
from kitchen-oci.
can verify that it works with export http=
as well as kitchen.yml config :-)
from kitchen-oci.
Great! , I will merge it. Thank you.
from kitchen-oci.
tested updated gem. works. thx :-)
from kitchen-oci.
Related Issues (18)
- Feature Request: Be able to configure IP to use HOT 3
- :sourceType and :source_type error with oci gem > 2.0.9 HOT 3
- Invalid VNIC creation parameters for network which does not allow for public IPs HOT 4
- Feature Request: Windows Support HOT 17
- Define winrm windows password HOT 3
- add ENV['USER'] to freeform tags HOT 2
- cluster_name can only be 11 characters for dbaas
- Environmentally based no_proxy variable causes nil variable error. HOT 3
- Support for user_data that is a String HOT 3
- Maximum wait time has been exceeded. HOT 2
- Why subnet_id and shape are mandatory parameters when instance_type is dbaas? HOT 1
- Create action failed with no error on debug
- Network Security Group support? HOT 1
- Support for overriding SSH private key when connecting to the remote OCI node HOT 1
- Support for override_attributes in KITCHEN_YAML HOT 1
- Feature Request: Automatically create ephermeral ssh key HOT 1
- kitchen verified failed with ssh key not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitchen-oci.