[INFO] fetching crate guardia-rs-urn 1.0.0... [INFO] testing guardia-rs-urn-1.0.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate guardia-rs-urn 1.0.0 into /workspace/builds/worker-4-tc1/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-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate guardia-rs-urn 1.0.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sealed v0.5.0 [INFO] [stderr] Downloaded drain_filter_polyfill v0.1.3 [INFO] [stderr] Downloaded peg-macros v0.6.3 [INFO] [stderr] Downloaded synthez-codegen v0.3.1 [INFO] [stderr] Downloaded synthez-core v0.3.1 [INFO] [stderr] Downloaded cucumber-expressions v0.3.0 [INFO] [stderr] Downloaded cucumber-codegen v0.21.1 [INFO] [stderr] Downloaded peg v0.6.3 [INFO] [stderr] Downloaded gherkin v0.14.0 [INFO] [stderr] Downloaded cucumber v0.21.1 [INFO] [stderr] Downloaded synthez v0.3.1 [INFO] [stderr] Downloaded peg-runtime v0.6.3 [INFO] [stderr] Downloaded typed-builder-macro v0.15.2 [INFO] [stderr] Downloaded typed-builder v0.15.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a125c82e202764dd6ba2418569eacc7aa30c7c19256b346d46fd0f291de913ed [INFO] running `Command { std: "docker" "start" "-a" "a125c82e202764dd6ba2418569eacc7aa30c7c19256b346d46fd0f291de913ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a125c82e202764dd6ba2418569eacc7aa30c7c19256b346d46fd0f291de913ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a125c82e202764dd6ba2418569eacc7aa30c7c19256b346d46fd0f291de913ed", kill_on_drop: false }` [INFO] [stdout] a125c82e202764dd6ba2418569eacc7aa30c7c19256b346d46fd0f291de913ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 19fc45d629292a148a1d24ca2d5cf0f7647948b2e14d1938520b6b4c6c6a874f [INFO] running `Command { std: "docker" "start" "-a" "19fc45d629292a148a1d24ca2d5cf0f7647948b2e14d1938520b6b4c6c6a874f", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling clap_builder v4.5.38 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling clap v4.5.38 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling guardia-rs-urn v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.41s [INFO] running `Command { std: "docker" "inspect" "19fc45d629292a148a1d24ca2d5cf0f7647948b2e14d1938520b6b4c6c6a874f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19fc45d629292a148a1d24ca2d5cf0f7647948b2e14d1938520b6b4c6c6a874f", kill_on_drop: false }` [INFO] [stdout] 19fc45d629292a148a1d24ca2d5cf0f7647948b2e14d1938520b6b4c6c6a874f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] f50bbaf493eff9fb6bc3bd6bf2f51da8333fea7d693460f0fea209769196493c [INFO] running `Command { std: "docker" "start" "-a" "f50bbaf493eff9fb6bc3bd6bf2f51da8333fea7d693460f0fea209769196493c", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling sealed v0.5.0 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling peg-runtime v0.6.3 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling synthez-core v0.3.1 [INFO] [stderr] Compiling typed-builder-macro v0.15.2 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling peg-macros v0.6.3 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling terminal_size v0.4.2 [INFO] [stderr] Compiling clap_builder v4.5.38 [INFO] [stderr] Compiling nom_locate v4.2.0 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling synthez-codegen v0.3.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling smawk v0.3.2 [INFO] [stderr] Compiling unicode-linebreak v0.1.5 [INFO] [stderr] Compiling synthez v0.3.1 [INFO] [stderr] Compiling typed-builder v0.15.2 [INFO] [stderr] Compiling peg v0.6.3 [INFO] [stderr] Compiling textwrap v0.16.2 [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling inflections v1.1.1 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling drain_filter_polyfill v0.1.3 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling inventory v0.3.20 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling clap v4.5.38 [INFO] [stderr] Compiling cucumber-expressions v0.3.0 [INFO] [stderr] Compiling globwalk v0.9.1 [INFO] [stderr] Compiling lazy-regex-proc_macros v3.4.1 [INFO] [stderr] Compiling cucumber-codegen v0.21.1 [INFO] [stderr] Compiling lazy-regex v3.4.1 [INFO] [stderr] Compiling gherkin v0.14.0 [INFO] [stderr] Compiling guardia-rs-urn v1.0.0 (/opt/rustwide/workdir) [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 31.88s [INFO] running `Command { std: "docker" "inspect" "f50bbaf493eff9fb6bc3bd6bf2f51da8333fea7d693460f0fea209769196493c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f50bbaf493eff9fb6bc3bd6bf2f51da8333fea7d693460f0fea209769196493c", kill_on_drop: false }` [INFO] [stdout] f50bbaf493eff9fb6bc3bd6bf2f51da8333fea7d693460f0fea209769196493c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] d566a0267502cc064bd84f093a8a904cebc8811156fc1e078c49032fdb02d4ed [INFO] running `Command { std: "docker" "start" "-a" "d566a0267502cc064bd84f093a8a904cebc8811156fc1e078c49032fdb02d4ed", 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)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `guardia-rs-urn` (test "cucumber") generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/guardia_rs_urn-506770bf88cad272) [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/guardia_rs_urn-4e2a64977c5a19e4) [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] [INFO] [stdout] running 0 tests [INFO] [stderr] Running tests/cucumber.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/cucumber-314862398580fb56) [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] running `Command { std: "docker" "inspect" "d566a0267502cc064bd84f093a8a904cebc8811156fc1e078c49032fdb02d4ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d566a0267502cc064bd84f093a8a904cebc8811156fc1e078c49032fdb02d4ed", kill_on_drop: false }` [INFO] [stdout] d566a0267502cc064bd84f093a8a904cebc8811156fc1e078c49032fdb02d4ed