diff --git a/.gitignore b/.gitignore index ffa7eda..3a7f151 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,5 @@ results.tap .vagrant # test logs +logs test/logs diff --git a/logs/config_updates_without_affect.log b/logs/config_updates_without_affect.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/config_updates_without_affect.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/create.log b/logs/create.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/create.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/default.log b/logs/default.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/default.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/delete.log b/logs/delete.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/delete.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/hooks.log b/logs/hooks.log deleted file mode 100644 index 378884a..0000000 --- a/logs/hooks.log +++ /dev/null @@ -1,9 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now - --- - { - "error": "exit status 2" - } - ... -1..0 diff --git a/logs/hooks_stdin.log b/logs/hooks_stdin.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/hooks_stdin.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/hostname.log b/logs/hostname.log deleted file mode 100644 index 2d62210..0000000 --- a/logs/hostname.log +++ /dev/null @@ -1,10 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -not ok 1 - hostname is set correctly -# expect: err == nil, actual: err != nil -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -not ok 2 - hostname is set correctly -# expect: err == nil, actual: err != nil -1..2 diff --git a/logs/kill.log b/logs/kill.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/kill.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/kill_no_effect.log b/logs/kill_no_effect.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/kill_no_effect.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/killsig.log b/logs/killsig.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/killsig.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/linux_devices.log b/logs/linux_devices.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/linux_devices.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/linux_masked_paths.log b/logs/linux_masked_paths.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/linux_masked_paths.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/linux_mount_label.log b/logs/linux_mount_label.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/linux_mount_label.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/linux_ns_itype.log b/logs/linux_ns_itype.log deleted file mode 100644 index 2038eb6..0000000 --- a/logs/linux_ns_itype.log +++ /dev/null @@ -1,14 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now - --- - { - "actual": "", - "expected": "", - "level": "MUST", - "namespace type": "", - "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.1.0/config-linux.md#namespaces" - } - ... -not ok 1 - cannot run validation tests: exit status 2 -1..1 diff --git a/logs/linux_ns_nopath.log b/logs/linux_ns_nopath.log deleted file mode 100644 index 2038eb6..0000000 --- a/logs/linux_ns_nopath.log +++ /dev/null @@ -1,14 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now - --- - { - "actual": "", - "expected": "", - "level": "MUST", - "namespace type": "", - "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.1.0/config-linux.md#namespaces" - } - ... -not ok 1 - cannot run validation tests: exit status 2 -1..1 diff --git a/logs/linux_ns_path.log b/logs/linux_ns_path.log deleted file mode 100644 index 130586a..0000000 --- a/logs/linux_ns_path.log +++ /dev/null @@ -1,52 +0,0 @@ -TAP version 13 -not ok 1 - set ipc namespace by path - --- - { - "actual": "err == cannot read namespace link for the unshare process: readlink /proc/13015/ns/ipc: no such file or directory", - "expected": "err == nil", - "level": "MUST", - "namespace type": "ipc", - "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.1.0/config-linux.md#namespaces" - } - ... -not ok 2 - set mnt namespace by path - --- - { - "actual": "err == cannot read namespace link for the unshare process: readlink /proc/13016/ns/mnt: no such file or directory", - "expected": "err == nil", - "level": "MUST", - "namespace type": "mnt", - "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.1.0/config-linux.md#namespaces" - } - ... -not ok 3 - set net namespace by path - --- - { - "actual": "err == cannot read namespace link for the unshare process: readlink /proc/13017/ns/net: no such file or directory", - "expected": "err == nil", - "level": "MUST", - "namespace type": "net", - "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.1.0/config-linux.md#namespaces" - } - ... -not ok 4 - set pid namespace by path - --- - { - "actual": "err == cannot read namespace link for the unshare process: readlink /proc/13018/ns/pid_for_children: no such file or directory", - "expected": "err == nil", - "level": "MUST", - "namespace type": "pid", - "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.1.0/config-linux.md#namespaces" - } - ... -not ok 5 - set uts namespace by path - --- - { - "actual": "err == cannot read namespace link for the unshare process: readlink /proc/13019/ns/uts: no such file or directory", - "expected": "err == nil", - "level": "MUST", - "namespace type": "uts", - "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.1.0/config-linux.md#namespaces" - } - ... -1..5 diff --git a/logs/linux_ns_path_type.log b/logs/linux_ns_path_type.log deleted file mode 100644 index 42e01fe..0000000 --- a/logs/linux_ns_path_type.log +++ /dev/null @@ -1,30 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -ok 1 - got error when setting a wrong namespace path "/proc/self/ns/ipc" with type cgroup -ok 2 - namespace path matches with type cgroup -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -ok 3 - got error when setting a wrong namespace path "/proc/self/ns/mnt" with type ipc -ok 4 - namespace path matches with type ipc -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -ok 5 - got error when setting a wrong namespace path "/proc/self/ns/net" with type mount -ok 6 - namespace path matches with type mnt -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -ok 7 - got error when setting a wrong namespace path "/proc/self/ns/pid" with type network -ok 8 - namespace path matches with type net -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -ok 9 - got error when setting a wrong namespace path "/proc/self/ns/user" with type pid -ok 10 - namespace path matches with type pid -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -ok 11 - got error when setting a wrong namespace path "/proc/self/ns/uts" with type user -ok 12 - namespace path matches with type user -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -ok 13 - got error when setting a wrong namespace path "/proc/self/ns/cgroup" with type uts -ok 14 - namespace path matches with type uts -1..14 diff --git a/logs/linux_process_apparmor_profile.log b/logs/linux_process_apparmor_profile.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/linux_process_apparmor_profile.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/linux_readonly_paths.log b/logs/linux_readonly_paths.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/linux_readonly_paths.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/linux_rootfs_propagation.log b/logs/linux_rootfs_propagation.log deleted file mode 100644 index b939b70..0000000 --- a/logs/linux_rootfs_propagation.log +++ /dev/null @@ -1,14 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -not ok 1 - exit status 2 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -not ok 2 - exit status 2 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -not ok 3 - exit status 2 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -not ok 4 - exit status 2 -1..4 diff --git a/logs/linux_seccomp.log b/logs/linux_seccomp.log deleted file mode 100644 index 4522c4e..0000000 --- a/logs/linux_seccomp.log +++ /dev/null @@ -1,6 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -not ok 1 - seccomp action is added correctly -not ok 2 - exit status 2 -1..2 diff --git a/logs/linux_sysctl.log b/logs/linux_sysctl.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/linux_sysctl.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/linux_uid_mappings.log b/logs/linux_uid_mappings.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/linux_uid_mappings.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/misc_props.log b/logs/misc_props.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/misc_props.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/mounts.log b/logs/mounts.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/mounts.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/poststart.log b/logs/poststart.log deleted file mode 100644 index 378884a..0000000 --- a/logs/poststart.log +++ /dev/null @@ -1,9 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now - --- - { - "error": "exit status 2" - } - ... -1..0 diff --git a/logs/poststop.log b/logs/poststop.log deleted file mode 100644 index 378884a..0000000 --- a/logs/poststop.log +++ /dev/null @@ -1,9 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now - --- - { - "error": "exit status 2" - } - ... -1..0 diff --git a/logs/prestart.log b/logs/prestart.log deleted file mode 100644 index 378884a..0000000 --- a/logs/prestart.log +++ /dev/null @@ -1,9 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now - --- - { - "error": "exit status 2" - } - ... -1..0 diff --git a/logs/prestart_fail.log b/logs/prestart_fail.log deleted file mode 100644 index 08ad1e9..0000000 --- a/logs/prestart_fail.log +++ /dev/null @@ -1,3 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now diff --git a/logs/process.log b/logs/process.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/process.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/process_capabilities.log b/logs/process_capabilities.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/process_capabilities.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/process_capabilities_fail.log b/logs/process_capabilities_fail.log deleted file mode 100644 index bd163d6..0000000 --- a/logs/process_capabilities_fail.log +++ /dev/null @@ -1,2 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now diff --git a/logs/process_oom_score_adj.log b/logs/process_oom_score_adj.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/process_oom_score_adj.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/process_rlimits.log b/logs/process_rlimits.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/process_rlimits.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/process_rlimits_fail.log b/logs/process_rlimits_fail.log deleted file mode 100644 index bd163d6..0000000 --- a/logs/process_rlimits_fail.log +++ /dev/null @@ -1,2 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now diff --git a/logs/process_user.log b/logs/process_user.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/process_user.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/root_readonly_true.log b/logs/root_readonly_true.log deleted file mode 100644 index 4d7c081..0000000 --- a/logs/root_readonly_true.log +++ /dev/null @@ -1,3 +0,0 @@ -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/start.log b/logs/start.log deleted file mode 100644 index c58b64c..0000000 --- a/logs/start.log +++ /dev/null @@ -1,4 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -exit status 2 diff --git a/logs/state.log b/logs/state.log deleted file mode 100644 index e51a6ff..0000000 --- a/logs/state.log +++ /dev/null @@ -1,32 +0,0 @@ -TAP version 13 -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -ok 1 - state MUST generate an error if it is not provided the ID of a container -Refer to: https://github.com/opencontainers/runtime-spec/blob/v1.1.0/runtime.md#query-state - --- - { - "error": "exit status 2", - "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.1.0/runtime.md#query-state" - } - ... -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -ok 2 - state MUST generate an error if a container that does not exist -Refer to: https://github.com/opencontainers/runtime-spec/blob/v1.1.0/runtime.md#query-state - --- - { - "error": "exit status 2", - "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.1.0/runtime.md#query-state" - } - ... -tar: rootfs-amd64.tar.gz: Cannot open: No such file or directory -tar: Error is not recoverable: exiting now -not ok 3 - state MUST return the state of a container as specified in the State section -Refer to: https://github.com/opencontainers/runtime-spec/blob/v1.1.0/runtime.md#query-state - --- - { - "error": "exit status 2", - "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.1.0/runtime.md#query-state" - } - ... -1..3