{ "$schema": "https://packageurl.org/schemas/purl-test.schema-0.1.json", "tests": [ { "description": "valid conan purl. Roundtrip an input purl to canonical.", "test_group": "advanced", "test_type": "roundtrip", "input": "pkg:conan/cctz@2.3", "expected_output": "pkg:conan/cctz@2.3", "expected_failure": false, "expected_failure_reason": null }, { "description": "valid conan purl", "test_group": "base", "test_type": "parse", "input": "pkg:conan/cctz@2.3", "expected_output": { "type": "conan", "namespace": null, "name": "cctz", "version": "2.3", "qualifiers": null, "subpath": null }, "expected_failure": false, "expected_failure_reason": null }, { "description": "valid conan purl. Roundtrip a canonical input to canonical output.", "test_group": "base", "test_type": "roundtrip", "input": "pkg:conan/cctz@2.3", "expected_output": "pkg:conan/cctz@2.3", "expected_failure": false, "expected_failure_reason": null }, { "description": "valid conan purl", "test_group": "base", "test_type": "build", "input": { "type": "conan", "namespace": null, "name": "cctz", "version": "2.3", "qualifiers": null, "subpath": null }, "expected_output": "pkg:conan/cctz@2.3", "expected_failure": false, "expected_failure_reason": null }, { "description": "valid conan purl with namespace and qualifier channel. Roundtrip an input purl to canonical.", "test_group": "advanced", "test_type": "roundtrip", "input": "pkg:conan/bincrafters/cctz@2.3?channel=stable", "expected_output": "pkg:conan/bincrafters/cctz@2.3?channel=stable", "expected_failure": false, "expected_failure_reason": null }, { "description": "valid conan purl with namespace and qualifier channel", "test_group": "base", "test_type": "parse", "input": "pkg:conan/bincrafters/cctz@2.3?channel=stable", "expected_output": { "type": "conan", "namespace": "bincrafters", "name": "cctz", "version": "2.3", "qualifiers": { "channel": "stable" }, "subpath": null }, "expected_failure": false, "expected_failure_reason": null }, { "description": "valid conan purl with namespace and qualifier channel. Roundtrip a canonical input to canonical output.", "test_group": "base", "test_type": "roundtrip", "input": "pkg:conan/bincrafters/cctz@2.3?channel=stable", "expected_output": "pkg:conan/bincrafters/cctz@2.3?channel=stable", "expected_failure": false, "expected_failure_reason": null }, { "description": "valid conan purl with namespace and qualifier channel", "test_group": "base", "test_type": "build", "input": { "type": "conan", "namespace": "bincrafters", "name": "cctz", "version": "2.3", "qualifiers": { "channel": "stable" }, "subpath": null }, "expected_output": "pkg:conan/bincrafters/cctz@2.3?channel=stable", "expected_failure": false, "expected_failure_reason": null }, { "description": "Parse test for PURL type: conan", "test_group": "base", "test_type": "parse", "input": "pkg:conan/openssl@3.0.3", "expected_output": { "type": "conan", "namespace": null, "name": "openssl", "version": "3.0.3", "qualifiers": null, "subpath": null }, "expected_failure": false, "expected_failure_reason": null }, { "description": "Roundtrip test for PURL type: conan", "test_group": "base", "test_type": "roundtrip", "input": "pkg:conan/openssl@3.0.3", "expected_output": "pkg:conan/openssl@3.0.3", "expected_failure": false, "expected_failure_reason": null }, { "description": "Build test for PURL type: conan", "test_group": "base", "test_type": "build", "input": { "type": "conan", "namespace": null, "name": "openssl", "version": "3.0.3", "qualifiers": null, "subpath": null }, "expected_output": "pkg:conan/openssl@3.0.3", "expected_failure": false, "expected_failure_reason": null }, { "description": "Parse test for PURL type: conan", "test_group": "base", "test_type": "parse", "input": "pkg:conan/openssl.org/openssl@3.0.3?user=bincrafters&channel=stable", "expected_output": { "type": "conan", "namespace": "openssl.org", "name": "openssl", "version": "3.0.3", "qualifiers": { "channel": "stable", "user": "bincrafters" }, "subpath": null }, "expected_failure": false, "expected_failure_reason": null }, { "description": "Roundtrip test for PURL type: conan", "test_group": "base", "test_type": "roundtrip", "input": "pkg:conan/openssl.org/openssl@3.0.3?user=bincrafters&channel=stable", "expected_output": "pkg:conan/openssl.org/openssl@3.0.3?channel=stable&user=bincrafters", "expected_failure": false, "expected_failure_reason": null }, { "description": "Build test for PURL type: conan", "test_group": "base", "test_type": "build", "input": { "type": "conan", "namespace": "openssl.org", "name": "openssl", "version": "3.0.3", "qualifiers": { "channel": "stable", "user": "bincrafters" }, "subpath": null }, "expected_output": "pkg:conan/openssl.org/openssl@3.0.3?channel=stable&user=bincrafters", "expected_failure": false, "expected_failure_reason": null }, { "description": "Parse test for PURL type: conan", "test_group": "base", "test_type": "parse", "input": "pkg:conan/openssl.org/openssl@3.0.3?arch=x86_64&build_type=Debug&compiler=Visual%20Studio&compiler.runtime=MDd&compiler.version=16&os=Windows&shared=True&rrev=93a82349c31917d2d674d22065c7a9ef9f380c8e&prev=b429db8a0e324114c25ec387bfd8281f330d7c5c", "expected_output": { "type": "conan", "namespace": "openssl.org", "name": "openssl", "version": "3.0.3", "qualifiers": { "arch": "x86_64", "build_type": "Debug", "compiler": "Visual Studio", "compiler.runtime": "MDd", "compiler.version": "16", "os": "Windows", "prev": "b429db8a0e324114c25ec387bfd8281f330d7c5c", "rrev": "93a82349c31917d2d674d22065c7a9ef9f380c8e", "shared": "True" }, "subpath": null }, "expected_failure": false, "expected_failure_reason": null }, { "description": "Roundtrip test for PURL type: conan", "test_group": "base", "test_type": "roundtrip", "input": "pkg:conan/openssl.org/openssl@3.0.3?arch=x86_64&build_type=Debug&compiler=Visual%20Studio&compiler.runtime=MDd&compiler.version=16&os=Windows&shared=True&rrev=93a82349c31917d2d674d22065c7a9ef9f380c8e&prev=b429db8a0e324114c25ec387bfd8281f330d7c5c", "expected_output": "pkg:conan/openssl.org/openssl@3.0.3?arch=x86_64&build_type=Debug&compiler=Visual%20Studio&compiler.runtime=MDd&compiler.version=16&os=Windows&prev=b429db8a0e324114c25ec387bfd8281f330d7c5c&rrev=93a82349c31917d2d674d22065c7a9ef9f380c8e&shared=True", "expected_failure": false, "expected_failure_reason": null }, { "description": "Build test for PURL type: conan", "test_group": "base", "test_type": "build", "input": { "type": "conan", "namespace": "openssl.org", "name": "openssl", "version": "3.0.3", "qualifiers": { "arch": "x86_64", "build_type": "Debug", "compiler": "Visual Studio", "compiler.runtime": "MDd", "compiler.version": "16", "os": "Windows", "prev": "b429db8a0e324114c25ec387bfd8281f330d7c5c", "rrev": "93a82349c31917d2d674d22065c7a9ef9f380c8e", "shared": "True" }, "subpath": null }, "expected_output": "pkg:conan/openssl.org/openssl@3.0.3?arch=x86_64&build_type=Debug&compiler=Visual%20Studio&compiler.runtime=MDd&compiler.version=16&os=Windows&prev=b429db8a0e324114c25ec387bfd8281f330d7c5c&rrev=93a82349c31917d2d674d22065c7a9ef9f380c8e&shared=True", "expected_failure": false, "expected_failure_reason": null } ] }