(t *testing.T)
| 1807 | } |
| 1808 | |
| 1809 | func TestUpdateTemplateValuesFromHTTPResp_GenericHeader(t *testing.T) { |
| 1810 | recorded := map[string]string{ |
| 1811 | "X-Request-Id": "{{.reqId}}", |
| 1812 | } |
| 1813 | live := map[string]string{ |
| 1814 | "X-Request-Id": "abc-123-def-456", |
| 1815 | } |
| 1816 | initial := map[string]interface{}{"reqId": "old-id"} |
| 1817 | |
| 1818 | changed, final := runHeaderUpdateTest(t, recorded, live, initial) |
| 1819 | assert.True(t, changed) |
| 1820 | assert.Equal(t, "abc-123-def-456", final["reqId"]) |
| 1821 | } |
| 1822 | |
| 1823 | func TestUpdateTemplateValuesFromHTTPResp_HeaderWithLiteralPrefix(t *testing.T) { |
| 1824 | recorded := map[string]string{ |
nothing calls this directly
no test coverage detected