Skip to content
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

feat: Tests for bind mounts #66

Merged
merged 4 commits into from
May 26, 2023

Conversation

vsiravar
Copy link
Contributor

@vsiravar vsiravar commented May 26, 2023

Issue #, if available:

Description of changes:
Test functioning of nested bind mounts with and without $DOCKER_COMAPT set.

  1. Without $FINCH_DOCKER_COMAPT.
# fails when nested directories are mounted first followed by parent directory
finch finch run -it  -v /Users/siravara/outer/nest/://Users/siravara/outer/nest/ -v  /Users/siravara/temp_home/:/Users/siravara/outer  public.ecr.aws/amazonlinux/amazonlinux:2 sh -c "ls /Users/siravara/outer/nest/"

# passes when parent directory is mounted first followed by nested directories
finch finch run -it  -v  /Users/siravara/temp_home/:/Users/siravara/outer -v /Users/siravara/outer/nest/://Users/siravara/outer/nest/  public.ecr.aws/amazonlinux/amazonlinux:2 sh -c "ls /Users/siravara/outer/nest/"

  1. With $FINCH_DOCKER_COMAT set
# passes when nested directories are mounted first followed by parent directory
finch finch run -it  -v /Users/siravara/outer/nest/://Users/siravara/outer/nest/ -v  /Users/siravara/temp_home/:/Users/siravara/outer  public.ecr.aws/amazonlinux/amazonlinux:2 sh -c "ls /Users/siravara/outer/nest/"

# passes when parent directory is mounted first followed by nested directories
finch finch run -it  -v  /Users/siravara/temp_home/:/Users/siravara/outer -v /Users/siravara/outer/nest/://Users/siravara/outer/nest/  public.ecr.aws/amazonlinux/amazonlinux:2 sh -c "ls /Users/siravara/outer/nest/"

Testing done:
Yes locally.

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@vsiravar vsiravar requested review from pendo324 and ningziwen May 26, 2023 01:37
Signed-off-by: Vishwas Siravara <[email protected]>
tests/run.go Outdated Show resolved Hide resolved
@vsiravar vsiravar marked this pull request as ready for review May 26, 2023 16:13
@vsiravar vsiravar requested a review from ningziwen May 26, 2023 16:14
@vsiravar vsiravar merged commit 22a7f7e into runfinch:main May 26, 2023
vsiravar pushed a commit that referenced this pull request May 26, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.7.0](v0.6.5...v0.7.0)
(2023-05-26)


### Features

* Tests for bind mounts
([#66](#66))
([22a7f7e](22a7f7e))
* verify the result of finch inspect has State.Status and State.Error
([#64](#64))
([b761a7a](b761a7a))


### Build System or External Dependencies

* **deps:** bump github.com/onsi/ginkgo/v2 from 2.9.2 to 2.9.5
([#62](#62))
([0bd0901](0bd0901))
* **deps:** bump github.com/onsi/gomega from 1.27.5 to 1.27.6
([#54](#54))
([72120b5](72120b5))
* **deps:** bump github.com/onsi/gomega from 1.27.6 to 1.27.7
([#65](#65))
([590a984](590a984))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ningziwen added a commit to runfinch/finch that referenced this pull request May 26, 2023
Issue #, if available:
#418

*Description of changes:*
Sort volume args in DOCKER_COMPAT mode

*Testing done:*
Unit tests and new e2e tests.
runfinch/common-tests#66


- [ X ] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Signed-off-by: Ziwen Ning <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants