1

I dont have erron on my test local pc . But ı have error on Gitlab CI.

Error:
/register -> 200 status code on my pc .
/register -> 500 status code on Gitlab CI

Test Code:

   public  function testRegister()
    {
        $client=static::createClient();
        $crawler = $client->request('GET', '/register');
        $status= $client->getResponse()->getStatusCode();
        $this->assertEquals(200,$status);
    }

Routing:

register:
    path: /register
    defaults: {_controller: "AppBundle:User:register"}
Burhan Yılmaz
  • 774
  • 8
  • 21

1 Answers1

0

Add the logs directory as artefact. And use when:always then you can view them in gitlab.

When you provide the logs I may can help you further.

Rufinus
  • 29,200
  • 6
  • 68
  • 84
  • thank you for comment :) ı solve it . there is 'https' in my page . This is cause ssl error. I remove it then no errors. /register -> 200 status code on Gitlab CI – Burhan Yılmaz May 30 '17 at 09:41
  • @BurhanYılmaz I came here with the same problem but I don't know how to do it. Any way you can expand your answer? – JorgeeFG Jun 11 '17 at 23:31
  • @JorgeeFG What is your server ? (ubuntu,debian,windows...). My server is debian jesie . solve -> https://stackoverflow.com/a/44265000/6741410 – Burhan Yılmaz Jun 12 '17 at 08:20
  • @BurhanYılmaz It is based on Ubuntu... this had to be a problem between composer server and gitlab, because I ran the task some hours after and it worked good. But I did find what you were talking about Artefacts – JorgeeFG Jun 12 '17 at 11:51