Skip to content

Testing:'pawsapp' user does not have write access to /app and children #317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
c-simpson opened this issue May 25, 2021 · 1 comment · Fixed by #441
Closed

Testing:'pawsapp' user does not have write access to /app and children #317

c-simpson opened this issue May 25, 2021 · 1 comment · Fixed by #441
Assignees
Labels
Testing Testing-related stuff

Comments

@c-simpson
Copy link
Collaborator

c-simpson commented May 25, 2021

#314 adds a user pawsapp for running uWSGI. This causes a problem because pytest can't write test results under /app/.pytest_cache/v/cache which is owned by root:

drwxr-xr-x 3 root root 4096 Mar 10 20:07 .pytest_cache

For this, we could

  • change directory permissions in the Dockerfile
  • tell pytest to use a different directory (and create it in Dockerfile)
  • use config to tell pytest not to cache results (probably easiest)

Are there similar cases we might run into?

@c-simpson c-simpson added the Testing Testing-related stuff label May 25, 2021
@c-simpson c-simpson changed the title 'pawsapp' user does not have write access to /app and children Testing:'pawsapp' user does not have write access to /app and children Oct 12, 2021
@c-simpson
Copy link
Collaborator Author

c-simpson commented Oct 14, 2021

We also need to make /var/lib/server/data owned by pawsapp for logging. (#282)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing Testing-related stuff
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants