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

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2019-03-07 12:47:22 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-03-07 12:47:22 +0300
commit188350290fda6e4741538c1aaa47fff2d103c092 (patch)
tree946bd50b4a4cfd26cfe1d328a53787158b91e9b5
parenta0dc989efce5515029663dc31041f57475bdc6a1 (diff)
Remove script to generate AT issues
Back in the day where Gitaly was a migration project, the acceptance testing required an issue to be created. To make sure it was generated correctly a script would generate it. This change removes this script as it's not needed anymore. [ci skip]
-rwxr-xr-x_support/generate-acceptance-testing-issue47
1 files changed, 0 insertions, 47 deletions
diff --git a/_support/generate-acceptance-testing-issue b/_support/generate-acceptance-testing-issue
deleted file mode 100755
index f8d2653d8..000000000
--- a/_support/generate-acceptance-testing-issue
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'optparse'
-
-options = {}
-OptionParser.new do |opts|
- opts.banner = "Usage: #{$PROGRAM_NAME} [options]"
-
- opts.on("-c", "--conversation CONVERSATION_NUMBER", OptionParser::DecimalInteger, "Conversation Issue Number") do |conversation_issue_number|
- options['CONVERSATION_NUMBER'] = conversation_issue_number
- end
-
- opts.on("-f", "--feature-flag FEATURE_FLAG_NAME", "Feature Flag Name") do |feature_flag_name|
- feature_flag_name = feature_flag_name.gsub(/^gitaly_/, "")
- options['GITALY_FEATURE_NAME'] = "gitaly_#{feature_flag_name}"
- end
-
- opts.on("-s", "--service-name GRPC_SERVICE_NAME", "GRPC Service Name") do |service_name|
- options['GRPC_SERVICE_NAME'] = service_name
- end
-
- opts.on("-m", "--method-name GRPC_METHOD_NAME", "GRPC Method Name") do |method_name|
- options['GRPC_METHOD_NAME'] = method_name
- end
-end.parse!
-
-def prompt(text)
- puts text
- gets.chomp
-end
-
-template_file = File.join(File.dirname(__FILE__), "..", ".gitlab", "issue_templates", "Migration_Acceptance_Testing.md")
-
-options['CONVERSATION_NUMBER'] = prompt("Conversation Issue Number?") unless options['CONVERSATION_NUMBER']
-options['GITALY_FEATURE_NAME'] = prompt("Feature Flag Name? (prefix with gitaly_)") unless options['GITALY_FEATURE_NAME']
-options['GRPC_SERVICE_NAME'] = prompt("GRPC Service Name?") unless options['GRPC_SERVICE_NAME']
-options['GRPC_METHOD_NAME'] = prompt("GRPC Method Name?") unless options['GRPC_METHOD_NAME']
-
-File.open(template_file) do |file|
- file.each do |line|
- options.each do |key, value|
- line = line.gsub(key, value.to_s)
- end
-
- puts line
- end
-end