hudson-remote-api 0.7.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +20 -0
- data/README.md +11 -9
- data/Rakefile +10 -0
- data/fixtures/vcr_cassettes/TestHudsonBuildQueue_test_list.yml +38 -0
- data/fixtures/vcr_cassettes/TestHudsonBuild_setup.yml +407 -0
- data/fixtures/vcr_cassettes/TestHudsonBuild_test_build_info.yml +222 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_build_job_.yml +52 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_build_job_with_parameters_.yml +52 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_build_queue_info.yml +38 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_create_item_.yml +52 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_delete_job_.yml +52 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_job_build_info.yml +39 -0
- data/fixtures/vcr_cassettes/TestHudsonClient_test_job_config_info.yml +48 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_build.yml +409 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_build_with_params.yml +189 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_builds_list.yml +192 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_copy.yml +410 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_create.yml +257 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_desc_update.yml +281 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_get.yml +191 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_job_with_spaces.yml +260 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_list.yml +39 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_list_active.yml +39 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_new.yml +561 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_scm_url.yml +728 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_triggers_delete.yml +588 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_triggers_set.yml +346 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_triggers_set_using_shortcut.yml +346 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_url.yml +156 -0
- data/fixtures/vcr_cassettes/TestHudsonJob_test_wipe_out_workspace.yml +685 -0
- data/hudson-remote-api.gemspec +23 -0
- data/lib/hudson-remote-api.rb +3 -128
- data/lib/hudson-remote-api/build.rb +18 -35
- data/lib/hudson-remote-api/build_queue.rb +13 -20
- data/lib/hudson-remote-api/client.rb +179 -0
- data/lib/hudson-remote-api/hudson_xml_api.rb +61 -0
- data/lib/hudson-remote-api/job.rb +207 -345
- data/lib/hudson-remote-api/parser/build_info.rb +37 -0
- data/lib/hudson-remote-api/parser/build_queue_info.rb +19 -0
- data/lib/hudson-remote-api/parser/job_config_info.rb +99 -0
- data/lib/hudson-remote-api/parser/job_info.rb +62 -0
- data/lib/hudson-remote-api/parser/multicast.rb +28 -0
- data/lib/hudson-remote-api/parser/server_info.rb +49 -0
- data/lib/hudson-remote-api/settings.rb +31 -0
- data/lib/hudson-remote-api/version.rb +3 -0
- data/lib/hudson-remote-api/xml_writer/job_config_info.rb +113 -0
- data/test/test_helper.rb +10 -0
- data/test/test_hudson_build.rb +28 -0
- data/test/test_hudson_build_queue.rb +11 -0
- data/test/test_hudson_client.rb +65 -0
- data/test/test_hudson_job.rb +162 -0
- data/test/test_hudson_multicast.rb +9 -0
- data/test/test_hudson_settings.rb +70 -0
- metadata +71 -53
- data/lib/hudson-remote-api/config.rb +0 -46
@@ -0,0 +1,222 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8080/crumbIssuer/api/xml
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- text/xml
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
X-Jenkins:
|
24
|
+
- '1.583'
|
25
|
+
X-Jenkins-Session:
|
26
|
+
- 394516d7
|
27
|
+
Content-Type:
|
28
|
+
- application/xml;charset=UTF-8
|
29
|
+
Content-Length:
|
30
|
+
- '107'
|
31
|
+
Server:
|
32
|
+
- Jetty(8.y.z-SNAPSHOT)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: "<defaultCrumbIssuer><crumb>d6162b9f2e248ec452bad69592fb87ea</crumb><crumbRequestField>.crumb</crumbRequestField></defaultCrumbIssuer>"
|
36
|
+
http_version:
|
37
|
+
recorded_at: Fri, 07 Nov 2014 06:47:04 GMT
|
38
|
+
- request:
|
39
|
+
method: get
|
40
|
+
uri: http://localhost:8080/api/xml
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ''
|
44
|
+
headers:
|
45
|
+
Accept-Encoding:
|
46
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
47
|
+
Accept:
|
48
|
+
- "*/*"
|
49
|
+
User-Agent:
|
50
|
+
- Ruby
|
51
|
+
Content-Type:
|
52
|
+
- text/xml
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
X-Jenkins:
|
59
|
+
- '1.583'
|
60
|
+
X-Jenkins-Session:
|
61
|
+
- 394516d7
|
62
|
+
Content-Type:
|
63
|
+
- application/xml;charset=UTF-8
|
64
|
+
Content-Length:
|
65
|
+
- '325'
|
66
|
+
Server:
|
67
|
+
- Jetty(8.y.z-SNAPSHOT)
|
68
|
+
body:
|
69
|
+
encoding: UTF-8
|
70
|
+
string: "<hudson><assignedLabel></assignedLabel><mode>NORMAL</mode><nodeDescription>the
|
71
|
+
master Jenkins node</nodeDescription><nodeName></nodeName><numExecutors>2</numExecutors><job><name>build_triggers</name><url>http://localhost:8080/job/build_triggers/</url><color>notbuilt</color></job><job><name>test_job</name><url>http://localhost:8080/job/test_job/</url><color>blue</color></job><job><name>test_svn_job</name><url>http://localhost:8080/job/test_svn_job/</url><color>blue</color></job><overallLoad></overallLoad><primaryView><name>All</name><url>http://localhost:8080/</url></primaryView><quietingDown>false</quietingDown><slaveAgentPort>0</slaveAgentPort><unlabeledLoad></unlabeledLoad><useCrumbs>true</useCrumbs><useSecurity>false</useSecurity><view><name>All</name><url>http://localhost:8080/</url></view></hudson>"
|
72
|
+
http_version:
|
73
|
+
recorded_at: Fri, 07 Nov 2014 06:47:04 GMT
|
74
|
+
- request:
|
75
|
+
method: get
|
76
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
77
|
+
body:
|
78
|
+
encoding: US-ASCII
|
79
|
+
string: ''
|
80
|
+
headers:
|
81
|
+
Accept-Encoding:
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
Accept:
|
84
|
+
- "*/*"
|
85
|
+
User-Agent:
|
86
|
+
- Ruby
|
87
|
+
Content-Type:
|
88
|
+
- text/xml
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 200
|
92
|
+
message: OK
|
93
|
+
headers:
|
94
|
+
Content-Type:
|
95
|
+
- application/xml
|
96
|
+
Content-Length:
|
97
|
+
- '498'
|
98
|
+
Server:
|
99
|
+
- Jetty(8.y.z-SNAPSHOT)
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: |-
|
103
|
+
<?xml version="1.0" encoding="UTF-8"?><project>
|
104
|
+
<keepDependencies>false</keepDependencies>
|
105
|
+
<properties/>
|
106
|
+
<scm class="hudson.scm.NullSCM"/>
|
107
|
+
<canRoam>false</canRoam>
|
108
|
+
<disabled>false</disabled>
|
109
|
+
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
110
|
+
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
111
|
+
<triggers/>
|
112
|
+
<concurrentBuild>false</concurrentBuild>
|
113
|
+
<builders/>
|
114
|
+
<publishers/>
|
115
|
+
<buildWrappers/>
|
116
|
+
<description>test</description></project>
|
117
|
+
http_version:
|
118
|
+
recorded_at: Fri, 07 Nov 2014 06:47:04 GMT
|
119
|
+
- request:
|
120
|
+
method: get
|
121
|
+
uri: http://localhost:8080/job/test_job/api/xml
|
122
|
+
body:
|
123
|
+
encoding: US-ASCII
|
124
|
+
string: ''
|
125
|
+
headers:
|
126
|
+
Accept-Encoding:
|
127
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
128
|
+
Accept:
|
129
|
+
- "*/*"
|
130
|
+
User-Agent:
|
131
|
+
- Ruby
|
132
|
+
Content-Type:
|
133
|
+
- text/xml
|
134
|
+
response:
|
135
|
+
status:
|
136
|
+
code: 200
|
137
|
+
message: OK
|
138
|
+
headers:
|
139
|
+
X-Jenkins:
|
140
|
+
- '1.583'
|
141
|
+
X-Jenkins-Session:
|
142
|
+
- 394516d7
|
143
|
+
Content-Type:
|
144
|
+
- application/xml;charset=UTF-8
|
145
|
+
Content-Length:
|
146
|
+
- '385'
|
147
|
+
Server:
|
148
|
+
- Jetty(8.y.z-SNAPSHOT)
|
149
|
+
body:
|
150
|
+
encoding: UTF-8
|
151
|
+
string: "<freeStyleProject><description>test</description><displayName>test_job</displayName><name>test_job</name><url>http://localhost:8080/job/test_job/</url><buildable>true</buildable><build><number>3</number><url>http://localhost:8080/job/test_job/3/</url></build><build><number>2</number><url>http://localhost:8080/job/test_job/2/</url></build><build><number>1</number><url>http://localhost:8080/job/test_job/1/</url></build><color>blue</color><firstBuild><number>1</number><url>http://localhost:8080/job/test_job/1/</url></firstBuild><healthReport><description>Build
|
152
|
+
stability: No recent builds failed.</description><iconClassName>icon-health-80plus</iconClassName><iconUrl>health-80plus.png</iconUrl><score>100</score></healthReport><inQueue>false</inQueue><keepDependencies>false</keepDependencies><lastBuild><number>3</number><url>http://localhost:8080/job/test_job/3/</url></lastBuild><lastCompletedBuild><number>3</number><url>http://localhost:8080/job/test_job/3/</url></lastCompletedBuild><lastStableBuild><number>3</number><url>http://localhost:8080/job/test_job/3/</url></lastStableBuild><lastSuccessfulBuild><number>3</number><url>http://localhost:8080/job/test_job/3/</url></lastSuccessfulBuild><nextBuildNumber>4</nextBuildNumber><concurrentBuild>false</concurrentBuild><scm></scm></freeStyleProject>"
|
153
|
+
http_version:
|
154
|
+
recorded_at: Fri, 07 Nov 2014 06:47:04 GMT
|
155
|
+
- request:
|
156
|
+
method: get
|
157
|
+
uri: http://localhost:8080/job/test_job/3/api/xml
|
158
|
+
body:
|
159
|
+
encoding: US-ASCII
|
160
|
+
string: ''
|
161
|
+
headers:
|
162
|
+
Accept-Encoding:
|
163
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
164
|
+
Accept:
|
165
|
+
- "*/*"
|
166
|
+
User-Agent:
|
167
|
+
- Ruby
|
168
|
+
Content-Type:
|
169
|
+
- text/xml
|
170
|
+
response:
|
171
|
+
status:
|
172
|
+
code: 200
|
173
|
+
message: OK
|
174
|
+
headers:
|
175
|
+
X-Jenkins:
|
176
|
+
- '1.583'
|
177
|
+
X-Jenkins-Session:
|
178
|
+
- 394516d7
|
179
|
+
Content-Type:
|
180
|
+
- application/xml;charset=UTF-8
|
181
|
+
Content-Length:
|
182
|
+
- '296'
|
183
|
+
Server:
|
184
|
+
- Jetty(8.y.z-SNAPSHOT)
|
185
|
+
body:
|
186
|
+
encoding: UTF-8
|
187
|
+
string: "<freeStyleBuild><action><cause><shortDescription>Started by user anonymous</shortDescription><userName>anonymous</userName></cause></action><building>false</building><duration>16</duration><estimatedDuration>23</estimatedDuration><fullDisplayName>test_job
|
188
|
+
#3</fullDisplayName><id>2014-11-06_22-47-04</id><keepLog>false</keepLog><number>3</number><result>SUCCESS</result><timestamp>1415342824204</timestamp><url>http://localhost:8080/job/test_job/3/</url><builtOn></builtOn><changeSet></changeSet></freeStyleBuild>"
|
189
|
+
http_version:
|
190
|
+
recorded_at: Fri, 07 Nov 2014 06:47:04 GMT
|
191
|
+
- request:
|
192
|
+
method: get
|
193
|
+
uri: http://localhost:8080/job/test_job/build
|
194
|
+
body:
|
195
|
+
encoding: US-ASCII
|
196
|
+
string: ''
|
197
|
+
headers:
|
198
|
+
Accept-Encoding:
|
199
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
200
|
+
Accept:
|
201
|
+
- "*/*"
|
202
|
+
User-Agent:
|
203
|
+
- Ruby
|
204
|
+
Content-Type:
|
205
|
+
- text/xml
|
206
|
+
response:
|
207
|
+
status:
|
208
|
+
code: 201
|
209
|
+
message: Created
|
210
|
+
headers:
|
211
|
+
Location:
|
212
|
+
- http://localhost:8080/queue/item/18/
|
213
|
+
Content-Length:
|
214
|
+
- '0'
|
215
|
+
Server:
|
216
|
+
- Jetty(8.y.z-SNAPSHOT)
|
217
|
+
body:
|
218
|
+
encoding: UTF-8
|
219
|
+
string: ''
|
220
|
+
http_version:
|
221
|
+
recorded_at: Sat, 08 Nov 2014 22:00:19 GMT
|
222
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:8080/job/test_job/build
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: delay=0sec
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
".crumb":
|
19
|
+
- d6162b9f2e248ec452bad69592fb87ea
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 403
|
23
|
+
message: No valid crumb was included in the request
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- text/html;charset=ISO-8859-1
|
27
|
+
Cache-Control:
|
28
|
+
- must-revalidate,no-cache,no-store
|
29
|
+
Content-Length:
|
30
|
+
- '1449'
|
31
|
+
Server:
|
32
|
+
- Jetty(8.y.z-SNAPSHOT)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: "<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;
|
36
|
+
charset=ISO-8859-1\"/>\n<title>Error 403 No valid crumb was included in the
|
37
|
+
request</title>\n</head>\n<body><h2>HTTP ERROR 403</h2>\n<p>Problem accessing
|
38
|
+
/job/test_job/build. Reason:\n<pre> No valid crumb was included in the
|
39
|
+
request</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
|
40
|
+
\ \n<br/> \n<br/>
|
41
|
+
\ \n<br/> \n<br/>
|
42
|
+
\ \n<br/> \n<br/>
|
43
|
+
\ \n<br/> \n<br/>
|
44
|
+
\ \n<br/> \n<br/>
|
45
|
+
\ \n<br/> \n<br/>
|
46
|
+
\ \n<br/> \n<br/>
|
47
|
+
\ \n<br/> \n<br/>
|
48
|
+
\ \n<br/> \n<br/>
|
49
|
+
\ \n\n</body>\n</html>\n"
|
50
|
+
http_version:
|
51
|
+
recorded_at: Tue, 18 Nov 2014 06:55:19 GMT
|
52
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:8080/job/test_job/buildWithParameters
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: delay=0sec
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
".crumb":
|
19
|
+
- d6162b9f2e248ec452bad69592fb87ea
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 403
|
23
|
+
message: No valid crumb was included in the request
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- text/html;charset=ISO-8859-1
|
27
|
+
Cache-Control:
|
28
|
+
- must-revalidate,no-cache,no-store
|
29
|
+
Content-Length:
|
30
|
+
- '1463'
|
31
|
+
Server:
|
32
|
+
- Jetty(8.y.z-SNAPSHOT)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: "<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;
|
36
|
+
charset=ISO-8859-1\"/>\n<title>Error 403 No valid crumb was included in the
|
37
|
+
request</title>\n</head>\n<body><h2>HTTP ERROR 403</h2>\n<p>Problem accessing
|
38
|
+
/job/test_job/buildWithParameters. Reason:\n<pre> No valid crumb was included
|
39
|
+
in the request</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
|
40
|
+
\ \n<br/> \n<br/>
|
41
|
+
\ \n<br/> \n<br/>
|
42
|
+
\ \n<br/> \n<br/>
|
43
|
+
\ \n<br/> \n<br/>
|
44
|
+
\ \n<br/> \n<br/>
|
45
|
+
\ \n<br/> \n<br/>
|
46
|
+
\ \n<br/> \n<br/>
|
47
|
+
\ \n<br/> \n<br/>
|
48
|
+
\ \n<br/> \n<br/>
|
49
|
+
\ \n<br/> \n\n</body>\n</html>\n"
|
50
|
+
http_version:
|
51
|
+
recorded_at: Tue, 18 Nov 2014 06:55:19 GMT
|
52
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8080/queue/api/xml
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- text/xml
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
X-Jenkins:
|
24
|
+
- '1.583'
|
25
|
+
X-Jenkins-Session:
|
26
|
+
- cdced1b2
|
27
|
+
Content-Type:
|
28
|
+
- application/xml;charset=UTF-8
|
29
|
+
Content-Length:
|
30
|
+
- '30'
|
31
|
+
Server:
|
32
|
+
- Jetty(8.y.z-SNAPSHOT)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: "<queue></queue>"
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 18 Nov 2014 06:55:19 GMT
|
38
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:8080/createItem
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: name=new_test_job&mode=hudson.model.FreeStyleProject&config=%3C%3Fxml+version%3D%271.0%27+encoding%3D%27UTF-8%27%3F%3E%0A%3Cproject%3E%0A++%3Cactions%2F%3E%0A++%3Cdescription%3E%3C%2Fdescription%3E%0A++%3CkeepDependencies%3Efalse%3C%2FkeepDependencies%3E%0A++%3Cproperties%2F%3E%0A++%3Cscm+class%3D%22hudson.scm.NullSCM%22%2F%3E%0A++%3CcanRoam%3Etrue%3C%2FcanRoam%3E%0A++%3Cdisabled%3Efalse%3C%2Fdisabled%3E%0A++%3CblockBuildWhenUpstreamBuilding%3Efalse%3C%2FblockBuildWhenUpstreamBuilding%3E%0A++%3Ctriggers+class%3D%22vector%22%2F%3E%0A++%3CconcurrentBuild%3Efalse%3C%2FconcurrentBuild%3E%0A++%3Cbuilders%2F%3E%0A++%3Cpublishers%2F%3E%0A++%3CbuildWrappers%2F%3E%0A%3C%2Fproject%3E
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
".crumb":
|
19
|
+
- d6162b9f2e248ec452bad69592fb87ea
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 403
|
23
|
+
message: No valid crumb was included in the request
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- text/html;charset=ISO-8859-1
|
27
|
+
Cache-Control:
|
28
|
+
- must-revalidate,no-cache,no-store
|
29
|
+
Content-Length:
|
30
|
+
- '1441'
|
31
|
+
Server:
|
32
|
+
- Jetty(8.y.z-SNAPSHOT)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: "<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;
|
36
|
+
charset=ISO-8859-1\"/>\n<title>Error 403 No valid crumb was included in the
|
37
|
+
request</title>\n</head>\n<body><h2>HTTP ERROR 403</h2>\n<p>Problem accessing
|
38
|
+
/createItem. Reason:\n<pre> No valid crumb was included in the request</pre></p><hr
|
39
|
+
/><i><small>Powered by Jetty://</small></i><br/> \n<br/>
|
40
|
+
\ \n<br/> \n<br/>
|
41
|
+
\ \n<br/> \n<br/>
|
42
|
+
\ \n<br/> \n<br/>
|
43
|
+
\ \n<br/> \n<br/>
|
44
|
+
\ \n<br/> \n<br/>
|
45
|
+
\ \n<br/> \n<br/>
|
46
|
+
\ \n<br/> \n<br/>
|
47
|
+
\ \n<br/> \n<br/>
|
48
|
+
\ \n<br/> \n<br/>
|
49
|
+
\ \n\n</body>\n</html>\n"
|
50
|
+
http_version:
|
51
|
+
recorded_at: Tue, 18 Nov 2014 06:55:19 GMT
|
52
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:8080/job/new_test_job/doDelete
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
".crumb":
|
19
|
+
- d6162b9f2e248ec452bad69592fb87ea
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 403
|
23
|
+
message: No valid crumb was included in the request
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- text/html;charset=ISO-8859-1
|
27
|
+
Cache-Control:
|
28
|
+
- must-revalidate,no-cache,no-store
|
29
|
+
Content-Length:
|
30
|
+
- '1456'
|
31
|
+
Server:
|
32
|
+
- Jetty(8.y.z-SNAPSHOT)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: "<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;
|
36
|
+
charset=ISO-8859-1\"/>\n<title>Error 403 No valid crumb was included in the
|
37
|
+
request</title>\n</head>\n<body><h2>HTTP ERROR 403</h2>\n<p>Problem accessing
|
38
|
+
/job/new_test_job/doDelete. Reason:\n<pre> No valid crumb was included
|
39
|
+
in the request</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
|
40
|
+
\ \n<br/> \n<br/>
|
41
|
+
\ \n<br/> \n<br/>
|
42
|
+
\ \n<br/> \n<br/>
|
43
|
+
\ \n<br/> \n<br/>
|
44
|
+
\ \n<br/> \n<br/>
|
45
|
+
\ \n<br/> \n<br/>
|
46
|
+
\ \n<br/> \n<br/>
|
47
|
+
\ \n<br/> \n<br/>
|
48
|
+
\ \n<br/> \n<br/>
|
49
|
+
\ \n<br/> \n\n</body>\n</html>\n"
|
50
|
+
http_version:
|
51
|
+
recorded_at: Tue, 18 Nov 2014 06:55:19 GMT
|
52
|
+
recorded_with: VCR 2.9.3
|