gauge-ruby 0.4.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +5 -5
  2. data/lib/code_parser.rb +52 -41
  3. data/lib/configuration.rb +37 -26
  4. data/lib/datastore.rb +6 -18
  5. data/lib/executor.rb +29 -36
  6. data/lib/gauge.rb +6 -19
  7. data/lib/gauge_messages.rb +12 -18
  8. data/lib/gauge_runtime.rb +14 -66
  9. data/lib/gauge_screenshot.rb +52 -0
  10. data/lib/log.rb +34 -28
  11. data/lib/messages_pb.rb +331 -0
  12. data/lib/method_cache.rb +21 -18
  13. data/lib/processors/cache_file_processor.rb +20 -31
  14. data/lib/processors/datastore_init_processor.rb +23 -30
  15. data/lib/processors/execute_step_request_processor.rb +11 -23
  16. data/lib/processors/execution_handler.rb +33 -33
  17. data/lib/processors/execution_hook_processors.rb +23 -36
  18. data/lib/processors/implementation_file_list_processor.rb +8 -21
  19. data/lib/processors/implementation_glob_pattern_processor.rb +15 -0
  20. data/lib/processors/kill_request_processor.rb +5 -17
  21. data/lib/processors/refactor_step_request_processor.rb +16 -28
  22. data/lib/processors/step_name_request_processor.rb +15 -30
  23. data/lib/processors/step_names_request_processor.rb +8 -22
  24. data/lib/processors/step_positions_request_processor.rb +9 -22
  25. data/lib/processors/step_validation_request_processor.rb +23 -37
  26. data/lib/processors/stub_implementation_processor.rb +10 -22
  27. data/lib/service_handlers.rb +110 -0
  28. data/lib/services_pb.rb +15 -0
  29. data/lib/services_services_pb.rb +165 -0
  30. data/lib/spec_pb.rb +272 -0
  31. data/lib/static_loader.rb +10 -22
  32. data/lib/table.rb +5 -17
  33. data/lib/util.rb +31 -44
  34. metadata +80 -21
  35. data/lib/api.pb.rb +0 -273
  36. data/lib/connector.rb +0 -45
  37. data/lib/message_processor.rb +0 -59
  38. data/lib/messages.pb.rb +0 -413
  39. data/lib/spec.pb.rb +0 -319
@@ -1,83 +1,31 @@
1
- # Copyright 2018 ThoughtWorks, Inc.
2
-
3
- # This file is part of Gauge-Ruby.
4
-
5
- # Gauge-Ruby is free software: you can redistribute it and/or modify
6
- # it under the terms of the GNU General Public License as published by
7
- # the Free Software Foundation, either version 3 of the License, or
8
- # (at your option) any later version.
9
-
10
- # Gauge-Ruby is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU General Public License for more details.
14
-
15
- # You should have received a copy of the GNU General Public License
16
- # along with Gauge-Ruby. If not, see <http://www.gnu.org/licenses/>.
17
-
1
+ =begin
2
+ * Copyright (c) ThoughtWorks, Inc.
3
+ * Licensed under the Apache License, Version 2.0
4
+ * See LICENSE.txt in the project root for license information.
5
+ =end
18
6
  require 'socket'
19
7
  require 'protocol_buffers'
8
+ require 'grpc'
20
9
 
21
- require_relative 'messages.pb'
10
+ require_relative 'messages_pb'
22
11
  require_relative 'executor'
23
12
  require_relative 'static_loader'
24
- require_relative 'connector'
25
- require_relative 'message_processor'
26
13
  require_relative 'util'
27
14
  require_relative 'log'
28
-
15
+ require_relative 'service_handlers'
29
16
 
30
17
  module Gauge
31
- # @api private
32
18
  module Runtime
33
19
  DEFAULT_IMPLEMENTATIONS_DIR_PATH = Util.get_step_implementation_dir
34
20
 
35
- def self.dispatch_messages(socket)
36
- while (!socket.eof?)
37
- len = Connector.message_length(socket)
38
- data = socket.read len
39
- message = Messages::Message.parse(data)
40
- handle_message(socket, message)
41
- if message.messageType == Messages::Message::MessageType::KillProcessRequest || message.messageType == Messages::Message::MessageType::ExecutionEnding
42
- socket.close
43
- return
44
- end
45
- end
46
- end
47
-
48
-
49
- def self.handle_message(socket, message)
50
- if !MessageProcessor.is_valid_message(message)
51
- Gauge::Log.error "Invalid message received : #{message}"
52
- execution_status_response = Messages::ExecutionStatusResponse.new(:executionResult => Messages::ProtoExecutionResult.new(:failed => true, :executionTime => 0))
53
- message = Messages::Message.new(:messageType => Messages::Message::MessageType::ExecutionStatusResponse, :messageId => message.messageId, :executionStatusResponse => execution_status_response)
54
- write_message(socket, message)
55
- else
56
- response = MessageProcessor.process_message message
57
- write_message(socket, response) if response
58
- end
59
- end
60
-
61
- def self.write_message(socket, message)
62
- serialized_message = message.to_s
63
- size = serialized_message.bytesize
64
- ProtocolBuffers::Varint.encode(socket, size)
65
- socket.write serialized_message
66
- end
67
-
68
- def self.port_from_env_variable(env_variable)
69
- port = ENV[env_variable]
70
- if port.nil?
71
- raise RuntimeError, "Could not find Env variable :#{env_variable}"
72
- end
73
- return port
74
- end
75
-
76
21
  STDOUT.sync = true
77
- GaugeLog.init
78
- Connector.make_connection
79
22
  StaticLoader.load_files(DEFAULT_IMPLEMENTATIONS_DIR_PATH)
80
- dispatch_messages(Connector.execution_socket)
23
+ GaugeLog.debug 'Starting grpc server..'
24
+ server = GRPC::RpcServer.new
25
+ port = server.add_http2_port('127.0.0.1:0', :this_port_is_insecure)
26
+ server.handle(Gauge::ExecutionHandler.new(server))
27
+ GaugeLog.info "Listening on port:#{port}"
28
+ server.run_till_terminated
81
29
  exit(0)
82
30
  end
83
31
  end
@@ -0,0 +1,52 @@
1
+ =begin
2
+ * Copyright (c) ThoughtWorks, Inc.
3
+ * Licensed under the Apache License, Version 2.0
4
+ * See LICENSE.txt in the project root for license information.
5
+ =end
6
+ require_relative './util'
7
+ module Gauge
8
+ class << self
9
+ def capture
10
+ GaugeScreenshot.instance.capture
11
+ end
12
+ end
13
+
14
+ class GaugeScreenshot
15
+ def initialize
16
+ @screenshots = []
17
+ end
18
+
19
+ def self.instance
20
+ @gauge_screenshots ||= GaugeScreenshot.new
21
+ end
22
+
23
+ def capture
24
+ @screenshots.push(capture_to_file)
25
+ end
26
+
27
+ def capture_to_file
28
+ unless Configuration.instance.screenshot_writer?
29
+ content = Configuration.instance.screengrabber.call
30
+ file_name = Util.unique_screenshot_file
31
+ File.write(file_name, content)
32
+ return File.basename(file_name)
33
+ end
34
+ Configuration.instance.screengrabber.call
35
+ end
36
+
37
+ def pending_screenshot
38
+ pending_screenshot = @screenshots
39
+ clear
40
+ pending_screenshot
41
+ end
42
+
43
+ def get
44
+ @screenshots
45
+ end
46
+
47
+ def clear
48
+ @screenshots = []
49
+ end
50
+
51
+ end
52
+ end
data/lib/log.rb CHANGED
@@ -1,33 +1,39 @@
1
- # Copyright 2018 ThoughtWorks, Inc.
2
-
3
- # This file is part of Gauge-Ruby.
4
-
5
- # Gauge-Ruby is free software: you can redistribute it and/or modify
6
- # it under the terms of the GNU General Public License as published by
7
- # the Free Software Foundation, either version 3 of the License, or
8
- # (at your option) any later version.
9
-
10
- # Gauge-Ruby is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU General Public License for more details.
14
-
15
- # You should have received a copy of the GNU General Public License
16
- # along with Gauge-Ruby. If not, see <http://www.gnu.org/licenses/>.
17
-
18
- require 'logger'
1
+ =begin
2
+ * Copyright (c) ThoughtWorks, Inc.
3
+ * Licensed under the Apache License, Version 2.0
4
+ * See LICENSE.txt in the project root for license information.
5
+ =end
6
+ require 'json'
19
7
 
20
8
  module Gauge
21
- Log = Logger.new(STDOUT)
22
9
  module GaugeLog
23
- def self.init()
24
- Log.formatter = proc do |severity, datetime, progname, msg|
25
- if ENV['IS_DAEMON']
26
- "#{datetime.strftime('%H:%M:%S.%L')} #{msg}\n"
27
- else
28
- "#{msg}\n"
29
- end
30
- end
31
- end
10
+ def self.debug(message)
11
+ self.print('debug', message)
12
+ end
13
+
14
+ def self.info(message)
15
+ self.print('info', message)
16
+ end
17
+
18
+ def self.error(message)
19
+ puts self.private_instance_methods
20
+ self.print('error', message, true)
21
+ end
22
+
23
+ def self.warning(message)
24
+ self.print('warning', message)
25
+ end
26
+
27
+ def self.fatal(message)
28
+ self.print('fatal', message, true)
29
+ Kernel.exit!(1)
30
+ end
31
+
32
+ private
33
+ def self.print(level, message, is_error=false)
34
+ stream = is_error ? STDERR : STDOUT
35
+ data = JSON.dump({"logLevel" => level, "message" => message})
36
+ stream.write "#{data}\n"
37
+ end
32
38
  end
33
39
  end
@@ -0,0 +1,331 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: messages.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'spec_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("messages.proto", :syntax => :proto3) do
9
+ add_message "gauge.messages.KillProcessRequest" do
10
+ end
11
+ add_message "gauge.messages.ExecutionStatusResponse" do
12
+ optional :executionResult, :message, 1, "gauge.messages.ProtoExecutionResult"
13
+ end
14
+ add_message "gauge.messages.ExecutionStartingRequest" do
15
+ optional :currentExecutionInfo, :message, 1, "gauge.messages.ExecutionInfo"
16
+ optional :suiteResult, :message, 2, "gauge.messages.ProtoSuiteResult"
17
+ end
18
+ add_message "gauge.messages.ExecutionEndingRequest" do
19
+ optional :currentExecutionInfo, :message, 1, "gauge.messages.ExecutionInfo"
20
+ optional :suiteResult, :message, 2, "gauge.messages.ProtoSuiteResult"
21
+ end
22
+ add_message "gauge.messages.SpecExecutionStartingRequest" do
23
+ optional :currentExecutionInfo, :message, 1, "gauge.messages.ExecutionInfo"
24
+ optional :specResult, :message, 2, "gauge.messages.ProtoSpecResult"
25
+ end
26
+ add_message "gauge.messages.SpecExecutionEndingRequest" do
27
+ optional :currentExecutionInfo, :message, 1, "gauge.messages.ExecutionInfo"
28
+ optional :specResult, :message, 2, "gauge.messages.ProtoSpecResult"
29
+ end
30
+ add_message "gauge.messages.ScenarioExecutionStartingRequest" do
31
+ optional :currentExecutionInfo, :message, 1, "gauge.messages.ExecutionInfo"
32
+ optional :scenarioResult, :message, 2, "gauge.messages.ProtoScenarioResult"
33
+ end
34
+ add_message "gauge.messages.ScenarioExecutionEndingRequest" do
35
+ optional :currentExecutionInfo, :message, 1, "gauge.messages.ExecutionInfo"
36
+ optional :scenarioResult, :message, 2, "gauge.messages.ProtoScenarioResult"
37
+ end
38
+ add_message "gauge.messages.StepExecutionStartingRequest" do
39
+ optional :currentExecutionInfo, :message, 1, "gauge.messages.ExecutionInfo"
40
+ optional :stepResult, :message, 2, "gauge.messages.ProtoStepResult"
41
+ end
42
+ add_message "gauge.messages.StepExecutionEndingRequest" do
43
+ optional :currentExecutionInfo, :message, 1, "gauge.messages.ExecutionInfo"
44
+ optional :stepResult, :message, 2, "gauge.messages.ProtoStepResult"
45
+ end
46
+ add_message "gauge.messages.ExecutionArg" do
47
+ optional :flagName, :string, 1
48
+ repeated :flagValue, :string, 2
49
+ end
50
+ add_message "gauge.messages.ExecutionInfo" do
51
+ optional :currentSpec, :message, 1, "gauge.messages.SpecInfo"
52
+ optional :currentScenario, :message, 2, "gauge.messages.ScenarioInfo"
53
+ optional :currentStep, :message, 3, "gauge.messages.StepInfo"
54
+ optional :stacktrace, :string, 4
55
+ optional :projectName, :string, 5
56
+ repeated :ExecutionArgs, :message, 6, "gauge.messages.ExecutionArg"
57
+ optional :numberOfExecutionStreams, :int32, 7
58
+ optional :runnerId, :int32, 8
59
+ end
60
+ add_message "gauge.messages.SpecInfo" do
61
+ optional :name, :string, 1
62
+ optional :fileName, :string, 2
63
+ optional :isFailed, :bool, 3
64
+ repeated :tags, :string, 4
65
+ end
66
+ add_message "gauge.messages.ScenarioInfo" do
67
+ optional :name, :string, 1
68
+ optional :isFailed, :bool, 2
69
+ repeated :tags, :string, 3
70
+ end
71
+ add_message "gauge.messages.StepInfo" do
72
+ optional :step, :message, 1, "gauge.messages.ExecuteStepRequest"
73
+ optional :isFailed, :bool, 2
74
+ optional :stackTrace, :string, 3
75
+ optional :errorMessage, :string, 4
76
+ end
77
+ add_message "gauge.messages.ExecuteStepRequest" do
78
+ optional :actualStepText, :string, 1
79
+ optional :parsedStepText, :string, 2
80
+ optional :scenarioFailing, :bool, 3
81
+ repeated :parameters, :message, 4, "gauge.messages.Parameter"
82
+ end
83
+ add_message "gauge.messages.StepValidateRequest" do
84
+ optional :stepText, :string, 1
85
+ optional :numberOfParameters, :int32, 2
86
+ optional :stepValue, :message, 3, "gauge.messages.ProtoStepValue"
87
+ end
88
+ add_message "gauge.messages.StepValidateResponse" do
89
+ optional :isValid, :bool, 1
90
+ optional :errorMessage, :string, 2
91
+ optional :errorType, :enum, 3, "gauge.messages.StepValidateResponse.ErrorType"
92
+ optional :suggestion, :string, 4
93
+ end
94
+ add_enum "gauge.messages.StepValidateResponse.ErrorType" do
95
+ value :STEP_IMPLEMENTATION_NOT_FOUND, 0
96
+ value :DUPLICATE_STEP_IMPLEMENTATION, 1
97
+ end
98
+ add_message "gauge.messages.SuiteExecutionResult" do
99
+ optional :suiteResult, :message, 1, "gauge.messages.ProtoSuiteResult"
100
+ end
101
+ add_message "gauge.messages.SuiteExecutionResultItem" do
102
+ optional :resultItem, :message, 1, "gauge.messages.ProtoItem"
103
+ end
104
+ add_message "gauge.messages.StepNamesRequest" do
105
+ end
106
+ add_message "gauge.messages.StepNamesResponse" do
107
+ repeated :steps, :string, 1
108
+ end
109
+ add_message "gauge.messages.ScenarioDataStoreInitRequest" do
110
+ end
111
+ add_message "gauge.messages.SpecDataStoreInitRequest" do
112
+ end
113
+ add_message "gauge.messages.SuiteDataStoreInitRequest" do
114
+ end
115
+ add_message "gauge.messages.ParameterPosition" do
116
+ optional :oldPosition, :int32, 1
117
+ optional :newPosition, :int32, 2
118
+ end
119
+ add_message "gauge.messages.RefactorRequest" do
120
+ optional :oldStepValue, :message, 1, "gauge.messages.ProtoStepValue"
121
+ optional :newStepValue, :message, 2, "gauge.messages.ProtoStepValue"
122
+ repeated :paramPositions, :message, 3, "gauge.messages.ParameterPosition"
123
+ optional :saveChanges, :bool, 4
124
+ end
125
+ add_message "gauge.messages.FileChanges" do
126
+ optional :fileName, :string, 1
127
+ optional :fileContent, :string, 2
128
+ repeated :diffs, :message, 3, "gauge.messages.TextDiff"
129
+ end
130
+ add_message "gauge.messages.RefactorResponse" do
131
+ optional :success, :bool, 1
132
+ optional :error, :string, 2
133
+ repeated :filesChanged, :string, 3
134
+ repeated :fileChanges, :message, 4, "gauge.messages.FileChanges"
135
+ end
136
+ add_message "gauge.messages.StepNameRequest" do
137
+ optional :stepValue, :string, 1
138
+ end
139
+ add_message "gauge.messages.StepNameResponse" do
140
+ optional :isStepPresent, :bool, 1
141
+ repeated :stepName, :string, 2
142
+ optional :hasAlias, :bool, 3
143
+ optional :fileName, :string, 4
144
+ optional :span, :message, 5, "gauge.messages.Span"
145
+ end
146
+ add_message "gauge.messages.UnsupportedMessageResponse" do
147
+ optional :message, :string, 1
148
+ end
149
+ add_message "gauge.messages.CacheFileRequest" do
150
+ optional :content, :string, 1
151
+ optional :filePath, :string, 2
152
+ optional :isClosed, :bool, 3
153
+ optional :status, :enum, 4, "gauge.messages.CacheFileRequest.FileStatus"
154
+ end
155
+ add_enum "gauge.messages.CacheFileRequest.FileStatus" do
156
+ value :CHANGED, 0
157
+ value :CLOSED, 1
158
+ value :CREATED, 2
159
+ value :DELETED, 3
160
+ value :OPENED, 4
161
+ end
162
+ add_message "gauge.messages.StepPositionsRequest" do
163
+ optional :filePath, :string, 1
164
+ end
165
+ add_message "gauge.messages.StepPositionsResponse" do
166
+ repeated :stepPositions, :message, 1, "gauge.messages.StepPositionsResponse.StepPosition"
167
+ optional :error, :string, 2
168
+ end
169
+ add_message "gauge.messages.StepPositionsResponse.StepPosition" do
170
+ optional :stepValue, :string, 1
171
+ optional :span, :message, 2, "gauge.messages.Span"
172
+ end
173
+ add_message "gauge.messages.ImplementationFileGlobPatternRequest" do
174
+ end
175
+ add_message "gauge.messages.ImplementationFileGlobPatternResponse" do
176
+ repeated :globPatterns, :string, 1
177
+ end
178
+ add_message "gauge.messages.ImplementationFileListRequest" do
179
+ end
180
+ add_message "gauge.messages.ImplementationFileListResponse" do
181
+ repeated :implementationFilePaths, :string, 1
182
+ end
183
+ add_message "gauge.messages.StubImplementationCodeRequest" do
184
+ optional :implementationFilePath, :string, 1
185
+ repeated :codes, :string, 2
186
+ end
187
+ add_message "gauge.messages.TextDiff" do
188
+ optional :span, :message, 1, "gauge.messages.Span"
189
+ optional :content, :string, 2
190
+ end
191
+ add_message "gauge.messages.FileDiff" do
192
+ optional :filePath, :string, 1
193
+ repeated :textDiffs, :message, 2, "gauge.messages.TextDiff"
194
+ end
195
+ add_message "gauge.messages.KeepAlive" do
196
+ optional :pluginId, :string, 1
197
+ end
198
+ add_message "gauge.messages.Empty" do
199
+ end
200
+ add_message "gauge.messages.Message" do
201
+ optional :messageType, :enum, 1, "gauge.messages.Message.MessageType"
202
+ optional :messageId, :int64, 2
203
+ optional :executionStartingRequest, :message, 3, "gauge.messages.ExecutionStartingRequest"
204
+ optional :specExecutionStartingRequest, :message, 4, "gauge.messages.SpecExecutionStartingRequest"
205
+ optional :specExecutionEndingRequest, :message, 5, "gauge.messages.SpecExecutionEndingRequest"
206
+ optional :scenarioExecutionStartingRequest, :message, 6, "gauge.messages.ScenarioExecutionStartingRequest"
207
+ optional :scenarioExecutionEndingRequest, :message, 7, "gauge.messages.ScenarioExecutionEndingRequest"
208
+ optional :stepExecutionStartingRequest, :message, 8, "gauge.messages.StepExecutionStartingRequest"
209
+ optional :stepExecutionEndingRequest, :message, 9, "gauge.messages.StepExecutionEndingRequest"
210
+ optional :executeStepRequest, :message, 10, "gauge.messages.ExecuteStepRequest"
211
+ optional :executionEndingRequest, :message, 11, "gauge.messages.ExecutionEndingRequest"
212
+ optional :stepValidateRequest, :message, 12, "gauge.messages.StepValidateRequest"
213
+ optional :stepValidateResponse, :message, 13, "gauge.messages.StepValidateResponse"
214
+ optional :executionStatusResponse, :message, 14, "gauge.messages.ExecutionStatusResponse"
215
+ optional :stepNamesRequest, :message, 15, "gauge.messages.StepNamesRequest"
216
+ optional :stepNamesResponse, :message, 16, "gauge.messages.StepNamesResponse"
217
+ optional :suiteExecutionResult, :message, 17, "gauge.messages.SuiteExecutionResult"
218
+ optional :killProcessRequest, :message, 18, "gauge.messages.KillProcessRequest"
219
+ optional :scenarioDataStoreInitRequest, :message, 19, "gauge.messages.ScenarioDataStoreInitRequest"
220
+ optional :specDataStoreInitRequest, :message, 20, "gauge.messages.SpecDataStoreInitRequest"
221
+ optional :suiteDataStoreInitRequest, :message, 21, "gauge.messages.SuiteDataStoreInitRequest"
222
+ optional :stepNameRequest, :message, 22, "gauge.messages.StepNameRequest"
223
+ optional :stepNameResponse, :message, 23, "gauge.messages.StepNameResponse"
224
+ optional :refactorRequest, :message, 24, "gauge.messages.RefactorRequest"
225
+ optional :refactorResponse, :message, 25, "gauge.messages.RefactorResponse"
226
+ optional :unsupportedMessageResponse, :message, 26, "gauge.messages.UnsupportedMessageResponse"
227
+ optional :cacheFileRequest, :message, 27, "gauge.messages.CacheFileRequest"
228
+ optional :stepPositionsRequest, :message, 28, "gauge.messages.StepPositionsRequest"
229
+ optional :stepPositionsResponse, :message, 29, "gauge.messages.StepPositionsResponse"
230
+ optional :implementationFileListRequest, :message, 30, "gauge.messages.ImplementationFileListRequest"
231
+ optional :implementationFileListResponse, :message, 31, "gauge.messages.ImplementationFileListResponse"
232
+ optional :stubImplementationCodeRequest, :message, 32, "gauge.messages.StubImplementationCodeRequest"
233
+ optional :fileDiff, :message, 33, "gauge.messages.FileDiff"
234
+ optional :implementationFileGlobPatternRequest, :message, 34, "gauge.messages.ImplementationFileGlobPatternRequest"
235
+ optional :implementationFileGlobPatternResponse, :message, 35, "gauge.messages.ImplementationFileGlobPatternResponse"
236
+ optional :suiteExecutionResultItem, :message, 36, "gauge.messages.SuiteExecutionResultItem"
237
+ optional :keepAlive, :message, 37, "gauge.messages.KeepAlive"
238
+ end
239
+ add_enum "gauge.messages.Message.MessageType" do
240
+ value :ExecutionStarting, 0
241
+ value :SpecExecutionStarting, 1
242
+ value :SpecExecutionEnding, 2
243
+ value :ScenarioExecutionStarting, 3
244
+ value :ScenarioExecutionEnding, 4
245
+ value :StepExecutionStarting, 5
246
+ value :StepExecutionEnding, 6
247
+ value :ExecuteStep, 7
248
+ value :ExecutionEnding, 8
249
+ value :StepValidateRequest, 9
250
+ value :StepValidateResponse, 10
251
+ value :ExecutionStatusResponse, 11
252
+ value :StepNamesRequest, 12
253
+ value :StepNamesResponse, 13
254
+ value :KillProcessRequest, 14
255
+ value :SuiteExecutionResult, 15
256
+ value :ScenarioDataStoreInit, 16
257
+ value :SpecDataStoreInit, 17
258
+ value :SuiteDataStoreInit, 18
259
+ value :StepNameRequest, 19
260
+ value :StepNameResponse, 20
261
+ value :RefactorRequest, 21
262
+ value :RefactorResponse, 22
263
+ value :UnsupportedMessageResponse, 23
264
+ value :CacheFileRequest, 24
265
+ value :StepPositionsRequest, 25
266
+ value :StepPositionsResponse, 26
267
+ value :ImplementationFileListRequest, 27
268
+ value :ImplementationFileListResponse, 28
269
+ value :StubImplementationCodeRequest, 29
270
+ value :FileDiff, 30
271
+ value :ImplementationFileGlobPatternRequest, 31
272
+ value :ImplementationFileGlobPatternResponse, 32
273
+ value :SuiteExecutionResultItem, 33
274
+ value :KeepAlive, 34
275
+ end
276
+ end
277
+ end
278
+
279
+ module Gauge
280
+ module Messages
281
+ KillProcessRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.KillProcessRequest").msgclass
282
+ ExecutionStatusResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ExecutionStatusResponse").msgclass
283
+ ExecutionStartingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ExecutionStartingRequest").msgclass
284
+ ExecutionEndingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ExecutionEndingRequest").msgclass
285
+ SpecExecutionStartingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.SpecExecutionStartingRequest").msgclass
286
+ SpecExecutionEndingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.SpecExecutionEndingRequest").msgclass
287
+ ScenarioExecutionStartingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ScenarioExecutionStartingRequest").msgclass
288
+ ScenarioExecutionEndingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ScenarioExecutionEndingRequest").msgclass
289
+ StepExecutionStartingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepExecutionStartingRequest").msgclass
290
+ StepExecutionEndingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepExecutionEndingRequest").msgclass
291
+ ExecutionArg = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ExecutionArg").msgclass
292
+ ExecutionInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ExecutionInfo").msgclass
293
+ SpecInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.SpecInfo").msgclass
294
+ ScenarioInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ScenarioInfo").msgclass
295
+ StepInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepInfo").msgclass
296
+ ExecuteStepRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ExecuteStepRequest").msgclass
297
+ StepValidateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepValidateRequest").msgclass
298
+ StepValidateResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepValidateResponse").msgclass
299
+ StepValidateResponse::ErrorType = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepValidateResponse.ErrorType").enummodule
300
+ SuiteExecutionResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.SuiteExecutionResult").msgclass
301
+ SuiteExecutionResultItem = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.SuiteExecutionResultItem").msgclass
302
+ StepNamesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepNamesRequest").msgclass
303
+ StepNamesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepNamesResponse").msgclass
304
+ ScenarioDataStoreInitRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ScenarioDataStoreInitRequest").msgclass
305
+ SpecDataStoreInitRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.SpecDataStoreInitRequest").msgclass
306
+ SuiteDataStoreInitRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.SuiteDataStoreInitRequest").msgclass
307
+ ParameterPosition = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ParameterPosition").msgclass
308
+ RefactorRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.RefactorRequest").msgclass
309
+ FileChanges = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.FileChanges").msgclass
310
+ RefactorResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.RefactorResponse").msgclass
311
+ StepNameRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepNameRequest").msgclass
312
+ StepNameResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepNameResponse").msgclass
313
+ UnsupportedMessageResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.UnsupportedMessageResponse").msgclass
314
+ CacheFileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.CacheFileRequest").msgclass
315
+ CacheFileRequest::FileStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.CacheFileRequest.FileStatus").enummodule
316
+ StepPositionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepPositionsRequest").msgclass
317
+ StepPositionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepPositionsResponse").msgclass
318
+ StepPositionsResponse::StepPosition = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StepPositionsResponse.StepPosition").msgclass
319
+ ImplementationFileGlobPatternRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ImplementationFileGlobPatternRequest").msgclass
320
+ ImplementationFileGlobPatternResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ImplementationFileGlobPatternResponse").msgclass
321
+ ImplementationFileListRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ImplementationFileListRequest").msgclass
322
+ ImplementationFileListResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ImplementationFileListResponse").msgclass
323
+ StubImplementationCodeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.StubImplementationCodeRequest").msgclass
324
+ TextDiff = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.TextDiff").msgclass
325
+ FileDiff = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.FileDiff").msgclass
326
+ KeepAlive = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.KeepAlive").msgclass
327
+ Empty = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.Empty").msgclass
328
+ Message = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.Message").msgclass
329
+ Message::MessageType = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.Message.MessageType").enummodule
330
+ end
331
+ end