Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/Rakefile')
-rw-r--r--qa/Rakefile23
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