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

Enable local testing using docker #134

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Conversation

mkisielewski-arista
Copy link
Contributor

@mkisielewski-arista mkisielewski-arista commented Oct 18, 2024

Add missing files that prevented the go test from passing.
This enables local testing, including testing that uses internet and runs a production-like scenarios.
The tests can be run with:

docker run --cap-add=SYS_ADMIN  -it builder-image go test -v ./... -tags="privileged containerized"

This PR also sorts the COPY section for the builder image definition in the dockerfile. Note that this PR is based on the PR #130 which is yet to land.

Add missing files that prevented the `go test` from passing.
This enables local testing, including testing that uses internet and
runs a production-like scenarios.
The tests can be run with:
```
docker run --cap-add=SYS_ADMIN  -it builder-image go test -v ./... \
-tags="privileged containerized"
```
@aajith-arista aajith-arista merged commit 252d084 into main Oct 30, 2024
2 checks passed
@aajith-arista aajith-arista deleted the container-for-testing branch October 30, 2024 12:23
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