Fix file api tests
Fix file api tests

Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>

LUMC/gitlabhq,NKMR6194/gitlabhq,kemenaran/gitlabhq,gopeter/gitlabhq,jrjang/gitlab-ce,yonglehou/gitlabhq,stoplightio/gitlabhq,joalmeid/gitlabhq,nmav/gitlabhq,ferdinandrosario/gitlabhq,it33/gitlabhq,rebecamendez/gitlabhq,delkyd/gitlabhq,allysonbarros/gitlabhq,LUMC/gitlabhq,TheWatcher/gitlabhq,jrjang/gitlab-ce,vjustov/gitlabhq,sekcheong/gitlabhq,cui-liqiang/gitlab-ce,ttasanen/gitlabhq,yfaizal/gitlabhq,Soullivaneuh/gitlabhq,DanielZhangQingLong/gitlabhq,tk23/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,Tyrael/gitlabhq,t-zuehlsdorff/gitlabhq,sue445/gitlabhq,ksoichiro/gitlabhq,iiet/iiet-git,folpindo/gitlabhq,vjustov/gitlabhq,michaKFromParis/sparkslab,H3Chief/gitlabhq,fgbreel/gitlabhq,openwide-java/gitlabhq,fscherwi/gitlabhq,since2014/gitlabhq,tk23/gitlabhq,OtkurBiz/gitlabhq,stanhu/gitlabhq,vjustov/gitlabhq,SVArago/gitlabhq,SVArago/gitlabhq,sonalkr132/gitlabhq,salipro4ever/gitlabhq,openwide-java/gitlabhq,MauriceMohlek/gitlabhq,fpgentil/gitlabhq,Devin001/gitlabhq,dplarson/gitlabhq,liyakun/gitlabhq,liyakun/gitlabhq,whluwit/gitlabhq,pulkit21/gitlabhq,allistera/gitlabhq,nguyen-tien-mulodo/gitlabhq,koreamic/gitlabhq,joalmeid/gitlabhq,duduribeiro/gitlabhq,liyakun/gitlabhq,salipro4ever/gitlabhq,whluwit/gitlabhq,nguyen-tien-mulodo/gitlabhq,Soullivaneuh/gitlabhq,k4zzk/gitlabhq,fantasywind/gitlabhq,copystudy/gitlabhq,iiet/iiet-git,tk23/gitlabhq,cui-liqiang/gitlab-ce,yfaizal/gitlabhq,hacsoc/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,dplarson/gitlabhq,szechyjs/gitlabhq,ttasanen/gitlabhq,dwrensha/gitlabhq,theonlydoo/gitlabhq,delkyd/gitlabhq,Razer6/gitlabhq,yonglehou/gitlabhq,H3Chief/gitlabhq,yonglehou/gitlabhq,NKMR6194/gitlabhq,TheWatcher/gitlabhq,stoplightio/gitlabhq,Datacom/gitlabhq,jaepyoung/gitlabhq,fgbreel/gitlabhq,yfaizal/gitlabhq,fscherwi/gitlabhq,liyakun/gitlabhq,michaKFromParis/gitlabhqold,axilleas/gitlabhq,Soullivaneuh/gitlabhq,fpgentil/gitlabhq,DanielZhangQingLong/gitlabhq,ferdinandrosario/gitlabhq,Devin001/gitlabhq,SVArago/gitlabhq,martijnvermaat/gitlabhq,chenrui2014/gitlabhq,yatish27/gitlabhq,stanhu/gitlabhq,folpindo/gitlabhq,stanhu/gitlabhq,shinexiao/gitlabhq,jrjang/gitlab-ce,chenrui2014/gitlabhq,michaKFromParis/gitlabhq,tk23/gitlabhq,ferdinandrosario/gitlabhq,jaepyoung/gitlabhq,pjknkda/gitlabhq,Telekom-PD/gitlabhq,copystudy/gitlabhq,Devin001/gitlabhq,hzy001/gitlabhq,mmkassem/gitlabhq,OtkurBiz/gitlabhq,dplarson/gitlabhq,NKMR6194/gitlabhq,yatish27/gitlabhq,martinma4/gitlabhq,pjknkda/gitlabhq,k4zzk/gitlabhq,htve/GitlabForChinese,stanhu/gitlabhq,Exeia/gitlabhq,TheWatcher/gitlabhq,fgbreel/gitlabhq,darkrasid/gitlabhq,screenpages/gitlabhq,Exeia/gitlabhq,daiyu/gitlab-zh,MauriceMohlek/gitlabhq,k4zzk/gitlabhq,ttasanen/gitlabhq,dwrensha/gitlabhq,dwrensha/gitlabhq,ikappas/gitlabhq,chenrui2014/gitlabhq,sue445/gitlabhq,htve/GitlabForChinese,Telekom-PD/gitlabhq,michaKFromParis/sparkslab,mr-dxdy/gitlabhq,bozaro/gitlabhq,Burick/gitlabhq,dukex/gitlabhq,duduribeiro/gitlabhq,jaepyoung/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,aaronsnyder/gitlabhq,mrb/gitlabhq,Tyrael/gitlabhq,htve/GitlabForChinese,t-zuehlsdorff/gitlabhq,rebecamendez/gitlabhq,martijnvermaat/gitlabhq,ksoichiro/gitlabhq,allysonbarros/gitlabhq,mrb/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,vjustov/gitlabhq,theonlydoo/gitlabhq,SVArago/gitlabhq,Telekom-PD/gitlabhq,ikappas/gitlabhq,hzy001/gitlabhq,OtkurBiz/gitlabhq,allistera/gitlabhq,sonalkr132/gitlabhq,ordiychen/gitlabhq,screenpages/gitlabhq,whluwit/gitlabhq,jirutka/gitlabhq,kemenaran/gitlabhq,copystudy/gitlabhq,larryli/gitlabhq,ikappas/gitlabhq,fscherwi/gitlabhq,daiyu/gitlab-zh,bozaro/gitlabhq,fpgentil/gitlabhq,salipro4ever/gitlabhq,louahola/gitlabhq,ordiychen/gitlabhq,fpgentil/gitlabhq,pulkit21/gitlabhq,OlegGirko/gitlab-ce,darkrasid/gitlabhq,bbodenmiller/gitlabhq,szechyjs/gitlabhq,stoplightio/gitlabhq,michaKFromParis/sparkslab,koreamic/gitlabhq,duduribeiro/gitlabhq,wangcan2014/gitlabhq,Burick/gitlabhq,ksoichiro/gitlabhq,stoplightio/gitlabhq,Razer6/gitlabhq,rebecamendez/gitlabhq,michaKFromParis/gitlabhqold,hzy001/gitlabhq,ttasanen/gitlabhq,NKMR6194/gitlabhq,nmav/gitlabhq,daiyu/gitlab-zh,salipro4ever/gitlabhq,allysonbarros/gitlabhq,mr-dxdy/gitlabhq,Telekom-PD/gitlabhq,michaKFromParis/gitlabhqold,michaKFromParis/gitlabhq,fscherwi/gitlabhq,sonalkr132/gitlabhq,Tyrael/gitlabhq,since2014/gitlabhq,darkrasid/gitlabhq,OlegGirko/gitlab-ce,yfaizal/gitlabhq,MauriceMohlek/gitlabhq,it33/gitlabhq,ksoichiro/gitlabhq,OlegGirko/gitlab-ce,larryli/gitlabhq,pjknkda/gitlabhq,louahola/gitlabhq,ordiychen/gitlabhq,mrb/gitlabhq,sekcheong/gitlabhq,nguyen-tien-mulodo/gitlabhq,cui-liqiang/gitlab-ce,screenpages/gitlabhq,allistera/gitlabhq,hacsoc/gitlabhq,dukex/gitlabhq,pulkit21/gitlabhq,martijnvermaat/gitlabhq,martinma4/gitlabhq,TheWatcher/gitlabhq,allysonbarros/gitlabhq,sekcheong/gitlabhq,Burick/gitlabhq,sonalkr132/gitlabhq,icedwater/gitlabhq,martinma4/gitlabhq,nmav/gitlabhq,mr-dxdy/gitlabhq,hacsoc/gitlabhq,kemenaran/gitlabhq,Exeia/gitlabhq,chenrui2014/gitlabhq,kemenaran/gitlabhq,szechyjs/gitlabhq,Razer6/gitlabhq,Razer6/gitlabhq,koreamic/gitlabhq,fgbreel/gitlabhq,louahola/gitlabhq,whluwit/gitlabhq,jrjang/gitlabhq,darkrasid/gitlabhq,jaepyoung/gitlabhq,wangcan2014/gitlabhq,icedwater/gitlabhq,martinma4/gitlabhq,koreamic/gitlabhq,pulkit21/gitlabhq,OlegGirko/gitlab-ce,larryli/gitlabhq,iiet/iiet-git,folpindo/gitlabhq,sue445/gitlabhq,WSDC-NITWarangal/gitlabhq,wangcan2014/gitlabhq,t-zuehlsdorff/gitlabhq,WSDC-NITWarangal/gitlabhq,martijnvermaat/gitlabhq,htve/GitlabForChinese,dukex/gitlabhq,mmkassem/gitlabhq,dreampet/gitlab,icedwater/gitlabhq,pjknkda/gitlabhq,H3Chief/gitlabhq,ordiychen/gitlabhq,DanielZhangQingLong/gitlabhq,michaKFromParis/gitlabhq,joalmeid/gitlabhq,bozaro/gitlabhq,Datacom/gitlabhq,fantasywind/gitlabhq,Tyrael/gitlabhq,sue445/gitlabhq,gopeter/gitlabhq,fantasywind/gitlabhq,michaKFromParis/gitlabhqold,dukex/gitlabhq,hacsoc/gitlabhq,dreampet/gitlab,openwide-java/gitlabhq,louahola/gitlabhq,WSDC-NITWarangal/gitlabhq,daiyu/gitlab-zh,cui-liqiang/gitlab-ce,jrjang/gitlab-ce,Datacom/gitlabhq,bbodenmiller/gitlabhq,jrjang/gitlabhq,duduribeiro/gitlabhq,yatish27/gitlabhq,gopeter/gitlabhq,nmav/gitlabhq,delkyd/gitlabhq,hzy001/gitlabhq,wangcan2014/gitlabhq,Soullivaneuh/gitlabhq,axilleas/gitlabhq,yonglehou/gitlabhq,since2014/gitlabhq,yatish27/gitlabhq,DanielZhangQingLong/gitlabhq,ikappas/gitlabhq,it33/gitlabhq,Burick/gitlabhq,szechyjs/gitlabhq,shinexiao/gitlabhq,screenpages/gitlabhq,k4zzk/gitlabhq,ferdinandrosario/gitlabhq,openwide-java/gitlabhq,jrjang/gitlabhq,bozaro/gitlabhq,shinexiao/gitlabhq,delkyd/gitlabhq,michaKFromParis/gitlabhq,it33/gitlabhq,rebecamendez/gitlabhq,allistera/gitlabhq,LUMC/gitlabhq,dwrensha/gitlabhq,Exeia/gitlabhq,OtkurBiz/gitlabhq,aaronsnyder/gitlabhq,dplarson/gitlabhq,since2014/gitlabhq,jrjang/gitlabhq,MauriceMohlek/gitlabhq,nguyen-tien-mulodo/gitlabhq,theonlydoo/gitlabhq,mr-dxdy/gitlabhq,Datacom/gitlabhq,bbodenmiller/gitlabhq,michaKFromParis/sparkslab,jirutka/gitlabhq,copystudy/gitlabhq,WSDC-NITWarangal/gitlabhq,mmkassem/gitlabhq,theonlydoo/gitlabhq,folpindo/gitlabhq,shinexiao/gitlabhq,H3Chief/gitlabhq,bbodenmiller/gitlabhq,icedwater/gitlabhq,aaronsnyder/gitlabhq,t-zuehlsdorff/gitlabhq,joalmeid/gitlabhq,Devin001/gitlabhq,mrb/gitlabhq,LUMC/gitlabhq,larryli/gitlabhq,gopeter/gitlabhq,aaronsnyder/gitlabhq,fantasywind/gitlabhq,sekcheong/gitlabhq