[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#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscaleway%2Fnetbox2netshot" "/workspace/builds/worker-15/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-15/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/scaleway/netbox2netshot on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "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-15/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" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ded3a8c2ca5e4193388c69914d7de20ccb350ca0dd239a13c402c41d077ff88c [INFO] running `Command { std: "docker" "start" "-a" "ded3a8c2ca5e4193388c69914d7de20ccb350ca0dd239a13c402c41d077ff88c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ded3a8c2ca5e4193388c69914d7de20ccb350ca0dd239a13c402c41d077ff88c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ded3a8c2ca5e4193388c69914d7de20ccb350ca0dd239a13c402c41d077ff88c", kill_on_drop: false }` [INFO] [stdout] ded3a8c2ca5e4193388c69914d7de20ccb350ca0dd239a13c402c41d077ff88c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c9ce6c0ebc68e563d9d2cdc5f1ecb7aa876d8d14a5bc78df15f5b38a1c7d29e [INFO] running `Command { std: "docker" "start" "-a" "6c9ce6c0ebc68e563d9d2cdc5f1ecb7aa876d8d14a5bc78df15f5b38a1c7d29e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling syn v1.0.69 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling futures-core v0.3.14 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling openssl v0.10.34 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling httparse v1.4.0 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling futures-task v0.3.14 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling httpdate v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.6.23 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling mime v0.3.16 [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 http v0.2.4 [INFO] [stderr] Compiling futures-channel v0.3.14 [INFO] [stderr] Compiling futures-util v0.3.14 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling socket2 v0.4.0 [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 clap v2.33.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling openssl-sys v0.9.62 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling regex v1.4.6 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling http-body v0.4.1 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [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 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 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 1m 15s [INFO] running `Command { std: "docker" "inspect" "6c9ce6c0ebc68e563d9d2cdc5f1ecb7aa876d8d14a5bc78df15f5b38a1c7d29e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c9ce6c0ebc68e563d9d2cdc5f1ecb7aa876d8d14a5bc78df15f5b38a1c7d29e", kill_on_drop: false }` [INFO] [stdout] 6c9ce6c0ebc68e563d9d2cdc5f1ecb7aa876d8d14a5bc78df15f5b38a1c7d29e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e795c5d785b01bf45cbf8e73ccb16e89e9763190b61d870abd2b67208a9f27d5 [INFO] running `Command { std: "docker" "start" "-a" "e795c5d785b01bf45cbf8e73ccb16e89e9763190b61d870abd2b67208a9f27d5", kill_on_drop: false }` [INFO] [stderr] Compiling difference v2.0.0 [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 7.48s [INFO] running `Command { std: "docker" "inspect" "e795c5d785b01bf45cbf8e73ccb16e89e9763190b61d870abd2b67208a9f27d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e795c5d785b01bf45cbf8e73ccb16e89e9763190b61d870abd2b67208a9f27d5", kill_on_drop: false }` [INFO] [stdout] e795c5d785b01bf45cbf8e73ccb16e89e9763190b61d870abd2b67208a9f27d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 763c6d4981ed15e0943248b1f1823279d507a7d41175a17fa57b0b7212365b77 [INFO] running `Command { std: "docker" "start" "-a" "763c6d4981ed15e0943248b1f1823279d507a7d41175a17fa57b0b7212365b77", 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: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/netbox2netshot-e1689ef35c6fdd27) [INFO] [stdout] [INFO] [stdout] running 10 tests [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 [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] 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] test rest::netshot::tests::authenticated_initialization ... ok [INFO] [stdout] test rest::netbox::tests::anonymous_initialization ... ok [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] test rest::netbox::tests::authenticated_initialization ... ok [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_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 [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_name ... 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 '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 [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::netshot] Creating new Netshot client to http://127.0.0.1:1234 [INFO] [stdout] test rest::netbox::tests::single_good_device ... ok [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::netshot] Creating new Netshot client to http://127.0.0.1:1234 [INFO] [stdout] test rest::netshot::tests::good_device_registration ... 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] 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] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "763c6d4981ed15e0943248b1f1823279d507a7d41175a17fa57b0b7212365b77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "763c6d4981ed15e0943248b1f1823279d507a7d41175a17fa57b0b7212365b77", kill_on_drop: false }` [INFO] [stdout] 763c6d4981ed15e0943248b1f1823279d507a7d41175a17fa57b0b7212365b77