@@ -45,9 +45,9 @@ func TestImposterHandler(t *testing.T) {
4545 expectedBody string
4646 statusCode int
4747 }{
48- {"valid imposter with body" , Imposter {Request : validRequest , Response : Response {Status : http .StatusOK , ContentType : " application/json" , Body : body }}, body , http .StatusOK },
49- {"valid imposter with bodyFile" , Imposter {Request : validRequest , Response : Response {Status : http .StatusOK , ContentType : " application/json" , BodyFile : & bodyFile }}, string (expectedBodyFileData ), http .StatusOK },
50- {"valid imposter with not exists bodyFile" , Imposter {Request : validRequest , Response : Response {Status : http .StatusOK , ContentType : " application/json" , BodyFile : & bodyFileFake }}, "" , http .StatusOK },
48+ {"valid imposter with body" , Imposter {Request : validRequest , Response : Response {Status : http .StatusOK , Headers : & http. Header { "Content-Type" : [] string { " application/json"}} , Body : body }}, body , http .StatusOK },
49+ {"valid imposter with bodyFile" , Imposter {Request : validRequest , Response : Response {Status : http .StatusOK , Headers : & http. Header { "Content-Type" : [] string { " application/json"}} , BodyFile : & bodyFile }}, string (expectedBodyFileData ), http .StatusOK },
50+ {"valid imposter with not exists bodyFile" , Imposter {Request : validRequest , Response : Response {Status : http .StatusOK , Headers : & http. Header { "Content-Type" : [] string { " application/json"}} , BodyFile : & bodyFileFake }}, "" , http .StatusOK },
5151 }
5252
5353 for _ , tt := range dataTest {
0 commit comments