Set X-Request-ID for the default-backend, too.
This commit is contained in:
parent
ec81605cae
commit
1bef3e75b2
4 changed files with 20 additions and 11 deletions
|
|
@ -53,9 +53,11 @@ var _ = framework.IngressNginxDescribe("Annotations - custom default-backend", f
|
|||
})
|
||||
|
||||
uri := "/alma/armud"
|
||||
requestId := "something-unique"
|
||||
resp, body, errs := gorequest.New().
|
||||
Get(f.GetURL(framework.HTTP)+uri).
|
||||
Set("Host", host).
|
||||
Set("x-request-id", requestId).
|
||||
End()
|
||||
|
||||
Expect(errs).Should(BeEmpty())
|
||||
|
|
@ -64,7 +66,7 @@ var _ = framework.IngressNginxDescribe("Annotations - custom default-backend", f
|
|||
Expect(body).To(ContainSubstring("x-code=503"))
|
||||
Expect(body).To(ContainSubstring(fmt.Sprintf("x-ingress-name=%s", host)))
|
||||
Expect(body).To(ContainSubstring("x-service-name=invalid"))
|
||||
Expect(body).To(ContainSubstring(fmt.Sprintf("x-original-uri=%s", uri)))
|
||||
Expect(body).To(ContainSubstring(fmt.Sprintf("x-request-id=%s", requestId)))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue