Log message #4155374

# At Username Text
# Jul 3rd 2018, 08:58 james.phillips @tim amazing i was looking at http://crud.readthedocs.io/en/latest/listeners/related-models.html and getting confused
# Jul 3rd 2018, 08:57 tim https://crud-json-api.readthedocs.io/en/latest/api-usage-advanced/inclusion.html
# Jul 3rd 2018, 08:56 james.phillips now Im just working out how to return related models...
# Jul 3rd 2018, 08:56 james.phillips @tim thanks I was missing return $this->Crud->execute();
# Jul 3rd 2018, 08:55 tim @josbeir Btw I saw you highfived your wife :P I put my gf in the garden because she's bad luck when it comes to football. Last EK, every time she left for the bathroom or to get a drink, Belgium scored. So at 0-2 she left and we won. Glad to do my part
# Jul 3rd 2018, 08:53 slackebot4 Array ( [header] => Content-Type: application/x-www-form-urlencoded api-key: foo Connection: close User-Agent: CakePHP [method] => POST [protocol_version] => 1.1 [ignore_errors] => 1 [timeout] => 30 [max_redirects] => 0 ) ```
# Jul 3rd 2018, 08:53 slackebot4 [ssl_verify_host] => 1 [redirect] => [headers] => Array ( [Content-Type] => application/json [api-key] => foo ) ) ``` And the config of `Cake\Http\Client\Adapter\Stream` ``` [_adapter:protected] => Cake\Http\Client\Adapter\Stream Object ( [_context:protected] => Resource id #299 [_contextOptions:protected] =>
# Jul 3rd 2018, 08:53 louis Good morning ! I don’t get why `Cake\Http\Client\Adapter\Stream Object` not setting the correct Header for content type. Here is my config of Http Client : ``` [_config:protected] => Array ( [host] => [port] => [scheme] => https [timeout] => 30 [ssl_verify_peer] => 1 [ssl_verify_peer_name] => 1 [ssl_verify_depth] => 5
# Jul 3rd 2018, 08:53 neon1024 Morning
# Jul 3rd 2018, 08:51 birdy247 So I dont think it will show the output will it?
# Jul 3rd 2018, 08:48 josbeir indeed
# Jul 3rd 2018, 08:48 birdy247 debug() just gets ignored
# Jul 3rd 2018, 08:48 birdy247 like var_dump or something?
# Jul 3rd 2018, 08:47 josbeir just so that the gitlab runner triggers
# Jul 3rd 2018, 08:47 josbeir sorry for bad wording
# Jul 3rd 2018, 08:47 birdy247 i.e. run the test on prod?
# Jul 3rd 2018, 08:47 josbeir :P
# Jul 3rd 2018, 08:47 josbeir (deploy = commit)
# Jul 3rd 2018, 08:47 birdy247 deploy it?
# Jul 3rd 2018, 08:47 josbeir cant you just add some debug stuff in the failing test and deploy it to see what is happening
# Jul 3rd 2018, 08:46 birdy247 I wonder if its something to do with bootstrap.php
# Jul 3rd 2018, 08:44 josbeir maybe it expects some session var to be set, or maybe something fails in a middleware you are using
# Jul 3rd 2018, 08:44 birdy247 Basically, everything in a particularController failes
# Jul 3rd 2018, 08:43 josbeir it orchestrates your containers for you
# Jul 3rd 2018, 08:43 josbeir you can run your pipeline locally to test
# Jul 3rd 2018, 08:43 josbeir i switched to gitlab-ci just for that purpose
# Jul 3rd 2018, 08:43 josbeir yeah, thats a bitch to debug...
# Jul 3rd 2018, 08:43 birdy247 its bitbuckets pipeline
# Jul 3rd 2018, 08:43 birdy247 not that I can see
# Jul 3rd 2018, 08:43 josbeir yes i saw
# Jul 3rd 2018, 08:42 birdy247 its a integration test
# Jul 3rd 2018, 08:42 josbeir can you access the debug log of your pipeline ?
# Jul 3rd 2018, 08:42 birdy247 so make me wonder
# Jul 3rd 2018, 08:42 birdy247 all others are completely fine
# Jul 3rd 2018, 08:42 birdy247 Its just this 1 test
# Jul 3rd 2018, 08:40 josbeir and see what happens there
# Jul 3rd 2018, 08:40 josbeir if its working fine locally then you need to debug it in your pipeline
# Jul 3rd 2018, 08:40 liaogz82 I run this, gives me NULL ``` public function testCsvDownload() { $csv = $this->get('/reports/export'); $this->assertNotEmpty($csv); } ```
# Jul 3rd 2018, 08:40 birdy247 i.e. the tests run when I push to my repo
# Jul 3rd 2018, 08:39 birdy247 Yes, thats on my pipeline build
# Jul 3rd 2018, 08:39 josbeir you said: There were 6 failures: 1) App\Test\TestCase\Controller\Admin\MembersControllerTest::testAddManualYearFixedWithOneChosenExtras No location header set.