[INFO] cloning repository https://github.com/hiboma/wazuh-cli
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hiboma/wazuh-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhiboma%2Fwazuh-cli", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhiboma%2Fwazuh-cli'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1794bf692eb6b5989b9ce0eebc594ba6eae77647
[INFO] testing hiboma/wazuh-cli against master#f9988fefd3add01f414f52b414308e7872622fee for pr-155114
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhiboma%2Fwazuh-cli" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/hiboma/wazuh-cli
[INFO] removed 0 missing tests
[INFO] finished tweaking git repo https://github.com/hiboma/wazuh-cli
[INFO] tweaked toml for git repo https://github.com/hiboma/wazuh-cli written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/hiboma/wazuh-cli on toolchain f9988fefd3add01f414f52b414308e7872622fee
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/hiboma/wazuh-cli already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded clap_complete v4.6.0
[INFO] [stderr]   Downloaded tokio v1.51.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c2ac46e9ba8fa61668c99e49df52769335f8c25f35e554ac508ee05f35048d47
[INFO] running `Command { std: "docker" "start" "-a" "c2ac46e9ba8fa61668c99e49df52769335f8c25f35e554ac508ee05f35048d47", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c2ac46e9ba8fa61668c99e49df52769335f8c25f35e554ac508ee05f35048d47", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c2ac46e9ba8fa61668c99e49df52769335f8c25f35e554ac508ee05f35048d47", kill_on_drop: false }`
[INFO] [stdout] c2ac46e9ba8fa61668c99e49df52769335f8c25f35e554ac508ee05f35048d47
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1e023b32be54d45e242d9131c755f62e4932900ec24adcb26611cc473560dc46
[INFO] running `Command { std: "docker" "start" "-a" "1e023b32be54d45e242d9131c755f62e4932900ec24adcb26611cc473560dc46", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.184
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling rustls v0.23.37
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling tokio-macros v2.7.0
[INFO] [stderr]    Compiling anstream v1.0.0
[INFO] [stderr]    Compiling clap_derive v4.6.0
[INFO] [stderr]    Compiling webpki-roots v1.0.6
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling rustls-pemfile v2.2.0
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling futures-util v0.3.32
[INFO] [stderr]    Compiling clap_builder v4.6.0
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling mio v1.2.0
[INFO] [stderr]    Compiling socket2 v0.6.3
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling tokio v1.51.1
[INFO] [stderr]    Compiling clap v4.6.0
[INFO] [stderr]    Compiling clap_complete v4.6.0
[INFO] [stderr]    Compiling rustls-webpki v0.103.10
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling tower v0.5.3
[INFO] [stderr]    Compiling tower-http v0.6.8
[INFO] [stderr]    Compiling hyper-util v0.1.20
[INFO] [stderr]    Compiling tokio-rustls v0.26.4
[INFO] [stderr]    Compiling hyper-rustls v0.27.7
[INFO] [stderr]    Compiling reqwest v0.12.28
[INFO] [stderr]    Compiling wazuh-cli v0.3.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.45s
[INFO] running `Command { std: "docker" "inspect" "1e023b32be54d45e242d9131c755f62e4932900ec24adcb26611cc473560dc46", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1e023b32be54d45e242d9131c755f62e4932900ec24adcb26611cc473560dc46", kill_on_drop: false }`
[INFO] [stdout] 1e023b32be54d45e242d9131c755f62e4932900ec24adcb26611cc473560dc46
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 127d70d9c550b71660176974f9beaac0ae09af0a6846fd113ea6f03150e70fa1
[INFO] running `Command { std: "docker" "start" "-a" "127d70d9c550b71660176974f9beaac0ae09af0a6846fd113ea6f03150e70fa1", kill_on_drop: false }`
[INFO] [stderr]    Compiling wazuh-cli v0.3.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 5.60s
[INFO] running `Command { std: "docker" "inspect" "127d70d9c550b71660176974f9beaac0ae09af0a6846fd113ea6f03150e70fa1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "127d70d9c550b71660176974f9beaac0ae09af0a6846fd113ea6f03150e70fa1", kill_on_drop: false }`
[INFO] [stdout] 127d70d9c550b71660176974f9beaac0ae09af0a6846fd113ea6f03150e70fa1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+f9988fefd3add01f414f52b414308e7872622fee" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] b69403ab2d30a411537d0d913ebd7d4cc069e1e27f8133d4f7dbd7106a42af6d
[INFO] running `Command { std: "docker" "start" "-a" "b69403ab2d30a411537d0d913ebd7d4cc069e1e27f8133d4f7dbd7106a42af6d", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wazuh_cli-d05c12c90ad42faa)
[INFO] [stdout] 
[INFO] [stdout] running 32 tests
[INFO] [stdout] test client::tls::tests::test_build_with_nonexistent_client_cert ... ok
[INFO] [stdout] test client::tls::tests::test_build_with_nonexistent_ca_cert ... ok
[INFO] [stdout] test config::tests::test_env_var_insecure_false ... ok
[INFO] [stdout] test config::tests::test_env_var_fallback ... ok
[INFO] [stdout] test config::tests::test_cli_overrides_env ... ok
[INFO] [stdout] test config::tests::test_cli_opts_override ... ok
[INFO] [stdout] test config::tests::test_env_var_insecure_one ... ok
[INFO] [stdout] test config::tests::test_default_values ... ok
[INFO] [stdout] test config::tests::test_empty_env_var_uses_default ... ok
[INFO] [stdout] test config::tests::test_env_var_insecure_true ... ok
[INFO] [stdout] test client::tls::tests::test_build_insecure_client ... ok
[INFO] [stdout] test client::tls::tests::test_build_default_client ... ok
[INFO] [stdout] test config::tests::test_env_var_insecure_yes ... ok
[INFO] [stdout] test config::tests::test_env_var_output_format ... ok
[INFO] [stdout] test config::tests::test_env_var_timeout ... ok
[INFO] [stdout] test config::tests::test_env_var_timeout_invalid ... ok
[INFO] [stdout] test config::tests::test_invalid_output_format ... ok
[INFO] [stdout] test output::tests::test_exit_code_auth_error ... ok
[INFO] [stdout] test output::tests::test_exit_code_config_error ... ok
[INFO] [stdout] test output::tests::test_exit_code_api_error ... ok
[INFO] [stdout] test output::tests::test_extract_data_empty_affected_items ... ok
[INFO] [stdout] test output::tests::test_extract_data_non_object ... ok
[INFO] [stdout] test output::tests::test_exit_code_connection_error ... ok
[INFO] [stdout] test output::tests::test_extract_data_without_affected_items ... ok
[INFO] [stdout] test output::tests::test_extract_data_with_affected_items ... ok
[INFO] [stdout] test output::tests::test_extract_data_without_data ... ok
[INFO] [stdout] test output::tests::test_print_error_tls ... ok
[INFO] [stdout] test output::tests::test_exit_code_partial_success ... ok
[INFO] [stdout] test output::tests::test_print_error_config ... ok
[INFO] [stdout] {
[INFO] [stdout]   "data": {
[INFO] [stdout]     "affected_items": [
[INFO] [stdout]       {
[INFO] [stdout]         "id": "001"
[INFO] [stdout]       }
[INFO] [stdout]     ],
[INFO] [stdout]     "total_affected_items": 1
[INFO] [stdout]   },
[INFO] [stdout]   "error": 0,
[INFO] [stdout]   "message": "ok"
[INFO] [stdout] }
[INFO] [stdout] test output::tests::test_print_response_raw ... ok
[INFO] [stdout] {
[INFO] [stdout]   "key": "value"
[INFO] [stdout] }
[INFO] [stdout] test output::tests::test_print_response_json ... ok
[INFO] [stdout] test client::tls::tests::test_build_with_custom_timeout ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 32 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/wazuh_cli-0ef0f955fbdd7521)
[INFO] [stdout] 
[INFO] [stdout] running 32 tests
[INFO] [stdout] test config::tests::test_cli_opts_override ... ok
[INFO] [stdout] test client::tls::tests::test_build_with_nonexistent_client_cert ... ok
[INFO] [stdout] test client::tls::tests::test_build_with_nonexistent_ca_cert ... ok
[INFO] [stdout] test config::tests::test_empty_env_var_uses_default ... ok
[INFO] [stdout] test config::tests::test_env_var_fallback ... ok
[INFO] [stdout] test config::tests::test_default_values ... ok
[INFO] [stdout] test config::tests::test_env_var_insecure_false ... ok
[INFO] [stdout] test config::tests::test_cli_overrides_env ... ok
[INFO] [stdout] test config::tests::test_env_var_insecure_true ... ok
[INFO] [stdout] test client::tls::tests::test_build_default_client ... ok
[INFO] [stdout] test config::tests::test_env_var_insecure_yes ... ok
[INFO] [stdout] test config::tests::test_env_var_insecure_one ... ok
[INFO] [stdout] test config::tests::test_env_var_output_format ... ok
[INFO] [stdout] test config::tests::test_env_var_timeout ... ok
[INFO] [stdout] test config::tests::test_env_var_timeout_invalid ... ok
[INFO] [stdout] test config::tests::test_invalid_output_format ... ok
[INFO] [stdout] test output::tests::test_exit_code_api_error ... ok
[INFO] [stdout] {
[INFO] [stdout]   "key": "value"
[INFO] [stdout] }
[INFO] [stdout] test output::tests::test_exit_code_auth_error ... ok
[INFO] [stdout] test output::tests::test_exit_code_config_error ... ok
[INFO] [stdout] test output::tests::test_exit_code_partial_success ... ok
[INFO] [stdout] test output::tests::test_exit_code_connection_error ... ok
[INFO] [stdout] test output::tests::test_extract_data_empty_affected_items ... ok
[INFO] [stdout] test output::tests::test_extract_data_with_affected_items ... ok
[INFO] [stdout] test output::tests::test_extract_data_without_affected_items ... ok
[INFO] [stdout] test output::tests::test_extract_data_without_data ... ok
[INFO] [stdout] test output::tests::test_print_error_config ... ok
[INFO] [stdout] {
[INFO] [stdout]   "data": {
[INFO] [stdout]     "affected_items": [
[INFO] [stdout]       {
[INFO] [stdout]         "id": "001"
[INFO] [stdout]       }
[INFO] [stdout]     ],
[INFO] [stdout]     "total_affected_items": 1
[INFO] [stdout]   },
[INFO] [stdout]   "error": 0,
[INFO] [stdout]   "message": "ok"
[INFO] [stdout] }
[INFO] [stdout] test output::tests::test_print_response_json ... ok
[INFO] [stdout] test output::tests::test_extract_data_non_object ... ok
[INFO] [stdout] test output::tests::test_print_error_tls ... ok
[INFO] [stdout] test client::tls::tests::test_build_with_custom_timeout ... ok
[INFO] [stdout] test output::tests::test_print_response_raw ... ok
[INFO] [stdout] test client::tls::tests::test_build_insecure_client ... ok
[INFO] [stderr]      Running tests/cli_conformance.rs (/opt/rustwide/target/debug/deps/cli_conformance-b09b49a773b877f0)
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 32 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 10 tests
[INFO] [stderr] error: invalid value 'ksh' for '<SHELL>'
[INFO] [stderr]   [possible values: bash, elvish, fish, powershell, zsh]
[INFO] [stderr] 
[INFO] [stderr]   tip: a similar value exists: 'zsh'
[INFO] [stderr] 
[INFO] [stderr] For more information, try '--help'.
[INFO] [stdout] test group_help_contains_all_actions ... ok
[INFO] [stderr] error: unrecognized subcommand 'nonexistent'
[INFO] [stderr] 
[INFO] [stderr] Usage: wazuh-cli [OPTIONS] <COMMAND>
[INFO] [stderr] 
[INFO] [stderr] For more information, try '--help'.
[INFO] [stdout] test unknown_subcommand_exits_with_code_2 ... ok
[INFO] [stdout] test agent_help_contains_all_actions ... ok
[INFO] [stdout] test completion_rejects_unknown_shell ... ok
[INFO] [stdout] test security_help_contains_all_actions ... ok
[INFO] [stdout] test global_options_are_accepted ... ok
[INFO] [stdout] test manager_help_contains_all_actions ... ok
[INFO] [stdout] test root_help_contains_all_subcommands ... ok
[INFO] [stdout] test completion_zsh_has_compdef_header ... ok
[INFO] [stderr]      Running tests/integration/mod.rs (/opt/rustwide/target/debug/deps/integration-55a6a98b75a20eb9)
[INFO] [stdout] test completion_generates_script_for_each_shell ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.61s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 4 tests
[INFO] [stdout] test test_agent_list ... ignored
[INFO] [stdout] test test_authentication_error ... ignored
[INFO] [stdout] test test_authentication_flow ... ignored
[INFO] [stdout] test test_manager_info ... ignored
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 4 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests wazuh_cli
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "b69403ab2d30a411537d0d913ebd7d4cc069e1e27f8133d4f7dbd7106a42af6d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b69403ab2d30a411537d0d913ebd7d4cc069e1e27f8133d4f7dbd7106a42af6d", kill_on_drop: false }`
[INFO] [stdout] b69403ab2d30a411537d0d913ebd7d4cc069e1e27f8133d4f7dbd7106a42af6d
