Commit fe097579 authored by Piotr Skorupa's avatar Piotr Skorupa

Add tab to not masked query params

parent a16da3d5
...@@ -9,6 +9,7 @@ module Routing ...@@ -9,6 +9,7 @@ module Routing
sortBy sortBy
sortDesc sortDesc
state state
tab
].freeze ].freeze
def initialize(request_object, group, project) def initialize(request_object, group, project)
......
...@@ -180,7 +180,7 @@ RSpec.describe ::Routing::PseudonymizationHelper do ...@@ -180,7 +180,7 @@ RSpec.describe ::Routing::PseudonymizationHelper do
end end
context 'when some query params are not required to be masked' do context 'when some query params are not required to be masked' do
let(:masked_url) { "http://localhost/dashboard/issues?author_username=masked_author_username&scope=all&state=masked_state" } let(:masked_url) { "http://localhost/dashboard/issues?author_username=masked_author_username&scope=all&state=masked_state&tab=2" }
let(:request) do let(:request) do
double(:Request, double(:Request,
path_parameters: { path_parameters: {
...@@ -189,11 +189,11 @@ RSpec.describe ::Routing::PseudonymizationHelper do ...@@ -189,11 +189,11 @@ RSpec.describe ::Routing::PseudonymizationHelper do
}, },
protocol: 'http', protocol: 'http',
host: 'localhost', host: 'localhost',
query_string: 'author_username=root&scope=all&state=opened') query_string: 'author_username=root&scope=all&state=opened&tab=2')
end end
before do before do
stub_const('Routing::PseudonymizationHelper::MaskHelper::QUERY_PARAMS_TO_NOT_MASK', %w[scope].freeze) stub_const('Routing::PseudonymizationHelper::MaskHelper::QUERY_PARAMS_TO_NOT_MASK', %w[scope tab].freeze)
allow(helper).to receive(:request).and_return(request) allow(helper).to receive(:request).and_return(request)
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