summaryrefslogtreecommitdiff
path: root/integration-cli/cli
Commit message (Collapse)AuthorAgeFilesLines
* integration-cli: remove cli.Build(), cli.Inspect()Sebastiaan van Stijn2022-12-281-12/+2
| | | | | | | | They were just small wrappers arround cli.Args(), and the abstraction made one wonder if they were doing some "magic" things, but they weren't, so just inlining the `cli.Args()` makes it more transparent what's executed. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* integration-cli: remove WaitRestart(), un-export WaitForInspectResult()Sebastiaan van Stijn2022-12-281-24/+8
| | | | | | | | | | | | - Remove `WaitRestart()` as it was no longer used - Un-export `WaitForInspectResult()` as it was only used internally, and we want to reduce uses of these utilities. - Inline `appendDocker()` into `Docker()` as it was the only place it was used, and the name was incorrect anyway (should've been named `prependXX`). - Simplify `Args()`, as it was first splitting the slice (into `command` and `args`), only to join them again into a single slice (in `icmd.Command()`). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* TestPushMultipleTags: Add support for 20.10 CLIBrian Goff2021-03-181-0/+1
| | | | | | | In 20.10 we no longer implicitly push all tags and require a "--all-tags" flag, so add this to the test when the CLI is >= 20.10 Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* bump gotest.tools v3.0.1 for compatibility with Go 1.14Sebastiaan van Stijn2020-02-112-2/+2
| | | | | | full diff: https://github.com/gotestyourself/gotest.tools/compare/v2.3.0...v3.0.1 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* testing: remove custom testingT interfacesSebastiaan van Stijn2019-09-232-23/+11
| | | | | | | now that we no longer use gocheck, we should be able to just use golang's own interface. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* testutil: remove unneeded namer, testname interfacesSebastiaan van Stijn2019-09-232-0/+2
| | | | | | | Now that the gocheck framework is no longer used, we don't have to define these interfaces. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* testutil: make testing packages publicSam Whited2019-09-111-1/+1
| | | | | | | | | | | | | | | | This was done with something along the lines of: ``` mv internal/test testutil pushd testutil/; grep -IRl "package test" | xargs -I '{}' sed -i -e 's|package test|package testutil|g' {}; popd mv internal/testutil/*.go testutil/ && rm -rf internal/ grep -IRl "github.com\/docker\/docker\/internal\/test" | xargs -I '{}' sed -i -e 's|github.com/docker/docker/internal/test|github.com/docker/docker/test|g' {} goimports . ``` I also modified the basic plugin path in testutil/fixtures/plugin. Signed-off-by: Sam Whited <sam@samwhited.com>
* Update tests to use gotest.tools 👼Vincent Demeester2018-06-132-3/+3
| | | | Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Move fakecontext, fakegit and fakestorage to internal/testVincent Demeester2018-04-175-506/+1
| | | | Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Skip some tests in certain condition to run with e2e imageVincent Demeester2018-03-292-3/+17
| | | | Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Post migration assertion fixesDaniel Nephin2018-03-161-0/+2
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Automated migration usingDaniel Nephin2018-03-162-4/+4
| | | | | | gty-migrate-from-testify --ignore-build-tags Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Add canonical import commentDaniel Nephin2018-02-056-6/+6
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Separate the GenerateRandomAlphaOnlyString function from stringutilschaowang2017-10-281-3/+3
| | | | Signed-off-by: chaowang <chaowang@localhost.localdomain>
* Set integration test OSType with environment variableChristopher Crone2017-09-202-2/+2
| | | | Signed-off-by: Christopher Crone <christopher.crone@docker.com>
* Fixes for dnephin reviewChristopher Crone2017-09-141-15/+22
| | | | Signed-off-by: Christopher Crone <christopher.crone@docker.com>
* Refactor test environmentDaniel Nephin2017-08-304-48/+25
| | | | | | | | split all non-cli portions into a new internal/test/environment package Set a test environment on packages instead of creating new ones. Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Update tests to use icmdDaniel Nephin2017-08-252-2/+2
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Remove RunCommandPipelineWithOutputDaniel Nephin2017-08-221-0/+8
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Fix ONBUILD COPYDaniel Nephin2017-06-021-0/+12
| | | | | | the source was missing from the second dispatch Signed-off-by: Daniel Nephin <dnephin@docker.com>
* [integration] Move fakegit to its own package in cliVincent Demeester2017-04-191-0/+125
| | | | Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Introduce `cli.Wait*` fuctionsVincent Demeester2017-04-141-0/+52
| | | | | | | These replace `wait*` functions from `docker_utils_test.go` and work more or less like other `cli` functions. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Move FakeContext to `integration-cli/cli/build/context` package…Vincent Demeester2017-04-115-0/+408
| | | | | | … and continue emptying `docker_utils_test.go` from build related function. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* [test-integration] Migrate some more tests to `cli` packageVincent Demeester2017-03-281-5/+54
| | | | | | | | Add some required command operators to the `cli` package, and update some tests to use this package, in order to remove a few functions from `docker_utils_test.go` Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* remove redundant comments in test build.goallencloud2017-03-271-2/+1
| | | | Signed-off-by: allencloud <allen.sun@daocloud.io>
* Introduce a `cli` package for test-integrationVincent Demeester2017-03-232-0/+160
Signed-off-by: Vincent Demeester <vincent@sbr.pm>