mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![]() Implemented a FakeStorage alternative that supports spinning up a remote container on DOCKER_TEST_HOST to serve files over an offline-compiled Go static web server image so that tests which use URLs in Dockerfile can build them over at the daemon side. `fakeStorage` function now automatically chooses if it should use a local httptest.Server or a remote container. This fixes the following tests when running against a remote daemon: - `TestBuildCacheADD` - `TestBuildCopyWildcardNoFind` - `TestBuildCopyWildcardCache` - `TestBuildADDRemoteFileWithCache` - `TestBuildADDRemoteFileWithoutCache` - `TestBuildADDRemoteFileMTime` - `TestBuildADDLocalAndRemoteFilesWithCache` - `TestBuildADDLocalAndRemoteFilesWithoutCache` - `TestBuildFromURLWithF` - `TestBuildApiDockerFileRemote` Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com> |
||
---|---|---|
.. | ||
.dockerinit | ||
.ensure-busybox | ||
.ensure-emptyfs | ||
.ensure-httpserver | ||
.go-autogen | ||
.go-compile-test-dir | ||
.integration-daemon-start | ||
.integration-daemon-stop | ||
.validate | ||
binary | ||
cover | ||
cross | ||
dynbinary | ||
README.md | ||
test-docker-py | ||
test-integration | ||
test-integration-cli | ||
test-unit | ||
tgz | ||
ubuntu | ||
validate-dco | ||
validate-gofmt | ||
validate-toml |
This directory holds scripts called by make.sh
in the parent directory.
Each script is named after the bundle it creates. They should not be called directly - instead, pass it as argument to make.sh, for example:
./project/make.sh test
./project/make.sh binary ubuntu
# Or to run all bundles:
./project/make.sh
To add a bundle:
- Create a shell-compatible file here
- Add it to $DEFAULT_BUNDLES in make.sh