diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2019-08-23 08:59:47 +1000 |
---|---|---|
committer | Mark Lapierre <mlapierre@gitlab.com> | 2019-08-23 08:59:47 +1000 |
commit | 246f37bb93eedca090fe8eecf5e3aa2886c890a7 (patch) | |
tree | 2d683b0f77af3601d5ef53fb335af2f0cacd82c4 | |
parent | 314dac5c5c32c5b89470db8e80dd5eff9c627663 (diff) | |
download | gitlab-ce-qa-ml-fail-early-if-template-not-found.tar.gz |
Rename safe_url to mask_urlqa-ml-fail-early-if-template-not-found
-rw-r--r-- | qa/qa/runtime/api/request.rb | 2 | ||||
-rw-r--r-- | qa/qa/runtime/fixtures.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qa/qa/runtime/api/request.rb b/qa/qa/runtime/api/request.rb index af19187e1df..724b499d32f 100644 --- a/qa/qa/runtime/api/request.rb +++ b/qa/qa/runtime/api/request.rb @@ -12,7 +12,7 @@ module QA @session_address = Runtime::Address.new(api_client.address, request_path) end - def safe_url + def mask_url @session_address.address.sub(/private_token=.*/, "private_token=[****]") end diff --git a/qa/qa/runtime/fixtures.rb b/qa/qa/runtime/fixtures.rb index 431fd307e86..02cecffd4df 100644 --- a/qa/qa/runtime/fixtures.rb +++ b/qa/qa/runtime/fixtures.rb @@ -12,7 +12,7 @@ module QA response = get(request.url) unless response.code == HTTP_STATUS_OK - raise TemplateNotFoundError, "Template at #{request.safe_url} could not be found (#{response.code}): `#{response}`." + raise TemplateNotFoundError, "Template at #{request.mask_url} could not be found (#{response.code}): `#{response}`." end parse_body(response)[:content] |