File tree 5 files changed +15
-13
lines changed
5 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ group :development, :test do
25
25
gem 'govuk-lint'
26
26
gem 'govuk_schemas' , '~> 3.3'
27
27
gem 'jasmine-rails'
28
- gem 'pry-byebug'
29
28
end
30
29
31
30
group :development do
Original file line number Diff line number Diff line change 64
64
binding_of_caller (0.8.0 )
65
65
debug_inspector (>= 0.0.1 )
66
66
builder (3.2.3 )
67
- byebug (11.0.0 )
68
67
capybara (3.26.0 )
69
68
addressable
70
69
mini_mime (>= 0.1.3 )
198
197
ast (~> 2.4.0 )
199
198
phantomjs (2.1.1.0 )
200
199
plek (3.0.0 )
201
- pry (0.12.2 )
202
- coderay (~> 1.1.0 )
203
- method_source (~> 0.9.0 )
204
- pry-byebug (3.7.0 )
205
- byebug (~> 11.0 )
206
- pry (~> 0.10 )
207
200
public_suffix (3.1.1 )
208
201
puma (4.0.0 )
209
202
nio4r (~> 2.0 )
@@ -383,7 +376,6 @@ DEPENDENCIES
383
376
minitest-reporters
384
377
mocha
385
378
plek (~> 3.0 )
386
- pry-byebug
387
379
rack_strip_client_ip (~> 0.0.2 )
388
380
rails (~> 5.2.3 )
389
381
rails-controller-testing (~> 1.0 )
Original file line number Diff line number Diff line change @@ -12,4 +12,15 @@ def index
12
12
13
13
@paths = YAML . load_file ( "test/wraith/config.yaml" ) [ "paths" ]
14
14
end
15
+
16
+ private
17
+
18
+ helper_method :remove_secrets
19
+
20
+ def remove_secrets ( original_url )
21
+ parsed_url = URI . parse ( original_url )
22
+ original_url = original_url . gsub ( parsed_url . user , "***" ) if parsed_url . user
23
+ original_url = original_url . gsub ( parsed_url . password , "***" ) if parsed_url . password
24
+ original_url
25
+ end
15
26
end
Original file line number Diff line number Diff line change 28
28
< table >
29
29
< tr >
30
30
< td > Content store</ td >
31
- < td > <%= link_to Plek . find ( 'content-store' ) , Plek . find ( 'content-store' ) %> </ td >
31
+ < td > <%= link_to remove_secrets ( Plek . find ( 'content-store' ) ) , remove_secrets ( Plek . find ( 'content-store' ) ) %> </ td >
32
32
</ tr >
33
33
< tr >
34
34
< td > Static</ td >
35
- < td > <%= link_to Plek . find ( 'static' ) , Plek . find ( 'static' ) %> </ td >
35
+ < td > <%= link_to remove_secrets ( Plek . find ( 'static' ) ) , remove_secrets ( Plek . find ( 'static' ) ) %> </ td >
36
36
</ tr >
37
37
< tr >
38
38
< td > Search</ td >
39
- < td > <%= link_to Plek . find ( 'search' ) , Plek . find ( 'search' ) %> </ td >
39
+ < td > <%= link_to remove_secrets ( Plek . find ( 'search' ) ) , remove_secrets ( Plek . find ( 'search' ) ) %> </ td >
40
40
</ tr >
41
41
</ table >
42
42
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ bundle install
5
5
function set_env() {
6
6
export GOVUK_APP_DOMAIN=www.$1
7
7
export GOVUK_WEBSITE_ROOT=https://www.$1
8
- export PLEK_SERVICE_CONTENT_STORE_URI=${PLEK_SERVICE_CONTENT_STORE_URI-https:// www.$1 / api}
8
+ export PLEK_SERVICE_CONTENT_STORE_URI=${PLEK_SERVICE_CONTENT_STORE_URI-https:// test : bla @ www.$1 / api}
9
9
export PLEK_SERVICE_RUMMAGER_URI=${PLEK_SERVICE_RUMMAGER_URI-https:// www.$1 / api}
10
10
export PLEK_SERVICE_SEARCH_URI=${PLEK_SERVICE_SEARCH_URI-https:// www.$1 / api}
11
11
}
You can’t perform that action at this time.
0 commit comments