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: add tests for special IP in --add-host flag #29

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

ningziwen
Copy link
Member

@ningziwen ningziwen commented Feb 13, 2023

Signed-off-by: Ziwen Ning ningziwe@amazon.com

Issue #, if available:
runfinch/finch#209

Description of changes:
Start a server in host and try to curl it from container with --add-host test-host:host-gateway

Testing done:
make run with the change runfinch/finch#216

  • [ 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 <ningziwe@amazon.com>
Copy link
Member

@pendo324 pendo324 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests look good, but should they go into the finch e2e package for now since this won't work with regular nerdctl right now?

@ningziwen
Copy link
Member Author

Tests look good, but should they go into the finch e2e package for now since this won't work with regular nerdctl right now?

IMO, whether it goes into common-tests depends on if it is part of common container development workflow instead of Finch special thing. Special IP is in Docker now and is being added to nerdctl. So I think it is fine to add to common-tests.

Copy link
Member

@pendo324 pendo324 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully this test passes with the new (unmerged) nerdctl feature then

@ningziwen ningziwen merged commit 1fecd9f into runfinch:main Feb 13, 2023
@ningziwen ningziwen deleted the add-host branch February 13, 2023 18:28
ningziwen pushed a commit that referenced this pull request Feb 13, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.5.0](v0.4.0...v0.5.0)
(2023-02-13)


### Features

* add tests for special IP in --add-host flag
([#29](#29))
([1fecd9f](1fecd9f))

---
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 Feb 13, 2023
Issue #, if available:
#209

*Description of changes:*
Support special IP `host-gateway` in `--add-host` flag. Finch will
resolve to the IP that can be used to access host from containers. It is
not configurable for now. See
[issue](#209) for more details.

*Testing done:*
unit tests and e2e tests
runfinch/common-tests#29

- [ 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 <ningziwe@amazon.com>
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.

2 participants