Commit ad4ea8b5 authored by Thong Kuah's avatar Thong Kuah

Fix Ruby 2.7 keyword warning in serverles specs

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/257438
parent 85a23bbe
...@@ -206,7 +206,7 @@ RSpec.describe Projects::Serverless::FunctionsController do ...@@ -206,7 +206,7 @@ RSpec.describe Projects::Serverless::FunctionsController do
context 'on Knative 0.5.0' do context 'on Knative 0.5.0' do
before do before do
prepare_knative_stubs(knative_05_service(knative_stub_options)) prepare_knative_stubs(knative_05_service(**knative_stub_options))
end end
include_examples 'GET #show with valid data' include_examples 'GET #show with valid data'
...@@ -214,7 +214,7 @@ RSpec.describe Projects::Serverless::FunctionsController do ...@@ -214,7 +214,7 @@ RSpec.describe Projects::Serverless::FunctionsController do
context 'on Knative 0.6.0' do context 'on Knative 0.6.0' do
before do before do
prepare_knative_stubs(knative_06_service(knative_stub_options)) prepare_knative_stubs(knative_06_service(**knative_stub_options))
end end
include_examples 'GET #show with valid data' include_examples 'GET #show with valid data'
...@@ -222,7 +222,7 @@ RSpec.describe Projects::Serverless::FunctionsController do ...@@ -222,7 +222,7 @@ RSpec.describe Projects::Serverless::FunctionsController do
context 'on Knative 0.7.0' do context 'on Knative 0.7.0' do
before do before do
prepare_knative_stubs(knative_07_service(knative_stub_options)) prepare_knative_stubs(knative_07_service(**knative_stub_options))
end end
include_examples 'GET #show with valid data' include_examples 'GET #show with valid data'
...@@ -230,7 +230,7 @@ RSpec.describe Projects::Serverless::FunctionsController do ...@@ -230,7 +230,7 @@ RSpec.describe Projects::Serverless::FunctionsController do
context 'on Knative 0.9.0' do context 'on Knative 0.9.0' do
before do before do
prepare_knative_stubs(knative_09_service(knative_stub_options)) prepare_knative_stubs(knative_09_service(**knative_stub_options))
end end
include_examples 'GET #show with valid data' include_examples 'GET #show with valid data'
...@@ -275,7 +275,7 @@ RSpec.describe Projects::Serverless::FunctionsController do ...@@ -275,7 +275,7 @@ RSpec.describe Projects::Serverless::FunctionsController do
context 'on Knative 0.5.0' do context 'on Knative 0.5.0' do
before do before do
prepare_knative_stubs(knative_05_service(knative_stub_options)) prepare_knative_stubs(knative_05_service(**knative_stub_options))
end end
include_examples 'GET #index with data' include_examples 'GET #index with data'
...@@ -283,7 +283,7 @@ RSpec.describe Projects::Serverless::FunctionsController do ...@@ -283,7 +283,7 @@ RSpec.describe Projects::Serverless::FunctionsController do
context 'on Knative 0.6.0' do context 'on Knative 0.6.0' do
before do before do
prepare_knative_stubs(knative_06_service(knative_stub_options)) prepare_knative_stubs(knative_06_service(**knative_stub_options))
end end
include_examples 'GET #index with data' include_examples 'GET #index with data'
...@@ -291,7 +291,7 @@ RSpec.describe Projects::Serverless::FunctionsController do ...@@ -291,7 +291,7 @@ RSpec.describe Projects::Serverless::FunctionsController do
context 'on Knative 0.7.0' do context 'on Knative 0.7.0' do
before do before do
prepare_knative_stubs(knative_07_service(knative_stub_options)) prepare_knative_stubs(knative_07_service(**knative_stub_options))
end end
include_examples 'GET #index with data' include_examples 'GET #index with data'
...@@ -299,7 +299,7 @@ RSpec.describe Projects::Serverless::FunctionsController do ...@@ -299,7 +299,7 @@ RSpec.describe Projects::Serverless::FunctionsController do
context 'on Knative 0.9.0' do context 'on Knative 0.9.0' do
before do before do
prepare_knative_stubs(knative_09_service(knative_stub_options)) prepare_knative_stubs(knative_09_service(**knative_stub_options))
end end
include_examples 'GET #index with data' include_examples 'GET #index with data'
......
...@@ -153,7 +153,7 @@ module KubernetesHelpers ...@@ -153,7 +153,7 @@ module KubernetesHelpers
options[:name] ||= "kubetest" options[:name] ||= "kubetest"
options[:domain] ||= "example.com" options[:domain] ||= "example.com"
options[:response] ||= kube_response(kube_knative_services_body(options)) options[:response] ||= kube_response(kube_knative_services_body(**options))
stub_kubeclient_discover(service.api_url) stub_kubeclient_discover(service.api_url)
...@@ -517,7 +517,7 @@ module KubernetesHelpers ...@@ -517,7 +517,7 @@ module KubernetesHelpers
def kube_knative_services_body(**options) def kube_knative_services_body(**options)
{ {
"kind" => "List", "kind" => "List",
"items" => [knative_09_service(options)] "items" => [knative_09_service(**options)]
} }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment