summaryrefslogtreecommitdiff
path: root/integration-cli/docker_cli_help_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Support TLS remote test daemonTibor Vass2016-02-251-4/+6
| | | | | | | This will allow us to have a windows-to-linux CI, where the linux host can be anywhere, connecting with TLS. Signed-off-by: Tibor Vass <tibor@docker.com>
* Allow to set daemon and server configurations in a file.David Calavera2016-01-141-1/+1
| | | | | | | | | | | | | | | Read configuration after flags making this the priority: 1- Apply configuration from file. 2- Apply configuration from flags. Reload configuration when a signal is received, USR2 in Linux: - Reload router if the debug configuration changes. - Reload daemon labels. - Reload cluster discovery. Signed-off-by: David Calavera <david.calavera@gmail.com>
* Implemet docker update commandQiang Huang2015-12-281-1/+1
| | | | | | | It's used for updating properties of one or more containers, we only support resource configs for now. It can be extended in the future. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
* Rebase from masterLiron Levin2015-12-081-1/+1
| | | | Signed-off-by: Liron Levin <liron@twistlock.com>
* Docker authorization plug-in infrastructure enables extending the ↵Liron Levin2015-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | functionality of the Docker daemon with respect to user authorization. The infrastructure enables registering a set of external authorization plug-in. Each plug-in receives information about the user and the request and decides whether to allow or deny the request. Only in case all plug-ins allow accessing the resource the access is granted. Each plug-in operates as a separate service, and registers with Docker through general (plug-ins API) [https://blog.docker.com/2015/06/extending-docker-with-plugins/]. No Docker daemon recompilation is required in order to add / remove an authentication plug-in. Each plug-in is notified twice for each operation: 1) before the operation is performed and, 2) before the response is returned to the client. The plug-ins can modify the response that is returned to the client. The authorization depends on the authorization effort that takes place in parallel [https://github.com/docker/docker/issues/13697]. This is the official issue of the authorization effort: https://github.com/docker/docker/issues/14674 (Here)[https://github.com/rhatdan/docker-rbac] you can find an open document that discusses a default RBAC plug-in for Docker. Signed-off-by: Liron Levin <liron@twistlock.com> Added container create flow test and extended the verification for ps
* Remove defaults for flags/options that expect no valueMorgan Bauer2015-11-191-1/+1
| | | | | | | | | - isZeroValue function from upstream go - covers booleans, strings and numbers - change integration to reflect new behavior - resolves #9406 Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
* Merge pull request #16742 from runcom/10772-docker-stats-allSebastiaan van Stijn2015-11-071-0/+1
|\ | | | | Allow docker stats without arguments
| * Allow docker stats without argumentsAntonio Murdaca2015-11-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds the ability to run `docker stats` w/o arguments and get statistics for all running containers by default. Also add a new `--all` flag to list statistics for all containers (like `docker ps`). New running containers are added to the list as they show up also. Add integration tests for this new behavior. Docs updated accordingly. Fix missing stuff in man/commandline reference for `docker stats`. Signed-off-by: Antonio Murdaca <runcom@redhat.com>
* | update docker_cli_help_test.goKun Zhang2015-11-031-121/+51
|/ | | | Signed-off-by: Kun Zhang <zkazure@gmail.com>
* Fix help test comment to align with the codeDoug Davis2015-10-071-1/+1
| | | | | | | | | | | | | | | | | I disagree with #14546 that pushed the help text past 80 chars. Aside from it now making the help text look ugly on 80 char displays, which I use, one thing I like about the previous limitation is that it forced us to keep our options down to more reasonable phrases/words. For example, I think ` --disable-content-trust=true` could have been: ` --disable-trust=true` or even: ` --disable-ctrust=true` But regardless, let's at least make the comments match what the code does. Signed-off-by: Doug Davis <dug@us.ibm.com>
* Merge pull request #14626 from kunalkushwaha/add-network-cli-helpDavid Calavera2015-09-091-5/+9
|\ | | | | "docker network" missing from docker --help
| * "docker network" missing from docker --helpKunal Kushwaha2015-09-041-5/+9
| | | | | | | | | | | | | | | | | | Fixed issues related to network subcommand tests - "network" in exempted list of short help check - Condition for exact test modified to meet experimental commands - Sorting of commands done in flags_experimental Signed-off-by: Kunal Kushwaha <kunal.kushwaha@gmail.com>
* | Add --help to "docker volume inspect --help" outputDoug Davis2015-09-081-7/+25
| | | | | | | | | | | | | | | | | | Closes #16146 While in there, modified the testing infrastructure for the help text so that we can get commands with nested commands - like "volume". Signed-off-by: Doug Davis <dug@us.ibm.com>
* | Windows: Get Integration CLI runningJohn Howard2015-09-041-0/+2
|/ | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Add volume API/CLIBrian Goff2015-08-261-1/+1
| | | | Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* Rename to flags and environment variables to content trustDerek McGowan2015-07-241-1/+1
| | | | | | | | Update help line to allow 90 characters instead of 80 The trust flag pushes out the help description column wider, requiring more room to display help messages. Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
* Add and modify tests for legacy and new daemon invokationsShishir Mahajan2015-07-231-13/+25
| | | | | Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com> Signed-off-by: Tibor Vass <tibor@docker.com>
* api/client: Allow for multi-line usage helpJosh Hawn2015-06-101-1/+1
| | | | | | Subcommands can provide multiple usage synopses. Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
* Carry #11858Doug Davis2015-05-231-19/+165
| | | | | | | | | | | | | | Continues 11858 by: - Making sure the exit code is always zero when we ask for help - Making sure the exit code isn't zero when we print help on error cases - Making sure both short and long usage go to the same stream (stdout vs stderr) - Making sure all docker commands support --help - Test that all cmds send --help to stdout, exit code 0, show full usage, no blank lines at end - Test that all cmds (that support it) show short usage on bad arg to stderr, no blank line at end - Test that all cmds complain about a bad option, no blank line at end - Test that docker (w/o subcmd) does the same stuff mentioned above properly Signed-off-by: Doug Davis <dug@us.ibm.com>
* Use stderr instead of logrus for CLI error messagesDoug Davis2015-05-121-0/+29
| | | | Signed-off-by: Doug Davis <dug@us.ibm.com>
* Use suite for integration-cliAlexander Morozov2015-04-211-18/+17
| | | | | | | It prints test name and duration for each test. Also performs deleteAllContainers after each test. Signed-off-by: Alexander Morozov <lk4d4@docker.com>
* Add checking trailing space for all lines of the help outputZen Lin(Zhinan Lin)2015-03-111-1/+7
| | | | Signed-off-by: Zen Lin(Zhinan Lin) <linzhinan@huawei.com>
* Normalize the log for docker subcommand usage,Zen Lin(Zhinan Lin)2015-03-111-1/+1
| | | | | | | | | delete unecessary blank after "[OPTIONS] " and add a blank to the log between options and signature. To make the code style consistency. Signed-off-by: Zen Lin(Zhinan Lin) <linzhinan@huawei.com>
* Add the check for suffix of option in each line of help, to make sure no ↵Zen Lin(Zhinan Lin)2015-03-111-0/+5
| | | | | | extra space in it Signed-off-by: Zen Lin(Zhinan Lin) <linzhinan@huawei.com>
* Fix 'docker ps --help' so the options don't span more than one lineDoug Davis2015-03-031-2/+16
| | | | | | | | | | and add a testcase to catch this in the future. While in there I also: - removed extra periods from the few options that had them (new test) - made the --filter option consistent across all command Signed-off-by: Doug Davis <dug@us.ibm.com>
* Fix for help when $HOME is /Doug Davis2015-02-191-55/+95
| | | | | | | | estesp noticed that when $HOME is / the ~ substitutions messes up becuase it tries to replace all paths that start with "/" with "~". This fixes it so that it will only replace it when $HOME isn't "/". Signed-off-by: Doug Davis <dug@us.ibm.com>
* Shorten printed Windows paths on docker help cmdAhmet Alp Balkan2015-02-181-14/+7
| | | | | | | | | | | | | This makes use of `%USERPROFILE%` as a substitute for `~` on Windows and prints shorter strings for default cert paths etc. Also removes string escaping/quotes around default path values printed in `docker help` command as they are not really necessary and adds double backslashes (\\) on windows. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
* Make checking of help text smarterDoug Davis2015-02-061-41/+34
| | | | | | | | | | As I was reworking https://github.com/docker/docker/pull/9402 I realized that the new testcase I just added that verified all help text is within 80 characters really should be smarter and ask "docker help" for the list of commands to check instead of having a hard-coded list. This way it will catch "docker execwait" automagically once #9402 is merged. Signed-off-by: Doug Davis <dug@us.ibm.com>
* Pretty the help textDoug Davis2015-02-041-0/+104
This modifies the "docker help" text so that it is no wider than 80 chars and each description fits on one line. This will also try to use ~ when possible Added a test to make sure we don't go over 80 chars again. Added a test to make sure we use ~ Applied rules/tests to all docker commands - not just main help text Closes #10214 Signed-off-by: Doug Davis <dug@us.ibm.com>