diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-18 20:02:30 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-18 20:02:30 +0000 |
commit | 41fe97390ceddf945f3d967b8fdb3de4c66b7dea (patch) | |
tree | 9c8d89a8624828992f06d892cd2f43818ff5dcc8 /qa/Rakefile | |
parent | 0804d2dc31052fb45a1efecedc8e06ce9bc32862 (diff) | |
download | gitlab-ce-41fe97390ceddf945f3d967b8fdb3de4c66b7dea.tar.gz |
Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42
Diffstat (limited to 'qa/Rakefile')
-rw-r--r-- | qa/Rakefile | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/qa/Rakefile b/qa/Rakefile index 5d8c49a399b..0a65a58e6fc 100644 --- a/qa/Rakefile +++ b/qa/Rakefile @@ -60,8 +60,25 @@ task :delete_projects do QA::Tools::DeleteProjects.new.run end -desc "Deletes resources created during E2E test runs" -task :delete_test_resources, :file_pattern do |t, args| - QA::Tools::DeleteTestResources.new(args[:file_pattern]).run +desc "Deletes test users" +task :delete_test_users, [:delete_before, :dry_run, :exclude_users] do |t, args| + QA::Tools::DeleteTestUsers.new(args).run +end + +namespace :test_resources do + desc "Deletes resources created during E2E test runs" + task :delete, [:file_pattern] do |t, args| + QA::Tools::TestResourcesHandler.new(args[:file_pattern]).run_delete + end + + desc "Upload test resources JSON files to GCS" + task :upload, [:file_pattern, :ci_project_name] do |t, args| + QA::Tools::TestResourcesHandler.new(args[:file_pattern]).upload(args[:ci_project_name]) + end + + desc "Download test resources JSON files from GCS" + task :download, [:ci_project_name] do |t, args| + QA::Tools::TestResourcesHandler.new.download(args[:ci_project_name]) + end end # rubocop:enable Rails/RakeEnvironment |