spiegel_podman/test/e2e
Matthew Heon 1e3e99f2fe Move the HostConfig portion of Inspect inside libpod
When we first began writing Podman, we ran into a major issue
when implementing Inspect. Libpod deliberately does not tie its
internal data structures to Docker, and stores most information
about containers encoded within the OCI spec. However, Podman
must present a CLI compatible with Docker, which means it must
expose all the information in 'docker inspect' - most of which is
not contained in the OCI spec or libpod's Config struct.

Our solution at the time was the create artifact. We JSON'd the
complete CreateConfig (a parsed form of the CLI arguments to
'podman run') and stored it with the container, restoring it when
we needed to run commands that required the extra info.

Over the past month, I've been looking more at Inspect, and
refactored large portions of it into Libpod - generating them
from what we know about the OCI config and libpod's (now much
expanded, versus previously) container configuration. This path
comes close to completing the process, moving the last part of
inspect into libpod and removing the need for the create
artifact.

This improves libpod's compatability with non-Podman containers.
We no longer require an arbitrarily-formatted JSON blob to be
present to run inspect.

Fixes: #3500

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-07-17 16:48:38 -04:00
..
hooks Add hooks support to podman 2018-04-05 14:13:49 +00:00
attach_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
checkpoint_test.go Use random IP addresses during checkpoint/restore tests 2019-07-09 08:04:19 +02:00
commit_test.go Merge pull request #3081 from baude/remotecommit 2019-06-03 20:58:13 +02:00
common_test.go Move the HostConfig portion of Inspect inside libpod 2019-07-17 16:48:38 -04:00
config.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
config_amd64.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
config_ppc64le.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
cp_test.go fix bug creats directory copying file 2019-06-20 17:52:12 -04:00
create_staticip_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
create_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
diff_test.go Add --latest, -l to 'podman diff' 2019-06-21 13:37:04 +02:00
e2e.coverprofile Enable rootless integration tests 2019-03-19 15:01:48 +01:00
events_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
exec_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
exists_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
export_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
generate_kube_test.go Add test for generate kube with volumes 2019-07-02 15:18:44 -04:00
generate_systemd_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
healthcheck_run_test.go Make the healthcheck flags compatible with Docker CLI 2019-07-16 06:15:28 +02:00
history_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
images_test.go Add tests that we don't hit errors with layerless images 2019-06-26 10:43:04 -04:00
import_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
info_test.go split remote tests from distro tests 2019-05-13 12:17:55 -05:00
init_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
inspect_test.go Support aliases for .Src and .Dst in inspect .Mounts 2019-06-24 14:08:25 -04:00
kill_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
libpod_suite_remoteclient_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
libpod_suite_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
load_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
login_logout_test.go Add test cases for login and logout 2019-05-22 14:34:42 +08:00
logs_test.go test: add test for logs -f 2019-06-17 11:04:34 +02:00
mount_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
namespace_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
negative_test.go Add negative command-line test 2019-05-08 11:04:37 -04:00
pause_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_create_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_infra_container_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_inspect_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_kill_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_pause_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_pod_namespaces.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_prune_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_ps_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_restart_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_rm_test.go cgroups: fix a leak when using cgroupfs 2019-07-11 18:07:49 +02:00
pod_start_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_stats_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_stop_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_top_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
port_test.go fix port -l timing with healthchecks 2019-06-18 10:43:53 -05:00
prune_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
ps_test.go Fix a segfault in 'podman ps --sync' 2019-06-24 09:26:03 -04:00
pull_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
push_test.go speed up rootless tests 2019-07-08 12:31:31 -05:00
restart_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
rm_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
rmi_test.go speed up rootless tests 2019-07-08 12:31:31 -05:00
run_cgroup_parent_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_cleanup_test.go fix integration flake tests 2019-07-08 09:06:40 -05:00
run_cpu_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_device_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_dns_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_entrypoint_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_exit_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_memory_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_networking_test.go rootless: add an entry to /etc/hosts when using slirp4netns 2019-06-24 10:12:33 +02:00
run_ns_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_passwd_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_privileged_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_restart_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_selinux_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_signal_test.go speed up rootless tests 2019-07-08 12:31:31 -05:00
run_staticip_test.go fix integration flake tests 2019-07-08 09:06:40 -05:00
run_test.go Make the healthcheck flags compatible with Docker CLI 2019-07-16 06:15:28 +02:00
run_userns_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_volume_test.go Add tests for cached and delegated mounts 2019-06-19 09:57:33 -04:00
runlabel_test.go Completely disable global options test 2019-06-14 16:33:22 -04:00
save_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
search_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
start_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
stats_test.go first pass of corrections for golangci-lint 2019-07-10 15:52:17 -05:00
stop_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
system_df_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
systemd_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
tag_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
top_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
tree_test.go speed up rootless tests 2019-07-08 12:31:31 -05:00
trust_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
unshare_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
version_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
volume_create_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
volume_inspect_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
volume_ls_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
volume_prune_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
volume_rm_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
wait_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00