summaryrefslogtreecommitdiff
path: root/integration-cli/docker_cli_create_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix docker run for 64 byte hex IDTonis Tiigi2016-03-111-0/+8
| | | | | | | | Fixes #20972 Also makes sure there is no check to registry if no image is found for the prefixed IDs. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
* validate log-opt when creating containers AGAINShijiang Wei2016-03-021-2/+4
| | | | Signed-off-by: Shijiang Wei <mountkin@gmail.com>
* validate log-opt when creating containersShijiang Wei2016-02-281-0/+8
| | | | Signed-off-by: Shijiang Wei <mountkin@gmail.com>
* Vendor in notary v0.2.0Riyaz Faizullabhoy2016-02-251-4/+8
| | | | Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
* Add a getPrefixAndSlashFromDaemonPlatform …Vincent Demeester2016-02-031-6/+2
| | | | | | … to limit code duplication in integration tests :P Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Windows CI: TestCreate* portingJohn Howard2016-02-021-14/+33
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Assert error in body of function `inspectField*`Zhang Wei2016-01-291-6/+3
| | | | | | | | | 1. Replace raw `docker inspect -f xxx` with `inspectField`, to make code cleaner and more consistent 2. assert the error in function `inspectField*` so we don't need to assert the return value of it every time, this will make inspect easier. Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
* Update integration tests with new error messages, and to use different repos ↵cyli2016-01-261-6/+7
| | | | | | | | | per test. This way we won't encounter any problems with one test using cached data from a different test. Signed-off-by: cyli <cyli@twistedmatrix.com>
* revendor notary and wrap friendlier error messagesRiyaz Faizullabhoy2016-01-141-2/+2
| | | | Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
* Merge pull request #19155 from coolljt0725/create_cwd_on_createDavid Calavera2016-01-141-0/+8
|\ | | | | Create the working directory on container creation
| * Create the working directory on container creationLei Jitang2016-01-081-0/+8
| | | | | | | | | | | | | | | | | | if create a container with -w to specify the working directory and the directory does not exist in the container rootfs, the directory will be created until the container start. It make docker export of a created container and a running container inconsistent. Signed-off-by: Lei Jitang <leijitang@huawei.com>
* | update tests and error messages, revendor notary with tagRiyaz Faizullabhoy2016-01-081-1/+1
| | | | | | | | Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
* | Notary delegation integration into dockerRiyaz Faizullabhoy2016-01-071-1/+1
|/ | | | Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
* Replace usage of pkg/nat with go-connections/nat.David Calavera2015-12-221-1/+1
| | | | Signed-off-by: David Calavera <david.calavera@gmail.com>
* Improve reference parse errorsTonis Tiigi2015-12-161-1/+1
| | | | | | Fixes #18093 Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
* Update daemon and docker core to use new content addressable storageTonis Tiigi2015-11-241-0/+36
| | | | | | | | | | | | | | | | | Add distribution package for managing pulls and pushes. This is based on the old code in the graph package, with major changes to work with the new image/layer model. Add v1 migration code. Update registry, api/*, and daemon packages to use the reference package's types where applicable. Update daemon package to use image/layer/tag stores instead of the graph package Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
* changed if else statements to c.Asserts in docker_cli_create_test.go.Zuhayr Elahi2015-11-101-151/+60
| | | | Signed-off-by: Zuhayr Elahi <elahi.zuhayr@gmail.com>
* Merge pull request #15503 from ibuildthecloud/revert-labelArnaud Porterie2015-10-121-1/+1
|\ | | | | Revert "Container don't inherit from image labels"
| * Revert "Container don't inherit from image labels"Darren Shepherd2015-08-111-1/+1
| | | | | | | | | | | | This reverts commit 79621c7728ab83292ffd94d005f10ccebfba055b. Signed-off-by: Darren Shepherd <darren@rancher.com>
* | add test-integration-cli specifics for usernsJessica Frazelle2015-10-091-1/+1
| | | | | | | | | | Signed-off-by: Jessica Frazelle <acidburn@docker.com> Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <acidburn@docker.com>
* | Add `STOPSIGNAL` instruction to dockerfiles.David Calavera2015-09-101-0/+12
| | | | | | | | | | | | This way, images creators can set the exit signal their programs use. Signed-off-by: David Calavera <david.calavera@gmail.com>
* | Windows: Get Integration CLI runningJohn Howard2015-09-041-3/+11
| | | | | | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* | integration-cli: fix printf verbs of wrong typesSoshi Katsuta2015-08-191-2/+2
|/ | | | Signed-off-by: Soshi Katsuta <katsuta_soshi@cyberagent.co.jp>
* Skip notary tests which update system clockDerek McGowan2015-07-291-0/+1
| | | | | | | Currently some notary tests change the system clock to check for expiration. Skip these tests until the code can be refactored to not rely on updating the system clock. Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
* Rename to flags and environment variables to content trustDerek McGowan2015-07-241-3/+3
| | | | | | | | 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)
* Added tests for expired snapshots and timestampsDiogo Monica2015-07-241-2/+3
| | | | Signed-off-by: Diogo Monica <diogo@docker.com>
* Add tests simulating an evil serverNathan McCauley2015-07-241-0/+72
| | | | Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
* Add build integration cli testsDerek McGowan2015-07-241-27/+17
| | | | | | | | | Clean up tests to remove duplicate code Add tests which run pull and create in an isolated configuration directory. Add build test for untrusted tag Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
* Add test for incorrect nonroot passphraseDiogo Monica2015-07-241-2/+3
| | | | | | Fix failing tests for create, push, and pull Signed-off-by: Diogo Monica <diogo@docker.com>
* Add trust tests for Docker create, run, push, and pullNathan McCauley2015-07-241-0/+114
| | | | | | Created date util function Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
* Expose new mount points structs in inspect.David Calavera2015-07-211-1/+1
| | | | | | Keep old hashes around for old api version calls. Signed-off-by: David Calavera <david.calavera@gmail.com>
* Use dockerCmd when possible (#14603)Vincent Demeester2015-07-141-90/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - integration-cli/docker_cli_attach_test.go - integration-cli/docker_cli_attach_unix_test.go - integration-cli/docker_cli_build_test.go - integration-cli/docker_cli_build_unix_test.go - integration-cli/docker_cli_by_digest_test.go - integration-cli/docker_cli_commit_test.go - integration-cli/docker_cli_config_test.go - integration-cli/docker_cli_cp_test.go - integration-cli/docker_cli_create_test.go - integration-cli/docker_cli_pause_test.go - integration-cli/docker_cli_port_test.go - integration-cli/docker_cli_port_unix_test.go - integration-cli/docker_cli_proxy_test.go - integration-cli/docker_cli_ps_test.go - integration-cli/docker_cli_pull_test.go - integration-cli/docker_cli_push_test.go - docker_api_attach_test.go - docker_api_containers_test.go - docker_api_events_test.go - docker_api_exec_resize_test.go - docker_api_exec_test.go - docker_api_images_test.go - docker_api_info_test.go Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Move /nat to /pkg/natPeter Waller2015-06-301-1/+1
| | | | | | | | | | | | | | | | | | | By convention /pkg is safe to use from outside the docker tree, for example if you're building a docker orchestrator. /nat currently doesn't have any dependencies outside of /pkg, so it seems reasonable to move it there. This rename was performed with: ``` gomvpkg -vcs_mv_cmd="git mv {{.Src}} {{.Dst}}" \ -from github.com/docker/docker/nat \ -to github.com/docker/docker/pkg/nat ``` Signed-off-by: Peter Waller <p@pwaller.net>
* Container don't inherit from image labelsArnaud Porterie2015-06-051-1/+1
| | | | | | | | | | | | | | | Labels are metadata that apply to a particular resource: image, container, maybe volumes and networks in the future. We shouldn't have containers inherit from its image labels: they are not the same obejcts, and labels cannot be interpreted in the way. It remains possible to apply metadata to an image using the LABEL Dockerfile instruction, to query them using `docker inspect <img>`, or to filter images on them using `docker images --filter <key>=<value>`. Fixes #13770. Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
* Don't check running container at create timeQiang Huang2015-05-231-0/+18
| | | | | | | | | | We should let user create container even if the container he wants join is not running, that check should be done at start time. In this case, the running check is done by getIpcContainer() when we start container. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
* Add a 'docker create' + 'docker rm' testcaseDoug Davis2015-05-211-0/+33
| | | | | | | Per @thaJeztah's comment here: https://github.com/docker/docker/pull/13367#issuecomment-104286651 I couldn't find an existing test that covered this. Signed-off-by: Doug Davis <dug@us.ibm.com>
* Implement teardown removeAllImagesAlexander Morozov2015-04-241-1/+0
| | | | Signed-off-by: Alexander Morozov <lk4d4@docker.com>
* Remove deleteAllContainers call in testAntonio Murdaca2015-04-231-7/+0
| | | | Signed-off-by: Antonio Murdaca <me@runcom.ninja>
* Use suite for integration-cliAlexander Morozov2015-04-211-85/+70
| | | | | | | It prints test name and duration for each test. Also performs deleteAllContainers after each test. Signed-off-by: Alexander Morozov <lk4d4@docker.com>
* Removed unnecessary error output from dockerCmdbobby abbott2015-04-171-1/+1
| | | | | | | | | Changed method declaration. Fixed all calls to dockerCmd method to reflect the change. resolves #12355 Signed-off-by: bobby abbott <ttobbaybbob@gmail.com>
* Move TestCreateNumberHostname to integration-cliBrian Goff2015-04-131-0/+8
| | | | Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* Remove `stripTrailingCharacters` from testsBrian Goff2015-04-061-5/+6
| | | | | | This was just an alias to `strings.TrimSpace` Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* Set labels on container createDarren Shepherd2015-03-131-0/+55
| | | | Signed-off-by: Darren Shepherd <darren@rancher.com>
* Last three tests skip on lxc.Jessica Frazelle2015-03-041-2/+3
| | | | | | | | | | Now we can scale lxc tests to all PRs. Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <princess@docker.com> (github: jfrazelle) Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <hugs@docker.com> (github: jfrazelle) Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <jess@docker.com> (github: jfrazelle)
* integ-cli: Skip tests assuming daemon/cli are on the same hostAhmet Alp Balkan2015-02-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some integration-cli tests assume daemon and cli are running on the same machine and therefore they examine side effects of executed docker commands on docker host by reading files or running other sort of commands. In case of windows/darwin CLI tests these provide little or no value and should be OK to skip. List of skipped tests: - `TestContainerNetworkMode` - `TestCpVolumePath` - `TestCreateVolumesCreated` - `TestBuildContextCleanup` - `TestBuildContextCleanupFailedBuild` - `TestLinksEtcHostsContentMatch` - `TestRmContainerWithRemovedVolume` - `TestRunModeIpcHost` - `TestRunModeIpcContainer` - `TestRunModePidHost` - `TestRunNetHost` - `TestRunDeallocatePortOnMissingIptablesRule` - `TestRunPortInUse` - `TestRunPortProxy` - `TestRunMountOrdering` - `TestRunModeHostname` - `TestRunDnsDefaultOptions` - `TestRunDnsOptionsBasedOnHostResolvConf` - `TestRunResolvconfUpdater` - `TestRunVolumesNotRecreatedOnStart` Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
* Better test cleanup with deferAhmet Alp Balkan2015-02-201-10/+12
| | | | | | | | | | | This fixes a few misuses of `deleteAllContainers()` cleanup method in integration-cli suite by moving call to the beginning of the method and guaranteeing their execution (including panics) with `defer`s. Also added some forgotten cleanup calls while I'm at it. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
* add ability to publish range of portsSrini Brahmaroutu2015-01-021-0/+99
| | | | | Closes #8899 Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
* Fix tests with old cmd function.Jessica Frazelle2014-12-031-1/+3
| | | | Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
* Initialize volumes when container is createdBrian Goff2014-11-141-0/+19
| | | | | | | | | | | Fixes #8942 Current behavior is that volumes aren't initialized until start. Volumes still need to be initialized on start since VolumesFrom and Binds can be passed in as part of HostConfig on start, however anything that's already been initialized will just be skipped as is the current behavior. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* Cleanup errorOut resp in create testJessica Frazelle2014-10-161-11/+22
| | | | Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)