dropwhale icon indicating copy to clipboard operation
dropwhale copied to clipboard

Permission denied with PHPUnit Functional tests

Open rpsu opened this issue 8 years ago • 5 comments

It seems like there is some file perms issues preventing PHPUnit functional tests to be run totally, regardless of where they are executed (using .docker/bash.sh or .docker/phpunit.sh). Just to make sure I tested this also with Examples -module's submodule pager_example.

1) Drupal\Tests\pager_example\Functional\PagerExampleTest::testPagerExamplePage Exception: Warning: mkdir(): Permission denied Drupal\Component\PhpStorage\FileStorage->createDirectory()() (Line: 165)

I was not able to figure out what is the real reason for this, but I suspect the PHPUnit output -folder creation may fail.

phpunit_perm_issue

rpsu avatar Aug 27 '16 16:08 rpsu

Did you found out what the problem was at the end? I think we're experiencing the same issue with mkdir permission denied on test run.

alesrebec avatar Mar 29 '17 21:03 alesrebec

There's a PHPUnit output directory? o_O

If so, we should add it to the new reset.yml playbook in 2.1. It's a lot easier to make sure directories are created as expected now that I've added Ansible to the stack.

socketwench avatar Apr 02 '17 19:04 socketwench

Can you try the develop branch of Dropwhale? I added some steps to the reset playbook that creates and configures phpunit.xml.

socketwench avatar May 07 '17 17:05 socketwench

any update on this issue

nishantkumar155 avatar Nov 23 '17 14:11 nishantkumar155

I think this was fixed in Dropwhale 2.4. You might need to delete your containers do a pull, and update the dropwhale script files:

docker-compose rm -fv docker-compose pull

socketwench avatar Nov 23 '17 16:11 socketwench