rightscale_selfservice 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTU5NjZkNTljNzJjOGYxYzQwNTZmMmQ5MWE0MTVhZTJkYjYxMGVkNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWIwYzlhZDE0NjhlNjBhMTQ0YmM1Y2E0NjE4YzhlMDYzNzIyNzA4Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmJkNzEyMmVmNjcyNmNiMzU1ZDM4YzQ0YjU5Yzg2ZGE4YmNlOWZmN2E3MzRl
|
10
|
+
YzYwMmQ5OTA1NjljYWRhMWUzZWFiZWE0YTVkYjc2MmQ2Nzg1YzI4Yzg5MTVj
|
11
|
+
NWJjMGZmZWQ0MDQwYzJiYTAyMzJkZWZlZDFiMjg0N2ZhMTRmMDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDIzYzY1ZjlkNTBiN2MwN2E2MTU4NmIxZjUxYjIyZDFjMDVhYjNjM2ZlMWFl
|
14
|
+
ZDExZGZkMDJjZTc4Y2Q3MTA3YWM2ZmVhYTNmZDhmMGViODA1NzA3NjNjNTg3
|
15
|
+
MjA0YjhmNjhkYTlhMzUyMDcyODM4MmM0MmE1OTI1ZGIwNTJlYzE=
|
@@ -106,19 +106,7 @@ module RightScaleSelfService
|
|
106
106
|
end
|
107
107
|
true
|
108
108
|
when 'running'
|
109
|
-
|
110
|
-
operation_id = RightScaleSelfService::Api::Client.get_resource_id_from_href(self.api_responses[:operation_create].headers[:location])
|
111
|
-
if operation_id
|
112
|
-
self.api_responses[:operation_show] = suite.api_client.manager.operation.show(:id => operation_id)
|
113
|
-
json_str = self.api_responses[:operation_show].body
|
114
|
-
show = JSON.parse(json_str)
|
115
|
-
self.state = show['status']['summary']
|
116
|
-
end
|
117
|
-
rescue RestClient::ExceptionWithResponse => e
|
118
|
-
# TODO: Do I want to catch errors here, or let it fall through and
|
119
|
-
# let the next pump retry?
|
120
|
-
self.errors << "Failed to check operation status\n\n#{RightScaleSelfService::Api::Client.format_error(e)}"
|
121
|
-
end
|
109
|
+
get_operation_summary_set_as_state(suite,template)
|
122
110
|
when 'completed','failed'
|
123
111
|
if self.options[:state] == self.state
|
124
112
|
self.result = 'SUCCESS'
|
@@ -132,6 +120,8 @@ module RightScaleSelfService
|
|
132
120
|
end
|
133
121
|
end
|
134
122
|
false
|
123
|
+
when 'not_started'
|
124
|
+
get_operation_summary_set_as_state(suite,template)
|
135
125
|
else
|
136
126
|
end
|
137
127
|
elsif template.state == 'failed'
|
@@ -150,6 +140,26 @@ module RightScaleSelfService
|
|
150
140
|
end
|
151
141
|
end
|
152
142
|
end
|
143
|
+
|
144
|
+
private
|
145
|
+
|
146
|
+
def get_operation_summary_set_as_state(suite,template)
|
147
|
+
begin
|
148
|
+
operation_id = RightScaleSelfService::Api::Client.get_resource_id_from_href(self.api_responses[:operation_create].headers[:location])
|
149
|
+
if operation_id
|
150
|
+
self.api_responses[:operation_show] = suite.api_client.manager.operation.show(:id => operation_id)
|
151
|
+
json_str = self.api_responses[:operation_show].body
|
152
|
+
show = JSON.parse(json_str)
|
153
|
+
self.state = show['status']['summary']
|
154
|
+
end
|
155
|
+
true
|
156
|
+
rescue RestClient::ExceptionWithResponse => e
|
157
|
+
# TODO: Do I want to catch errors here, or let it fall through and
|
158
|
+
# let the next pump retry?
|
159
|
+
self.errors << "Failed to check operation status\n\n#{RightScaleSelfService::Api::Client.format_error(e)}"
|
160
|
+
false
|
161
|
+
end
|
162
|
+
end
|
153
163
|
end
|
154
164
|
end
|
155
165
|
end
|
@@ -41,7 +41,8 @@ module RightScaleSelfService
|
|
41
41
|
if template.state == "finished" && !@reported_templates.include?(template)
|
42
42
|
puts "#{template.name}: #{template.state}"
|
43
43
|
template.cases.each do |testcase|
|
44
|
-
|
44
|
+
result = @keyword_substitutions.has_key?(testcase.result) ? @keyword_substitutions[testcase.result] : testcase.result
|
45
|
+
puts " #{get_case_type_and_name(testcase)}: #{result}"
|
45
46
|
end
|
46
47
|
@reported_templates << template
|
47
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rightscale_selfservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan J. Geyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|