Skip to content
Snippets Groups Projects

Add low level api cookie passing

Merged Zeff Morgan requested to merge qa/zm-api-cookie-update into master
Files
3
+ 9
0
@@ -29,6 +29,15 @@ def gitlab_url
@gitlab_url ||= ENV["QA_GITLAB_URL"] || "http://127.0.0.1:3000" # default to GDK
end
def canary_value
# Safely retrieves the value of the gitlab_canary cookie if set or returns an empty hash.
#
# @return [Hash]
canary = ENV['QA_COOKIES']&.scan(/gitlab_canary=(true|false)/)&.dig(0, 0)
canary ? { gitlab_canary: canary } : {}
end
def additional_repository_storage
ENV['QA_ADDITIONAL_REPOSITORY_STORAGE']
end
Loading