()
| 60 | } |
| 61 | |
| 62 | func (s *IntegrationSuite) TestHeaderInDev() { |
| 63 | mode.Set(mode.TestDev) |
| 64 | req := s.newRequest("GET", "version", "") |
| 65 | // Needs an origin to indicate that it is a CORS request |
| 66 | req.Header.Add("Origin", "some-origin") |
| 67 | |
| 68 | res, err := client.Do(req) |
| 69 | assert.Nil(s.T(), err) |
| 70 | assert.NotEmpty(s.T(), res.Header.Get("Access-Control-Allow-Origin")) |
| 71 | } |
| 72 | |
| 73 | func (s *IntegrationSuite) TestHeaderInProd() { |
| 74 | mode.Set(mode.Prod) |
nothing calls this directly
no test coverage detected