diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-07-11 20:06:35 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-07-11 20:06:35 +0800 |
commit | 1bfc2ed633b2086b547727acc4aa0abaaea7731f (patch) | |
tree | 5ac85a8f54bd28cd2128d6429f25a8cd5748036c /features | |
parent | 2b728ed3dabcced23370b39ce256a03cf30fe86d (diff) | |
download | gitlab-ce-1bfc2ed633b2086b547727acc4aa0abaaea7731f.tar.gz |
Just remove the prefix, feedback:send-entry-via-Gitlab-Workhorse-Send-Data
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5094#note_12987385
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/project/builds/artifacts.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/features/steps/project/builds/artifacts.rb b/features/steps/project/builds/artifacts.rb index 4bc74688132..b4a32ed2e38 100644 --- a/features/steps/project/builds/artifacts.rb +++ b/features/steps/project/builds/artifacts.rb @@ -72,7 +72,8 @@ class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps expect(send_data).to start_with('artifacts-entry:') - params = JSON.parse(Base64.urlsafe_decode64(send_data[/(?<=:)(.+)/])) + base64_params = send_data.sub(/\Aartifacts\-entry:/, '') + params = JSON.parse(Base64.urlsafe_decode64(base64_params)) expect(params.keys).to eq(['Archive', 'Entry']) expect(params['Archive']).to end_with('build_artifacts.zip') |