[INFO] fetching crate guardia-rs-urn 1.0.0... [INFO] testing guardia-rs-urn-1.0.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate guardia-rs-urn 1.0.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate guardia-rs-urn 1.0.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate guardia-rs-urn 1.0.0 [INFO] tweaked toml for crates.io crate guardia-rs-urn 1.0.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate guardia-rs-urn 1.0.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate guardia-rs-urn 1.0.0 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0314a5792c47703d5780027c010c77237b9e80fd706c18dfcafc7d6e2cd6c1fa [INFO] running `Command { std: "docker" "start" "-a" "0314a5792c47703d5780027c010c77237b9e80fd706c18dfcafc7d6e2cd6c1fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0314a5792c47703d5780027c010c77237b9e80fd706c18dfcafc7d6e2cd6c1fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0314a5792c47703d5780027c010c77237b9e80fd706c18dfcafc7d6e2cd6c1fa", kill_on_drop: false }` [INFO] [stdout] 0314a5792c47703d5780027c010c77237b9e80fd706c18dfcafc7d6e2cd6c1fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a980053cd916af43d300666a6155a19c4bc0af431ab0b237a5b3fc8c75c56acc [INFO] running `Command { std: "docker" "start" "-a" "a980053cd916af43d300666a6155a19c4bc0af431ab0b237a5b3fc8c75c56acc", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling clap v4.5.38 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling guardia-rs-urn v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.32s [INFO] running `Command { std: "docker" "inspect" "a980053cd916af43d300666a6155a19c4bc0af431ab0b237a5b3fc8c75c56acc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a980053cd916af43d300666a6155a19c4bc0af431ab0b237a5b3fc8c75c56acc", kill_on_drop: false }` [INFO] [stdout] a980053cd916af43d300666a6155a19c4bc0af431ab0b237a5b3fc8c75c56acc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7b27d471255af11a1ca8f13c15650dc3a216343a519a0a0ab235a7b089b0e9db [INFO] running `Command { std: "docker" "start" "-a" "7b27d471255af11a1ca8f13c15650dc3a216343a519a0a0ab235a7b089b0e9db", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling peg-runtime v0.6.3 [INFO] [stderr] Compiling unicode-linebreak v0.1.5 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling smawk v0.3.2 [INFO] [stderr] Compiling inflections v1.1.1 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling inventory v0.3.20 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling drain_filter_polyfill v0.1.3 [INFO] [stderr] Compiling textwrap v0.16.2 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling peg-macros v0.6.3 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling terminal_size v0.4.2 [INFO] [stderr] Compiling clap_builder v4.5.38 [INFO] [stderr] Compiling peg v0.6.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling nom_locate v4.2.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling sealed v0.5.0 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling typed-builder-macro v0.15.2 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Compiling synthez-core v0.3.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling typed-builder v0.15.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling synthez-codegen v0.3.1 [INFO] [stderr] Compiling lazy-regex-proc_macros v3.4.1 [INFO] [stderr] Compiling synthez v0.3.1 [INFO] [stderr] Compiling globwalk v0.9.1 [INFO] [stderr] Compiling cucumber-expressions v0.3.0 [INFO] [stderr] Compiling clap v4.5.38 [INFO] [stderr] Compiling lazy-regex v3.4.1 [INFO] [stderr] Compiling cucumber-codegen v0.21.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling guardia-rs-urn v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling gherkin v0.14.0 [INFO] [stderr] Compiling cucumber v0.21.1 [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> tests/steps/parser_steps.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | fn assert_urn_field(world: &ParserWorld, actual: Option<&String>, expected: &str, field_name: &str) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 53.64s [INFO] running `Command { std: "docker" "inspect" "7b27d471255af11a1ca8f13c15650dc3a216343a519a0a0ab235a7b089b0e9db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b27d471255af11a1ca8f13c15650dc3a216343a519a0a0ab235a7b089b0e9db", kill_on_drop: false }` [INFO] [stdout] 7b27d471255af11a1ca8f13c15650dc3a216343a519a0a0ab235a7b089b0e9db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 204719d8aff92dd199f023e2d2bde6f2212ef05d9abcf061c12374210527a18c [INFO] running `Command { std: "docker" "start" "-a" "204719d8aff92dd199f023e2d2bde6f2212ef05d9abcf061c12374210527a18c", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> tests/steps/parser_steps.rs:129:21 [INFO] [stderr] | [INFO] [stderr] 129 | fn assert_urn_field(world: &ParserWorld, actual: Option<&String>, expected: &str, field_name: &str) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `guardia-rs-urn` (test "cucumber") generated 1 warning (run `cargo fix --test "cucumber" -p guardia-rs-urn` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/guardia_rs_urn-74bb33edb1bc8b5a) [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/guardia_rs_urn-b7fd1267f083758a) [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] [stderr] Running tests/cucumber.rs (/opt/rustwide/target/debug/deps/cucumber-3574f9a3997ccb91) [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] [stdout] Feature: URN Generation [INFO] [stdout] Scenario: Generate a valid URN with all required fields [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "lke" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then the generated URN should be "urn:guardia:org:a5b1d001-3b82-4deb-8602-9463f733646e:tenant:a5b1d001-3b82-4deb-8602-9463f733646e:lke:user:a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] Scenario: Attempt to generate a URN without organization_id [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "lke" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Missing required field: organization_id" should be returned [INFO] [stdout] ✔ Then existing 1 errors should be returned [INFO] [stdout] Scenario: Attempt to generate a URN without tenant_id [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "lke" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Missing required field: tenant_id" should be returned [INFO] [stdout] ✔ Then existing 1 errors should be returned [INFO] [stdout] Scenario: Attempt to generate a URN without product [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Missing required field: product" should be returned [INFO] [stdout] ✔ Then existing 1 errors should be returned [INFO] [stdout] Scenario: Attempt to generatea URN without rail [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "psa" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Missing required field: rail" should be returned [INFO] [stdout] ✔ Then an error "Missing required field: provider" should be returned [INFO] [stdout] ✔ Then existing 2 errors should be returned [INFO] [stdout] Scenario: Attempt to generate a URN with an invalid product [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "invalid_product" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Invalid product: invalid_product" should be returned [INFO] [stdout] ✔ Then existing 1 errors should be returned [INFO] [stdout] Scenario: Generate a valid URN for the PSA product [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "psa" [INFO] [stdout] ✔ And with rail "p2p" [INFO] [stdout] ✔ And with provider "guardia" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then the generated URN should be "urn:guardia:org:a5b1d001-3b82-4deb-8602-9463f733646e:tenant:a5b1d001-3b82-4deb-8602-9463f733646e:psa:user:a5b1d001-3b82-4deb-8602-9463f733646e:p2p:guardia" [INFO] [stdout] Scenario: Generate a valid URN for the DWA product [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "dwa" [INFO] [stdout] ✔ And with protocol "http" [INFO] [stdout] ✔ And with provider "guardia" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then the generated URN should be "urn:guardia:org:a5b1d001-3b82-4deb-8602-9463f733646e:tenant:a5b1d001-3b82-4deb-8602-9463f733646e:dwa:user:a5b1d001-3b82-4deb-8602-9463f733646e:http:guardia" [INFO] [stdout] Scenario: Attempt to generate a URN with an invalid rail for PSA [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "psa" [INFO] [stdout] ✔ And with rail "invalid_rail" [INFO] [stdout] ✔ And with provider "guardia" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Invalid rail: invalid_rail" should be returned [INFO] [stdout] ✔ Then existing 1 errors should be returned [INFO] [stdout] Scenario: Attempt to generate a URN with an invalid protocol for DWA [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "dwa" [INFO] [stdout] ✔ And with protocol "invalid_protocol" [INFO] [stdout] ✔ And with provider "guardia" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Invalid protocol: invalid_protocol" should be returned [INFO] [stdout] ✔ Then existing 1 errors should be returned [INFO] [stdout] Scenario: Generate a invalid URN [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Missing required field: organization_id" should be returned [INFO] [stdout] ✔ Then an error "Missing required field: tenant_id" should be returned [INFO] [stdout] ✔ Then an error "Missing required field: entity_type" should be returned [INFO] [stdout] ✔ Then an error "Missing required field: entity_id" should be returned [INFO] [stdout] ✔ Then an error "Missing required field: product" should be returned [INFO] [stdout] ✔ Then existing 5 errors should be returned [INFO] [stdout] Scenario: Attempt to generate a URN with rail and provider for a product that does not require them [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "lke" [INFO] [stdout] ✔ And with rail "p2p" [INFO] [stdout] ✔ And with provider "guardia" [INFO] [stdout] ✔ And with protocol "http" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Invalid rail: Rail should not be provided for product 'lke'" should be returned [INFO] [stdout] ✔ Then an error "Invalid provider: Provider should not be provided for product 'lke'" should be returned [INFO] [stdout] ✔ Then an error "Invalid protocol: Protocol should not be provided for product 'lke'" should be returned [INFO] [stdout] ✔ Then existing 3 errors should be returned [INFO] [stdout] Scenario: Attempt to generate a URN without rail for a product that requires it [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "psa" [INFO] [stdout] ✔ And with provider "guardia" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Missing required field: rail" should be returned [INFO] [stdout] ✔ Then existing 1 errors should be returned [INFO] [stdout] Scenario: Generate a URN with environment variables [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And the environment variable "ORGANIZATION_ID" is "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the environment variable "TENANT_ID" is "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the environment variable "PRODUCT" is "lke" [INFO] [stdout] ✔ And the environment variable "ENTITY_TYPE" is "user" [INFO] [stdout] ✔ And the environment variable "ENTITY_ID" is "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the environment variable "REGION" is "us-east-1" [INFO] [stdout] ✔ And the environment variable "CLOUD_PROVIDER" is "aws" [INFO] [stdout] ✔ When I call the from_env method [INFO] [stdout] ✔ And I call the build method [INFO] [stdout] ✔ Then the generated URN should be "urn:guardia:org:a5b1d001-3b82-4deb-8602-9463f733646e:tenant:a5b1d001-3b82-4deb-8602-9463f733646e:lke:user:a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] Scenario: Attempt to generate a URN with an invalid provider [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "psa" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with rail "p2p" [INFO] [stdout] ✔ And with provider "invalid_provider" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Invalid provider: invalid_provider" should be returned [INFO] [stdout] ✔ Then existing 1 errors should be returned [INFO] [stdout] Scenario: Attempt to generate a URN without protocol for a product that requires it [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "dwa" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with rail "p2p" [INFO] [stdout] ✔ And with provider "guardia" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Invalid rail: Rail should not be provided for product 'dwa'" should be returned [INFO] [stdout] ✔ Then an error "Missing required field: protocol" should be returned [INFO] [stdout] ✔ Then existing 2 errors should be returned [INFO] [stdout] Scenario: Attempt to generate a URN with protocol for a product that does not require it [INFO] [stdout] ✔ Given a default UrnBuilder [INFO] [stdout] ✔ And with organization_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with tenant_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with product "lke" [INFO] [stdout] ✔ And with entity_type "user" [INFO] [stdout] ✔ And with entity_id "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And with protocol "http" [INFO] [stdout] ✔ When I call the build method [INFO] [stdout] ✔ Then an error "Protocol should not be provided for product 'lke'" should be returned [INFO] [stdout] ✔ Then existing 1 errors should be returned [INFO] [stdout] [Summary] [INFO] [stdout] 1 feature [INFO] [stdout] 17 scenarios (17 passed) [INFO] [stdout] 169 steps (169 passed) [INFO] [stdout] Feature: URN Parsing [INFO] [stdout] Scenario: Parse a valid URN with all required fields [INFO] [stdout] ✔ Given the URN is "urn:guardia:org:a5b1d001-3b82-4deb-8602-9463f733646e:tenant:a5b1d001-3b82-4deb-8602-9463f733646e:lke:user:a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ When I call the parse method [INFO] [stdout] ✔ Then the URN should be parsed successfully [INFO] [stdout] ✔ And the organization_id should be "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the tenant_id should be "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the product should be "lke" [INFO] [stdout] ✔ And the entity_type should be "user" [INFO] [stdout] ✔ And the entity_id should be "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] Scenario: Attempt to parse a URN without organization_id [INFO] [stdout] ✔ Given the URN is "urn:guardia:org::tenant:a5b1d001-3b82-4deb-8602-9463f733646e:lke:user:a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ When I call the parse method [INFO] [stdout] ✔ Then an error "Missing required field: organization_id" should be returned [INFO] [stdout] Scenario: Attempt to parse a URN with an invalid product [INFO] [stdout] ✔ Given the URN is "urn:guardia:org:a5b1d001-3b82-4deb-8602-9463f733646e:tenant:a5b1d001-3b82-4deb-8602-9463f733646e:invalid_product:user:a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ When I call the parse method [INFO] [stdout] ✔ Then an error "Invalid product: invalid_product" should be returned [INFO] [stdout] Scenario: Parse a valid URN for the PSA product [INFO] [stdout] ✔ Given the URN is "urn:guardia:org:a5b1d001-3b82-4deb-8602-9463f733646e:tenant:a5b1d001-3b82-4deb-8602-9463f733646e:psa:user:a5b1d001-3b82-4deb-8602-9463f733646e:p2p:guardia" [INFO] [stdout] ✔ When I call the parse method [INFO] [stdout] ✔ Then the URN should be parsed successfully [INFO] [stdout] ✔ And the organization_id should be "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the tenant_id should be "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the product should be "psa" [INFO] [stdout] ✔ And the entity_type should be "user" [INFO] [stdout] ✔ And the entity_id should be "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the rail should be "p2p" [INFO] [stdout] ✔ And the provider should be "guardia" [INFO] [stdout] Scenario: Attempt to parse a URN with an invalid rail for PSA [INFO] [stdout] ✔ Given the URN is "urn:guardia:org:a5b1d001-3b82-4deb-8602-9463f733646e:tenant:a5b1d001-3b82-4deb-8602-9463f733646e:psa:user:a5b1d001-3b82-4deb-8602-9463f733646e:invalid_rail:guardia" [INFO] [stdout] ✔ When I call the parse method [INFO] [stdout] ✔ Then an error "Invalid rail: invalid_rail" should be returned [INFO] [stdout] Scenario: Parse a valid URN for the DWA product [INFO] [stdout] ✔ Given the URN is "urn:guardia:org:a5b1d001-3b82-4deb-8602-9463f733646e:tenant:a5b1d001-3b82-4deb-8602-9463f733646e:dwa:user:a5b1d001-3b82-4deb-8602-9463f733646e:http:guardia" [INFO] [stdout] ✔ When I call the parse method [INFO] [stdout] ✔ Then the URN should be parsed successfully [INFO] [stdout] ✔ And the organization_id should be "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the tenant_id should be "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the product should be "dwa" [INFO] [stdout] ✔ And the entity_type should be "user" [INFO] [stdout] ✔ And the entity_id should be "a5b1d001-3b82-4deb-8602-9463f733646e" [INFO] [stdout] ✔ And the protocol should be "http" [INFO] [stdout] ✔ And the provider should be "guardia" [INFO] [stdout] Scenario: Attempt to parse a URN with an invalid protocol for DWA [INFO] [stdout] ✔ Given the URN is "urn:GUARDIA:org:a5b1d001-3b82-4deb-8602-9463f733646e:tenant:a5b1d001-3b82-4deb-8602-9463f733646e:dwa:user:a5b1d001-3b82-4deb-8602-9463f733646e:http:guardia:invalid" [INFO] [stdout] ✔ When I call the parse method [INFO] [stdout] ✔ Then an error "Invalid URN format" should be returned [INFO] [stdout] [Summary] [INFO] [stdout] 1 feature [INFO] [stdout] 7 scenarios (7 passed) [INFO] [stdout] 40 steps (40 passed) [INFO] [stderr] Doc-tests guardia_rs_urn [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" "204719d8aff92dd199f023e2d2bde6f2212ef05d9abcf061c12374210527a18c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "204719d8aff92dd199f023e2d2bde6f2212ef05d9abcf061c12374210527a18c", kill_on_drop: false }` [INFO] [stdout] 204719d8aff92dd199f023e2d2bde6f2212ef05d9abcf061c12374210527a18c