diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-01-04 09:33:51 +0000 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-01-04 09:33:51 +0000 |
commit | e028d795c484dcd1030b4f6bba8f53d4e677f0b3 (patch) | |
tree | 4471dd62763aa97e21d12a2ef75fcec612ca6785 /spec/support/services_shared_context.rb | |
parent | 0e7e9e32b30bd3c310a769eaef91843b609697df (diff) | |
download | gitlab-ce-e028d795c484dcd1030b4f6bba8f53d4e677f0b3.tar.gz |
41054-Disallow creation of new Kubernetes integrations
Diffstat (limited to 'spec/support/services_shared_context.rb')
-rw-r--r-- | spec/support/services_shared_context.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/services_shared_context.rb b/spec/support/services_shared_context.rb index 7457484a932..3f1fd169b72 100644 --- a/spec/support/services_shared_context.rb +++ b/spec/support/services_shared_context.rb @@ -29,5 +29,13 @@ Service.available_services_names.each do |service| end end end + + def initialize_service(service) + service_item = project.find_or_initialize_service(service) + service_item.properties = service_attrs + service_item.active = true if service == "kubernetes" + service_item.save + service_item + end end end |