-
Notifications
You must be signed in to change notification settings - Fork 619
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
ecs_client/model, functional_tests: updated model, functional tests for adding and dropping Linux capabilities #956
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any particular reason for not combining add and drop int o a single task def and test?
@aaithal Not very particularly. Just had it that way since they(cap-add/cap-drop) are separate flags in docker run. Would you prefer it the other way? |
If we could model it in the same task def, that would be better as it'd reduce the boot strapping overhead for a new test. |
Code looks good. Can you rebase and resolve conflicts? |
8671599
to
7356faf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sharanyad I think we can merge this whenever you're ready. |
7356faf
to
93a8816
Compare
Updated the API and documentation for the new structures. Let's merge once the builds pass. |
…or adding and dropping Linux capabilities The changes include the following: - Model changes in ContainerDefinition of the form: linuxParameters: { capabilities: { add: [""], drop: [""] } } - Functional Tests that verify if the specified capability has been added to and dropped from the task's container
93a8816
to
e8be5fc
Compare
Updated API and Docs to the latest version. |
e8be5fc
to
b61365c
Compare
…mentation, change agent version required
b61365c
to
152a49c
Compare
All builds and tests pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
Model changes to Container Definition for enabling capadd and capdrop for Linux containers.
Functional tests
TODO:
Implementation details
Testing
make release
)go build -out amazon-ecs-agent.exe ./agent
)make test
) passgo test -timeout=25s ./agent/...
) passmake run-integ-tests
) pass.\scripts\run-integ-tests.ps1
) passmake run-functional-tests
) pass.\scripts\run-functional-tests.ps1
) passNew tests cover the changes: yes
Description for the changelog
Licensing
This contribution is under the terms of the Apache 2.0 License: yes