[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 try#d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2 for pr-86479 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscaleway%2Fnetbox2netshot" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/scaleway/netbox2netshot on toolchain d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "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-14/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" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded assert-json-diff v2.0.1 [INFO] [stderr] Downloaded flexi_logger v0.17.1 [INFO] [stderr] Downloaded mockito v0.30.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41a80c79ea5a4df908749cf6cee830c39e0671a9733560f0621a221b82789d52 [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" "41a80c79ea5a4df908749cf6cee830c39e0671a9733560f0621a221b82789d52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41a80c79ea5a4df908749cf6cee830c39e0671a9733560f0621a221b82789d52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41a80c79ea5a4df908749cf6cee830c39e0671a9733560f0621a221b82789d52", kill_on_drop: false }` [INFO] [stdout] 41a80c79ea5a4df908749cf6cee830c39e0671a9733560f0621a221b82789d52 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "build" "--frozen" "--message-format=json", 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] 3e152b02048f6ab37c7fc76afad551f80d25f40c8094e60effd2a46f500a4cb9 [INFO] running `Command { std: "docker" "start" "-a" "3e152b02048f6ab37c7fc76afad551f80d25f40c8094e60effd2a46f500a4cb9", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.69 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling openssl v0.10.34 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling futures-task v0.3.14 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling httpdate v1.0.0 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling regex-syntax v0.6.23 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling ipnet v2.3.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling futures-channel v0.3.14 [INFO] [stderr] Compiling lock_api v0.4.3 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-util v0.3.14 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling tokio v1.5.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling openssl-sys v0.9.62 [INFO] [stderr] Compiling tracing v0.1.25 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling regex v1.4.6 [INFO] [stderr] Compiling http-body v0.4.1 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [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_json v1.0.64 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [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 22s [INFO] running `Command { std: "docker" "inspect" "3e152b02048f6ab37c7fc76afad551f80d25f40c8094e60effd2a46f500a4cb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e152b02048f6ab37c7fc76afad551f80d25f40c8094e60effd2a46f500a4cb9", kill_on_drop: false }` [INFO] [stdout] 3e152b02048f6ab37c7fc76afad551f80d25f40c8094e60effd2a46f500a4cb9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "test" "--frozen" "--no-run" "--message-format=json", 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] 0f6747589302d0217f32c0b03c083a4627951023aea9de9c015d982722a47f5c [INFO] running `Command { std: "docker" "start" "-a" "0f6747589302d0217f32c0b03c083a4627951023aea9de9c015d982722a47f5c", 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 20.35s [INFO] running `Command { std: "docker" "inspect" "0f6747589302d0217f32c0b03c083a4627951023aea9de9c015d982722a47f5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f6747589302d0217f32c0b03c083a4627951023aea9de9c015d982722a47f5c", kill_on_drop: false }` [INFO] [stdout] 0f6747589302d0217f32c0b03c083a4627951023aea9de9c015d982722a47f5c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3f8353a45f76162f9920c4789dc13c2ab24a4029edbde7c6ebac87a210126452 [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" "3f8353a45f76162f9920c4789dc13c2ab24a4029edbde7c6ebac87a210126452", 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.15s [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::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 [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] test rest::netbox::tests::authenticated_initialization ... ok [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::netshot] Creating new Netshot client to http://127.0.0.1:1234 [INFO] [stdout] test rest::netbox::tests::anonymous_initialization ... ok [INFO] [stdout] test rest::netbox::tests::single_device_without_name ... 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/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] test rest::netshot::tests::authenticated_initialization ... ok [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] 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::netshot::tests::single_good_device ... ok [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] DEBUG [netbox2netshot::rest::netbox] Creating new Netbox client to http://127.0.0.1:1234 [INFO] [stdout] test rest::netbox::tests::single_device_without_primary_ip ... ok [INFO] [stdout] test rest::netshot::tests::good_device_registration ... 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::netbox] Creating new Netbox client to http://127.0.0.1:1234 [INFO] [stdout] test rest::netbox::tests::successful_ping ... 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 '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] DEBUG [netbox2netshot::rest::netbox] Creating new Netbox client to http://127.0.0.1:1234 [INFO] [stdout] test rest::netbox::tests::failed_ping ... 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] test rest::netbox::tests::single_good_device ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3f8353a45f76162f9920c4789dc13c2ab24a4029edbde7c6ebac87a210126452", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f8353a45f76162f9920c4789dc13c2ab24a4029edbde7c6ebac87a210126452", kill_on_drop: false }` [INFO] [stdout] 3f8353a45f76162f9920c4789dc13c2ab24a4029edbde7c6ebac87a210126452