1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/integration-cli
Josh Hawn 75f6929b44 Fix docker cp Behavior With Symlinks
[pkg/archive] Update archive/copy path handling

  - Remove unused TarOptions.Name field.
  - Add new TarOptions.RebaseNames field.
  - Update some of the logic around path dir/base splitting.
  - Update some of the logic behind archive entry name rebasing.

[api/types] Add LinkTarget field to PathStat

[daemon] Fix stat, archive, extract of symlinks

  These operations *should* resolve symlinks that are in the path but if the
  resource itself is a symlink then it *should not* be resolved. This patch
  puts this logic into a common function `resolvePath` which resolves symlinks
  of the path's dir in scope of the container rootfs but does not resolve the
  final element of the path. Now archive, extract, and stat operations will
  return symlinks if the path is indeed a symlink.

[api/client] Update cp path hanling

[docs/reference/api] Update description of stat

  Add the linkTarget field to the header of the archive endpoint.
  Remove path field.

[integration-cli] Fix/Add cp symlink test cases

  Copying a symlink should do just that: copy the symlink NOT
  copy the target of the symlink. Also, the resulting file from
  the copy should have the name of the symlink NOT the name of
  the target file.

  Copying to a symlink should copy to the symlink target and not
  modify the symlink itself.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-07-30 12:14:28 -07:00
..
fixtures Add integration cli trust tests 2015-07-24 14:08:20 -07:00
check_test.go Add integration cli trust tests 2015-07-24 14:08:20 -07:00
docker_api_attach_test.go Use dockerCmd when possible (#14603) 2015-07-14 21:52:43 +02:00
docker_api_containers_test.go Fix docker cp Behavior With Symlinks 2015-07-30 12:14:28 -07:00
docker_api_events_test.go Send resp immediately on GET /events 2015-07-02 11:45:24 -04:00
docker_api_exec_resize_test.go Skip DockerSuite.TestExecResizeImmediatelyAfterExecStart on lxc 2015-07-27 19:20:15 -04:00
docker_api_exec_test.go Ensure body is closed after error is checked 2015-07-23 14:34:38 +02:00
docker_api_images_test.go Ensure body is closed after error is checked 2015-07-23 14:34:38 +02:00
docker_api_info_test.go Fixing statusCode checks for sockRequest 2015-04-23 15:35:56 -07:00
docker_api_inspect_test.go Expose new mount points structs in inspect. 2015-07-21 15:33:05 -07:00
docker_api_logs_test.go Ensure body is closed after error is checked 2015-07-23 14:34:38 +02:00
docker_api_network_test.go register libnetwork API and UI with docker parent chain 2015-06-18 12:07:58 -07:00
docker_api_resize_test.go Use dockerCmd when possible (#14603) 2015-07-14 21:52:43 +02:00
docker_api_service_test.go attaching services api and UI chain to docker parent 2015-06-19 09:19:09 -07:00
docker_api_stats_test.go Ensure body is closed after error is checked 2015-07-23 14:34:38 +02:00
docker_api_test.go Ensure body is closed after error is checked 2015-07-23 14:34:38 +02:00
docker_api_version_test.go Fixing statusCode checks for sockRequest 2015-04-23 15:35:56 -07:00
docker_cli_attach_test.go Use dockerCmd when possible (#14603) 2015-07-14 21:52:43 +02:00
docker_cli_attach_unix_test.go Use dockerCmd when possible (#14603) 2015-07-14 21:52:43 +02:00
docker_cli_build_test.go Merge pull request #15132 from LK4D4/improve_test 2015-07-29 17:36:11 -07:00
docker_cli_build_unix_test.go Add ulimit to docker build. 2015-07-23 10:26:06 +08:00
docker_cli_by_digest_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_commit_test.go Use dockerCmd when possible (#14603) 2015-07-14 21:52:43 +02:00
docker_cli_config_test.go Use dockerCmd when possible (#14603) 2015-07-14 21:52:43 +02:00
docker_cli_cp_from_container_test.go Fix docker cp Behavior With Symlinks 2015-07-30 12:14:28 -07:00
docker_cli_cp_test.go Fix docker cp Behavior With Symlinks 2015-07-30 12:14:28 -07:00
docker_cli_cp_to_container_test.go Fix docker cp Behavior With Symlinks 2015-07-30 12:14:28 -07:00
docker_cli_cp_utils.go Fix docker cp Behavior With Symlinks 2015-07-30 12:14:28 -07:00
docker_cli_create_test.go Skip notary tests which update system clock 2015-07-29 12:09:40 -07:00
docker_cli_daemon_experimental_test.go Vendoring in libnetwork for native multihost networking 2015-06-22 04:15:41 -07:00
docker_cli_daemon_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_diff_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_events_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_events_unix_test.go
docker_cli_exec_test.go Don't mount /proc as ro 2015-07-30 10:57:50 -07:00
docker_cli_exec_unix_test.go Fix golint warnings for integration-cli 2015-07-22 14:03:50 +01:00
docker_cli_experimental_test.go dockerCmd when possible 2015-07-20 14:55:40 +08:00
docker_cli_export_import_test.go dockerCmd when possible 2015-07-20 14:55:40 +08:00
docker_cli_help_test.go Rename to flags and environment variables to content trust 2015-07-24 16:31:18 -07:00
docker_cli_history_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_images_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_import_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_info_test.go dockerCmd when possible 2015-07-20 14:55:40 +08:00
docker_cli_inspect_experimental_test.go Expose new mount points structs in inspect. 2015-07-21 15:33:05 -07:00
docker_cli_inspect_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_kill_test.go Keep backwards compatibility in kill api. 2015-07-28 12:25:36 -07:00
docker_cli_links_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_links_unix_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_login_test.go
docker_cli_logs_test.go Merge pull request #14442 from cpuguy83/refactor_logdrvier_reader 2015-07-22 11:54:35 -07:00
docker_cli_nat_test.go Recfactor: Use dockerCmd when possible in integration-cli tests 2015-07-20 14:44:22 +08:00
docker_cli_network_test.go Recfactor: Use dockerCmd when possible in integration-cli tests 2015-07-20 14:44:22 +08:00
docker_cli_pause_test.go Use dockerCmd when possible (#14603) 2015-07-14 21:52:43 +02:00
docker_cli_port_test.go Use dockerCmd when possible (#14603) 2015-07-14 21:52:43 +02:00
docker_cli_port_unix_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_proxy_test.go Add and modify tests for legacy and new daemon invokations 2015-07-23 20:31:43 -04:00
docker_cli_ps_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_pull_test.go Skip notary tests which update system clock 2015-07-29 12:09:40 -07:00
docker_cli_push_test.go Skip notary tests which update system clock 2015-07-29 12:09:40 -07:00
docker_cli_rename_test.go Replace GenerateRandomID with GenerateNonCryptoID 2015-07-28 22:31:01 -07:00
docker_cli_restart_test.go Merge pull request #13711 from calavera/version_volumes_inspect 2015-07-22 09:02:00 +02:00
docker_cli_rm_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_rmi_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_run_test.go Merge pull request #15163 from crosbymichael/proc-ro 2015-07-30 15:12:29 -04:00
docker_cli_run_unix_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_save_load_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_save_load_unix_test.go CI: use dockerCmd in integration-cli when possible 2015-07-22 17:55:41 +08:00
docker_cli_search_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_service_test.go CI: use dockerCmd in integration-cli when possible 2015-07-22 17:55:41 +08:00
docker_cli_start_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_start_volume_driver_unix_test.go Promote volume drivers from experimental to master. 2015-07-21 09:32:44 -07:00
docker_cli_stats_test.go Recfactor: Use dockerCmd when possible in integration-cli tests 2015-07-20 14:44:22 +08:00
docker_cli_tag_test.go Don't pass check.C to dockerCmdWithError 2015-07-27 14:33:32 -04:00
docker_cli_top_test.go Recfactor: Use dockerCmd when possible in integration-cli tests 2015-07-20 14:44:22 +08:00
docker_cli_version_test.go Recfactor: Use dockerCmd when possible in integration-cli tests 2015-07-20 14:44:22 +08:00
docker_cli_wait_test.go Recfactor: Use dockerCmd when possible in integration-cli tests 2015-07-20 14:44:22 +08:00
docker_test_vars.go Volumes refactor and external plugin implementation. 2015-05-21 20:34:17 -07:00
docker_test_vars_cli.go
docker_test_vars_daemon.go
docker_utils.go Merge pull request #15045 from cpuguy83/fix_dockercmdwitherror 2015-07-27 16:04:16 -04:00
registry.go Fix golint warnings for integration-cli 2015-07-22 14:03:50 +01:00
requirements.go Add integration cli trust tests 2015-07-24 14:08:20 -07:00
requirements_unix.go Fix golint warnings for integration-cli 2015-07-22 14:03:50 +01:00
test_vars_exec.go
test_vars_noexec.go
test_vars_unix.go
test_vars_windows.go
trust_server.go Rename to flags and environment variables to content trust 2015-07-24 16:31:18 -07:00
utils.go Add trust tests for Docker create, run, push, and pull 2015-07-24 14:08:20 -07:00