[INFO] cloning repository https://github.com/scaleway/netbox2netshot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/scaleway/netbox2netshot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscaleway%2Fnetbox2netshot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscaleway%2Fnetbox2netshot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d0471795c54a632eb38978270b8ad054afe9a1de [INFO] testing scaleway/netbox2netshot against master#b70888601af92f6cdc0364abab3446e418b91d36 for pr-86479 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscaleway%2Fnetbox2netshot" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/scaleway/netbox2netshot on toolchain b70888601af92f6cdc0364abab3446e418b91d36 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/scaleway/netbox2netshot [INFO] finished tweaking git repo https://github.com/scaleway/netbox2netshot [INFO] tweaked toml for git repo https://github.com/scaleway/netbox2netshot written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/scaleway/netbox2netshot already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ef536bb4b8b44abda63fa1196e4e449dd0a46ae7504293176307921851895c2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8ef536bb4b8b44abda63fa1196e4e449dd0a46ae7504293176307921851895c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ef536bb4b8b44abda63fa1196e4e449dd0a46ae7504293176307921851895c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ef536bb4b8b44abda63fa1196e4e449dd0a46ae7504293176307921851895c2", kill_on_drop: false }` [INFO] [stdout] 8ef536bb4b8b44abda63fa1196e4e449dd0a46ae7504293176307921851895c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 952a39e17656a0f182e5ba5e527e337a8d6a7d0a82c38eb5d7b2242138fffc23 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "952a39e17656a0f182e5ba5e527e337a8d6a7d0a82c38eb5d7b2242138fffc23", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling futures-core v0.3.14 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling openssl v0.10.34 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling httparse v1.4.0 [INFO] [stderr] Compiling futures-task v0.3.14 [INFO] [stderr] Compiling futures-sink v0.3.14 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling httpdate v1.0.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling regex-syntax v0.6.23 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling ipnet v2.3.0 [INFO] [stderr] Compiling tokio v1.5.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.3 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.14 [INFO] [stderr] Compiling futures-channel v0.3.14 [INFO] [stderr] Compiling http-body v0.4.1 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tracing v0.1.25 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling syn v1.0.69 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling openssl-sys v0.9.62 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling regex v1.4.6 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling flexi_logger v0.17.1 [INFO] [stderr] Compiling pin-project v1.0.7 [INFO] [stderr] Compiling structopt v0.3.21 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling tokio-util v0.6.6 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling hyper v0.14.7 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.3 [INFO] [stderr] Compiling netbox2netshot v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let mut netbox_hashmap: HashMap<_, _> = netbox_devices [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/rest/netbox.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_anonymous` [INFO] [stdout] --> src/rest/netbox.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new_anonymous(url: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 00s [INFO] running `Command { std: "docker" "inspect" "952a39e17656a0f182e5ba5e527e337a8d6a7d0a82c38eb5d7b2242138fffc23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "952a39e17656a0f182e5ba5e527e337a8d6a7d0a82c38eb5d7b2242138fffc23", kill_on_drop: false }` [INFO] [stdout] 952a39e17656a0f182e5ba5e527e337a8d6a7d0a82c38eb5d7b2242138fffc23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f563363c971392361a579a170bc3e4dd6cf7a56faa1d9904a641e052b7607d8c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f563363c971392361a579a170bc3e4dd6cf7a56faa1d9904a641e052b7607d8c", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling ctor v0.1.20 [INFO] [stderr] Compiling assert-json-diff v2.0.1 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling mockito v0.30.0 [INFO] [stderr] Compiling netbox2netshot v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Duplicate` [INFO] [stdout] --> src/main.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | use flexi_logger::{Duplicate, LogTarget, Logger}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let mut netbox_hashmap: HashMap<_, _> = netbox_devices [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 21.74s [INFO] running `Command { std: "docker" "inspect" "f563363c971392361a579a170bc3e4dd6cf7a56faa1d9904a641e052b7607d8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f563363c971392361a579a170bc3e4dd6cf7a56faa1d9904a641e052b7607d8c", kill_on_drop: false }` [INFO] [stdout] f563363c971392361a579a170bc3e4dd6cf7a56faa1d9904a641e052b7607d8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 48214c082dfebd15538bfd3e3c5a04f20898574ac55c30ae50d05172eafe3916 [INFO] running `Command { std: "docker" "start" "-a" "48214c082dfebd15538bfd3e3c5a04f20898574ac55c30ae50d05172eafe3916", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Duplicate` [INFO] [stderr] --> src/main.rs:163:24 [INFO] [stderr] | [INFO] [stderr] 163 | use flexi_logger::{Duplicate, LogTarget, Logger}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:110:9 [INFO] [stderr] | [INFO] [stderr] 110 | let mut netbox_hashmap: HashMap<_, _> = netbox_devices [INFO] [stderr] | ----^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `netbox2netshot` (bin "netbox2netshot" test) generated 2 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/netbox2netshot-80dcf04eec4af2f7) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] DEBUG [mockito::server] Server is listening at 127.0.0.1:1234 [INFO] [stdout] DEBUG [netbox2netshot::rest::netshot] Creating new Netshot client to http://127.0.0.1:1234 [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Creating new Netbox client to http://127.0.0.1:1234 [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Creating new Netbox client to http://127.0.0.1:1234 [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Creating new Netbox client to http://127.0.0.1:1234 [INFO] [stdout] DEBUG [reqwest::connect] starting new connection: http://127.0.0.1:1234/ [INFO] [stdout] DEBUG [mockito::server] Request received: [INFO] [stdout] GET /api/dcim/devices/?limit=100&offset=0& [INFO] [stdout] accept: */* [INFO] [stdout] user-agent: netbox2netshot [INFO] [stdout] host: 127.0.0.1:1234 [INFO] [stdout] [INFO] [stdout] DEBUG [mockito::server] Mock found [INFO] [stdout] test rest::netbox::tests::anonymous_initialization ... ok [INFO] [stdout] DEBUG [reqwest::async_impl::client] response '200 OK' for http://127.0.0.1:1234/api/dcim/devices/?limit=100&offset=0& [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Got 1 devices on the 1 matches (page 0/0) [INFO] [stdout] INFO [netbox2netshot::rest::netbox] Fetched 1 devices from Netbox [INFO] [stdout] DEBUG [mockito] Mock::drop() called for [INFO] [stdout] GET /api/dcim/devices/?(any) [INFO] [stdout] [INFO] [stdout] test rest::netbox::tests::single_good_device ... ok [INFO] [stdout] DEBUG [netbox2netshot::rest::netshot] Creating new Netshot client to http://127.0.0.1:1234 [INFO] [stdout] DEBUG [reqwest::connect] starting new connection: http://127.0.0.1:1234/ [INFO] [stdout] DEBUG [mockito::server] Request received: [INFO] [stdout] GET /api/devices [INFO] [stdout] accept: application/json [INFO] [stdout] user-agent: netbox2netshot [INFO] [stdout] x-netshot-api-token: [INFO] [stdout] host: 127.0.0.1:1234 [INFO] [stdout] [INFO] [stdout] DEBUG [mockito::server] Mock found [INFO] [stdout] DEBUG [reqwest::async_impl::client] response '200 OK' for http://127.0.0.1:1234/api/devices [INFO] [stdout] DEBUG [netbox2netshot::rest::netshot] Got 1 devices from Netshot [INFO] [stdout] DEBUG [mockito] Mock::drop() called for [INFO] [stdout] GET /api/devices?(any) [INFO] [stdout] [INFO] [stdout] test rest::netshot::tests::single_good_device ... ok [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Creating new Netbox client to http://127.0.0.1:1234 [INFO] [stdout] test rest::netbox::tests::authenticated_initialization ... ok [INFO] [stdout] test rest::netshot::tests::authenticated_initialization ... ok [INFO] [stdout] DEBUG [reqwest::connect] starting new connection: http://127.0.0.1:1234/ [INFO] [stdout] DEBUG [mockito::server] Request received: [INFO] [stdout] GET /api/dcim/devices/?limit=100&offset=0& [INFO] [stdout] accept: */* [INFO] [stdout] user-agent: netbox2netshot [INFO] [stdout] host: 127.0.0.1:1234 [INFO] [stdout] [INFO] [stdout] DEBUG [mockito::server] Mock found [INFO] [stdout] DEBUG [reqwest::async_impl::client] response '200 OK' for http://127.0.0.1:1234/api/dcim/devices/?limit=100&offset=0& [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Got 1 devices on the 1 matches (page 0/0) [INFO] [stdout] INFO [netbox2netshot::rest::netbox] Fetched 1 devices from Netbox [INFO] [stdout] DEBUG [mockito] Mock::drop() called for [INFO] [stdout] GET /api/dcim/devices/?(any) [INFO] [stdout] [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Creating new Netbox client to http://127.0.0.1:1234 [INFO] [stdout] test rest::netbox::tests::single_device_without_name ... ok [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Pinging http://127.0.0.1:1234/api/dcim/devices/?name=netbox2netshot-ping [INFO] [stdout] DEBUG [reqwest::connect] starting new connection: http://127.0.0.1:1234/ [INFO] [stdout] DEBUG [mockito::server] Request received: [INFO] [stdout] GET /api/dcim/devices/?name=netbox2netshot-ping [INFO] [stdout] accept: */* [INFO] [stdout] user-agent: netbox2netshot [INFO] [stdout] host: 127.0.0.1:1234 [INFO] [stdout] [INFO] [stdout] DEBUG [mockito::server] Mock found [INFO] [stdout] DEBUG [reqwest::async_impl::client] response '200 OK' for http://127.0.0.1:1234/api/dcim/devices/?name=netbox2netshot-ping [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Ping response: 200 OK [INFO] [stdout] DEBUG [mockito] Mock::drop() called for [INFO] [stdout] GET /api/dcim/devices/?name=netbox2netshot-ping [INFO] [stdout] [INFO] [stdout] DEBUG [netbox2netshot::rest::netshot] Creating new Netshot client to http://127.0.0.1:1234 [INFO] [stdout] INFO [netbox2netshot::rest::netshot] Registering new device with IP 1.2.3.4 [INFO] [stdout] DEBUG [reqwest::connect] starting new connection: http://127.0.0.1:1234/ [INFO] [stdout] DEBUG [mockito::server] Request received: [INFO] [stdout] POST /api/devices [INFO] [stdout] content-type: application/json [INFO] [stdout] accept: application/json [INFO] [stdout] user-agent: netbox2netshot [INFO] [stdout] x-netshot-api-token: [INFO] [stdout] host: 127.0.0.1:1234 [INFO] [stdout] content-length: 56 [INFO] [stdout] {"autoDiscover":true,"ipAddress":"1.2.3.4","domainId":2} [INFO] [stdout] [INFO] [stdout] DEBUG [mockito::server] Mock found [INFO] [stdout] DEBUG [reqwest::async_impl::client] response '200 OK' for http://127.0.0.1:1234/api/devices [INFO] [stdout] DEBUG [netbox2netshot::rest::netshot] Device registration for device 1.2.3.4 requested with task ID 504 [INFO] [stdout] DEBUG [mockito] Mock::drop() called for [INFO] [stdout] POST /api/devices?(any) [INFO] [stdout] {"autoDiscover":true,"ipAddress":"1.2.3.4","domainId":2} [INFO] [stdout] [INFO] [stdout] test rest::netbox::tests::successful_ping ... ok [INFO] [stdout] test rest::netshot::tests::good_device_registration ... ok [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Creating new Netbox client to http://127.0.0.1:1234 [INFO] [stdout] DEBUG [reqwest::connect] starting new connection: http://127.0.0.1:1234/ [INFO] [stdout] DEBUG [mockito::server] Request received: [INFO] [stdout] GET /api/dcim/devices/?limit=100&offset=0& [INFO] [stdout] accept: */* [INFO] [stdout] user-agent: netbox2netshot [INFO] [stdout] host: 127.0.0.1:1234 [INFO] [stdout] [INFO] [stdout] DEBUG [mockito::server] Mock found [INFO] [stdout] DEBUG [reqwest::async_impl::client] response '200 OK' for http://127.0.0.1:1234/api/dcim/devices/?limit=100&offset=0& [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Got 1 devices on the 1 matches (page 0/0) [INFO] [stdout] INFO [netbox2netshot::rest::netbox] Fetched 1 devices from Netbox [INFO] [stdout] DEBUG [mockito] Mock::drop() called for [INFO] [stdout] GET /api/dcim/devices/?(any) [INFO] [stdout] [INFO] [stdout] test rest::netbox::tests::single_device_without_primary_ip ... ok [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Creating new Netbox client to http://127.0.0.1:1234 [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Pinging http://127.0.0.1:1234/api/dcim/devices/?name=netbox2netshot-ping [INFO] [stdout] DEBUG [reqwest::connect] starting new connection: http://127.0.0.1:1234/ [INFO] [stdout] DEBUG [mockito::server] Request received: [INFO] [stdout] GET /api/dcim/devices/?name=netbox2netshot-ping [INFO] [stdout] accept: */* [INFO] [stdout] user-agent: netbox2netshot [INFO] [stdout] host: 127.0.0.1:1234 [INFO] [stdout] [INFO] [stdout] DEBUG [mockito::server] Mock found [INFO] [stdout] DEBUG [reqwest::async_impl::client] response '403 Forbidden' for http://127.0.0.1:1234/api/dcim/devices/?name=netbox2netshot-ping [INFO] [stdout] DEBUG [netbox2netshot::rest::netbox] Ping response: 403 Forbidden [INFO] [stdout] DEBUG [mockito] Mock::drop() called for [INFO] [stdout] GET (any) [INFO] [stdout] [INFO] [stdout] test rest::netbox::tests::failed_ping ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.21s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "48214c082dfebd15538bfd3e3c5a04f20898574ac55c30ae50d05172eafe3916", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48214c082dfebd15538bfd3e3c5a04f20898574ac55c30ae50d05172eafe3916", kill_on_drop: false }` [INFO] [stdout] 48214c082dfebd15538bfd3e3c5a04f20898574ac55c30ae50d05172eafe3916