From f8a2999af695f1528c63974e6ffece879e471b26 Mon Sep 17 00:00:00 2001 From: nixpig <143995476+nixpig@users.noreply.github.com> Date: Tue, 10 Dec 2024 07:26:55 +0000 Subject: [PATCH] chore: remove and ignore logs --- .gitignore | 1 + logs/config_updates_without_affect.log | 4 -- logs/create.log | 4 -- logs/default.log | 3 -- logs/delete.log | 4 -- logs/hooks.log | 9 ----- logs/hooks_stdin.log | 4 -- logs/hostname.log | 10 ----- logs/kill.log | 4 -- logs/kill_no_effect.log | 4 -- logs/killsig.log | 4 -- logs/linux_devices.log | 3 -- logs/linux_masked_paths.log | 4 -- logs/linux_mount_label.log | 3 -- logs/linux_ns_itype.log | 14 ------- logs/linux_ns_nopath.log | 14 ------- logs/linux_ns_path.log | 52 ------------------------- logs/linux_ns_path_type.log | 30 -------------- logs/linux_process_apparmor_profile.log | 3 -- logs/linux_readonly_paths.log | 4 -- logs/linux_rootfs_propagation.log | 14 ------- logs/linux_seccomp.log | 6 --- logs/linux_sysctl.log | 3 -- logs/linux_uid_mappings.log | 3 -- logs/misc_props.log | 4 -- logs/mounts.log | 3 -- logs/poststart.log | 9 ----- logs/poststop.log | 9 ----- logs/prestart.log | 9 ----- logs/prestart_fail.log | 3 -- logs/process.log | 3 -- logs/process_capabilities.log | 3 -- logs/process_capabilities_fail.log | 2 - logs/process_oom_score_adj.log | 3 -- logs/process_rlimits.log | 3 -- logs/process_rlimits_fail.log | 2 - logs/process_user.log | 3 -- logs/root_readonly_true.log | 3 -- logs/start.log | 4 -- logs/state.log | 32 --------------- 40 files changed, 1 insertion(+), 298 deletions(-) delete mode 100644 logs/config_updates_without_affect.log delete mode 100644 logs/create.log delete mode 100644 logs/default.log delete mode 100644 logs/delete.log delete mode 100644 logs/hooks.log delete mode 100644 logs/hooks_stdin.log delete mode 100644 logs/hostname.log delete mode 100644 logs/kill.log delete mode 100644 logs/kill_no_effect.log delete mode 100644 logs/killsig.log delete mode 100644 logs/linux_devices.log delete mode 100644 logs/linux_masked_paths.log delete mode 100644 logs/linux_mount_label.log delete mode 100644 logs/linux_ns_itype.log delete mode 100644 logs/linux_ns_nopath.log delete mode 100644 logs/linux_ns_path.log delete mode 100644 logs/linux_ns_path_type.log delete mode 100644 logs/linux_process_apparmor_profile.log delete mode 100644 logs/linux_readonly_paths.log delete mode 100644 logs/linux_rootfs_propagation.log delete mode 100644 logs/linux_seccomp.log delete mode 100644 logs/linux_sysctl.log delete mode 100644 logs/linux_uid_mappings.log delete mode 100644 logs/misc_props.log delete mode 100644 logs/mounts.log delete mode 100644 logs/poststart.log delete mode 100644 logs/poststop.log delete mode 100644 logs/prestart.log delete mode 100644 logs/prestart_fail.log delete mode 100644 logs/process.log delete mode 100644 logs/process_capabilities.log delete mode 100644 logs/process_capabilities_fail.log delete mode 100644 logs/process_oom_score_adj.log delete mode 100644 logs/process_rlimits.log delete mode 100644 logs/process_rlimits_fail.log delete mode 100644 logs/process_user.log delete mode 100644 logs/root_readonly_true.log delete mode 100644 logs/start.log delete mode 100644 logs/state.log 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