tests: copy on write checks for objectstore.Object

Verify the copy on write semantics of `objectstore.Object`, i.e.
content will only be copied at the moment a client wants to write
to `Object`. This also checks that `Object.base` works.

Modify the CI to execute the unit tests in a privileged container
because `Object.read()` works internally by bind mounting a path.
The mount operation needs at least CAP_SYS_ADMIN and overwriting
the file permissions CAP_DAC_OVERRIDE.
This commit is contained in:
Christian Kellner 2020-02-27 10:55:45 +01:00 committed by Tom Gundersen
parent 6b167abf5d
commit a2cbed0ceb
2 changed files with 58 additions and 0 deletions

View file

@ -35,6 +35,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: docker.io/library/python:3.7
options: --privileged # Needed for bind mounts in unit tests
steps:
- name: Clone repository
uses: actions/checkout@v2