summaryrefslogtreecommitdiff
path: root/spec/support/kubeclient.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-28 12:09:44 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-28 12:09:44 +0000
commitc74b7b5e4345702a1d59c72d923c3580ef157a59 (patch)
tree0d6cc261341fa36babe44e497dc26153da611b7b /spec/support/kubeclient.rb
parent0f59ad0c29c8679957c716317c842f606177f223 (diff)
downloadgitlab-ce-c74b7b5e4345702a1d59c72d923c3580ef157a59.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/kubeclient.rb')
-rw-r--r--spec/support/kubeclient.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/support/kubeclient.rb b/spec/support/kubeclient.rb
new file mode 100644
index 00000000000..56c5800c801
--- /dev/null
+++ b/spec/support/kubeclient.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+RSpec.configure do |config|
+ # Feature specs call webmock_enable_with_http_connect_on_start! by
+ # default. This is needed to prevent Kubeclient from connecting to a
+ # host before the request is stubbed.
+ config.before(:each, :kubeclient) do
+ webmock_enable!
+ end
+end