Browse code

Fix 404 error in Jenkins plugin extended tests

Cesar Wong authored on 2017/01/05 00:41:14
Showing 1 changed files
... ...
@@ -227,7 +227,7 @@ func (j *JenkinsRef) WaitForContent(verificationRegEx string, verificationStatus
227 227
 // CreateItem submits XML to create a named item on the Jenkins server.
228 228
 func (j *JenkinsRef) CreateItem(name string, itemDefXML string) {
229 229
 	g.By(fmt.Sprintf("Creating new jenkins item: %s", name))
230
-	_, status, err := j.PostXML(bytes.NewBufferString(itemDefXML), "CreateItem?name=%s", name)
230
+	_, status, err := j.PostXML(bytes.NewBufferString(itemDefXML), "createItem?name=%s", name)
231 231
 	o.ExpectWithOffset(1, err).NotTo(o.HaveOccurred())
232 232
 	o.ExpectWithOffset(1, status).To(o.Equal(200))
233 233
 }