mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
integration: migrate TestAPIGetEnabledCORS to integration test
Signed-off-by: Aditya Mishra <mishraaditya675@gmail.com>
This commit is contained in:
committed by
2003Aditya
parent
a03d6bd071
commit
9fbc9d6e6d
@@ -27,15 +27,3 @@ func (s *DockerAPISuite) TestAPIOptionsRoute(c *testing.T) {
|
||||
assert.NilError(c, err)
|
||||
assert.Equal(c, resp.StatusCode, http.StatusOK)
|
||||
}
|
||||
|
||||
func (s *DockerAPISuite) TestAPIGetEnabledCORS(c *testing.T) {
|
||||
res, body, err := request.Get(testutil.GetContext(c), "/version")
|
||||
assert.NilError(c, err)
|
||||
assert.Equal(c, res.StatusCode, http.StatusOK)
|
||||
body.Close()
|
||||
// TODO: @runcom incomplete tests, why old integration tests had this headers
|
||||
// and here none of the headers below are in the response?
|
||||
// c.Log(res.Header)
|
||||
// assert.Equal(c, res.Header.Get("Access-Control-Allow-Origin"), "*")
|
||||
// assert.Equal(c, res.Header.Get("Access-Control-Allow-Headers"), "Origin, X-Requested-With, Content-Type, Accept, X-Registry-Auth")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user