Changelog

New features, improvements and upcoming releases in Calibre.

Subscribe to updates:

Test AgentPull Request Reviews

Pull Request Reviews: Set cookies and headers

Karolina Szczur
Karolina Szczur

Setting Cookies and Headers to either authenticate to your Sites or control the test environment has been in Calibre for some time (set via either the Test Agent or Test Profiles). Now, you can specify those settings while using Pull Request Reviews too:

1version: 2
2pullRequestReviews:
3 # Headers
4 - headers:
5 - name: X-Calibre-Test
6 value: Pull Request
7 - name: User-Agent
8 value: Calibre
9
10 # Cookies
11 - cookies:
12 - name: seen-cookie-notice
13 value: true
14 - name: uid
15 value: 1
16 domain: calibreapp.com
17 path: /
18 secure: true
19 httpOnly: true
20

This is especially useful if you’d like to set cookies and headers only for Pull Request Reviews tests (not inherited from Test Profiles settings). For example, you could set a header to signify that the test is for a Pull Request and should be safely routed to the staging infrastructure.