summaryrefslogtreecommitdiff
path: root/integration-cli/docker_cli_pull_trusted_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Pull, Pull-A, and Build will only pull tags from the targets role or the ↵cyli2016-03-211-8/+64
| | | | | | | | targets/releases role. It will ignore tags in all other delegation roles. Signed-off-by: cyli <cyli@twistedmatrix.com>
* Add test for targets/releases preference when pullingRiyaz Faizullabhoy2016-03-211-0/+53
| | | | Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
* Vendor in notary v0.2.0Riyaz Faizullabhoy2016-02-251-4/+7
| | | | Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
* Assert error in body of function `inspectField*`Zhang Wei2016-01-291-6/+4
| | | | | | | | | 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-1/+1
| | | | | | | | | 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 #19170 from aaronlehmann/delete-prune-digestsDavid Calavera2016-01-121-0/+53
|\ | | | | Prune digest references when deleting by tag
| * Prune digest references when deleting by tagAaron Lehmann2016-01-121-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When pulling an image with content trust enabled, two references are created: a digest reference and a tag reference. Deleting by tag wouldn't actually remove the image, because the digest reference keeps it alive. This change modifies the rmi logic so that digest references don't keep an image alive. If the last tag referencing a given image is deleted, any digest references to it will be removed as well, so the image can actually get deleted. This fixes the usability problem with deletions when content trust is in use, so something like "docker pull busybox; docker rmi busybox" will work as expected. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.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>
* "Assert change"GoBella2015-11-171-97/+34
| | | | Signed-off-by: GoBella <caili_welcome@163.com>
* Fix text not matching the actual testsMiloslav Trmač2015-09-291-8/+7
| | | | | | | | Also fixes a typo in image name. Fixes #16648 Signed-off-by: Miloslav Trmač <mitr@redhat.com>
* Ignore ping errors in notary repository setupDerek McGowan2015-09-141-0/+41
| | | | | | | Notary is capable of acting in offline mode, making use of cache TUF data. When ping is not successful, notary should still be attempted without error. Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
* Update image pull testsArnaud Porterie2015-09-031-0/+225
Update and migrate existing tests to the `DockerHubPullSuite`. Most tests were preserved, but refactored and made more exhaustive. One test was deliberately removed (`TestPullVerified`) as it is unreliable and that the feature was obsoleted by content trust. Move all trust related tests to `docker_cli_pull_trusted_test.go`. Move tests depending on a local registry to `docker_cli_pull_local_test.go`. Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>