Debian Codegraph @

t/purl/types/mlflow-test.json

raw
1 {
2 "$schema": "https://packageurl.org/schemas/purl-test.schema-0.1.json",
3 "tests": [
4 {
5 "description": "MLflow model tracked in Azure Databricks (case insensitive). Roundtrip an input purl to canonical.",
6 "test_group": "advanced",
7 "test_type": "roundtrip",
8 "input": "pkg:mlflow/CreditFraud@3?repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow",
9 "expected_output": "pkg:mlflow/creditfraud@3?repository_url=https:%2F%2Fadb-5245952564735461.0.azuredatabricks.net%2Fapi%2F2.0%2Fmlflow",
10 "expected_failure": false,
11 "expected_failure_reason": null
12 },
13 {
14 "description": "MLflow model tracked in Azure Databricks (case insensitive)",
15 "test_group": "base",
16 "test_type": "parse",
17 "input": "pkg:mlflow/CreditFraud@3?repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow",
18 "expected_output": {
19 "type": "mlflow",
20 "namespace": null,
21 "name": "creditfraud",
22 "version": "3",
23 "qualifiers": {
24 "repository_url": "https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow"
25 },
26 "subpath": null
27 },
28 "expected_failure": false,
29 "expected_failure_reason": null
30 },
31 {
32 "description": "MLflow model tracked in Azure Databricks (case insensitive). Roundtrip a canonical input to canonical output.",
33 "test_group": "base",
34 "test_type": "roundtrip",
35 "input": "pkg:mlflow/creditfraud@3?repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow",
36 "expected_output": "pkg:mlflow/creditfraud@3?repository_url=https:%2F%2Fadb-5245952564735461.0.azuredatabricks.net%2Fapi%2F2.0%2Fmlflow",
37 "expected_failure": false,
38 "expected_failure_reason": null
39 },
40 {
41 "description": "MLflow model tracked in Azure Databricks (case insensitive)",
42 "test_group": "base",
43 "test_type": "build",
44 "input": {
45 "type": "mlflow",
46 "namespace": null,
47 "name": "creditfraud",
48 "version": "3",
49 "qualifiers": {
50 "repository_url": "https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow"
51 },
52 "subpath": null
53 },
54 "expected_output": "pkg:mlflow/creditfraud@3?repository_url=https:%2F%2Fadb-5245952564735461.0.azuredatabricks.net%2Fapi%2F2.0%2Fmlflow",
55 "expected_failure": false,
56 "expected_failure_reason": null
57 },
58 {
59 "description": "MLflow model tracked in Azure ML (case sensitive). Roundtrip an input purl to canonical.",
60 "test_group": "advanced",
61 "test_type": "roundtrip",
62 "input": "pkg:mlflow/CreditFraud@3?repository_url=https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace",
63 "expected_output": "pkg:mlflow/CreditFraud@3?repository_url=https:%2F%2Fwestus2.api.azureml.ms%2Fmlflow%2Fv1.0%2Fsubscriptions%2Fa50f2011-fab8-4164-af23-c62881ef8c95%2FresourceGroups%2FTestResourceGroup%2Fproviders%2FMicrosoft.MachineLearningServices%2Fworkspaces%2FTestWorkspace",
64 "expected_failure": false,
65 "expected_failure_reason": null
66 },
67 {
68 "description": "MLflow model tracked in Azure ML (case sensitive)",
69 "test_group": "base",
70 "test_type": "parse",
71 "input": "pkg:mlflow/CreditFraud@3?repository_url=https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace",
72 "expected_output": {
73 "type": "mlflow",
74 "namespace": null,
75 "name": "CreditFraud",
76 "version": "3",
77 "qualifiers": {
78 "repository_url": "https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace"
79 },
80 "subpath": null
81 },
82 "expected_failure": false,
83 "expected_failure_reason": null
84 },
85 {
86 "description": "MLflow model tracked in Azure ML (case sensitive). Roundtrip a canonical input to canonical output.",
87 "test_group": "base",
88 "test_type": "roundtrip",
89 "input": "pkg:mlflow/CreditFraud@3?repository_url=https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace",
90 "expected_output": "pkg:mlflow/CreditFraud@3?repository_url=https:%2F%2Fwestus2.api.azureml.ms%2Fmlflow%2Fv1.0%2Fsubscriptions%2Fa50f2011-fab8-4164-af23-c62881ef8c95%2FresourceGroups%2FTestResourceGroup%2Fproviders%2FMicrosoft.MachineLearningServices%2Fworkspaces%2FTestWorkspace",
91 "expected_failure": false,
92 "expected_failure_reason": null
93 },
94 {
95 "description": "MLflow model tracked in Azure ML (case sensitive)",
96 "test_group": "base",
97 "test_type": "build",
98 "input": {
99 "type": "mlflow",
100 "namespace": null,
101 "name": "CreditFraud",
102 "version": "3",
103 "qualifiers": {
104 "repository_url": "https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace"
105 },
106 "subpath": null
107 },
108 "expected_output": "pkg:mlflow/CreditFraud@3?repository_url=https:%2F%2Fwestus2.api.azureml.ms%2Fmlflow%2Fv1.0%2Fsubscriptions%2Fa50f2011-fab8-4164-af23-c62881ef8c95%2FresourceGroups%2FTestResourceGroup%2Fproviders%2FMicrosoft.MachineLearningServices%2Fworkspaces%2FTestWorkspace",
109 "expected_failure": false,
110 "expected_failure_reason": null
111 },
112 {
113 "description": "MLflow model with unique identifiers. Roundtrip an input purl to canonical.",
114 "test_group": "advanced",
115 "test_type": "roundtrip",
116 "input": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a&repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow",
117 "expected_output": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&repository_url=https:%2F%2Fadb-5245952564735461.0.azuredatabricks.net%2Fapi%2F2.0%2Fmlflow&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a",
118 "expected_failure": false,
119 "expected_failure_reason": null
120 },
121 {
122 "description": "MLflow model with unique identifiers",
123 "test_group": "base",
124 "test_type": "parse",
125 "input": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a&repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow",
126 "expected_output": {
127 "type": "mlflow",
128 "namespace": null,
129 "name": "trafficsigns",
130 "version": "10",
131 "qualifiers": {
132 "model_uuid": "36233173b22f4c89b451f1228d700d49",
133 "run_id": "410a3121-2709-4f88-98dd-dba0ef056b0a",
134 "repository_url": "https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow"
135 },
136 "subpath": null
137 },
138 "expected_failure": false,
139 "expected_failure_reason": null
140 },
141 {
142 "description": "MLflow model with unique identifiers. Roundtrip a canonical input to canonical output.",
143 "test_group": "base",
144 "test_type": "roundtrip",
145 "input": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a",
146 "expected_output": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&repository_url=https:%2F%2Fadb-5245952564735461.0.azuredatabricks.net%2Fapi%2F2.0%2Fmlflow&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a",
147 "expected_failure": false,
148 "expected_failure_reason": null
149 },
150 {
151 "description": "MLflow model with unique identifiers",
152 "test_group": "base",
153 "test_type": "build",
154 "input": {
155 "type": "mlflow",
156 "namespace": null,
157 "name": "trafficsigns",
158 "version": "10",
159 "qualifiers": {
160 "model_uuid": "36233173b22f4c89b451f1228d700d49",
161 "run_id": "410a3121-2709-4f88-98dd-dba0ef056b0a",
162 "repository_url": "https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow"
163 },
164 "subpath": null
165 },
166 "expected_output": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&repository_url=https:%2F%2Fadb-5245952564735461.0.azuredatabricks.net%2Fapi%2F2.0%2Fmlflow&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a",
167 "expected_failure": false,
168 "expected_failure_reason": null
169 },
170 {
171 "description": "Parse test for PURL type: mlflow",
172 "test_group": "base",
173 "test_type": "parse",
174 "input": "pkg:mlflow/creditfraud@3?repository_url=https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace",
175 "expected_output": {
176 "type": "mlflow",
177 "namespace": null,
178 "name": "creditfraud",
179 "version": "3",
180 "qualifiers": {
181 "repository_url": "https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace"
182 },
183 "subpath": null
184 },
185 "expected_failure": false,
186 "expected_failure_reason": null
187 },
188 {
189 "description": "Roundtrip test for PURL type: mlflow",
190 "test_group": "base",
191 "test_type": "roundtrip",
192 "input": "pkg:mlflow/creditfraud@3?repository_url=https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace",
193 "expected_output": "pkg:mlflow/creditfraud@3?repository_url=https:%2F%2Fwestus2.api.azureml.ms%2Fmlflow%2Fv1.0%2Fsubscriptions%2Fa50f2011-fab8-4164-af23-c62881ef8c95%2FresourceGroups%2FTestResourceGroup%2Fproviders%2FMicrosoft.MachineLearningServices%2Fworkspaces%2FTestWorkspace",
194 "expected_failure": false,
195 "expected_failure_reason": null
196 },
197 {
198 "description": "Build test for PURL type: mlflow",
199 "test_group": "base",
200 "test_type": "build",
201 "input": {
202 "type": "mlflow",
203 "namespace": null,
204 "name": "creditfraud",
205 "version": "3",
206 "qualifiers": {
207 "repository_url": "https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace"
208 },
209 "subpath": null
210 },
211 "expected_output": "pkg:mlflow/creditfraud@3?repository_url=https:%2F%2Fwestus2.api.azureml.ms%2Fmlflow%2Fv1.0%2Fsubscriptions%2Fa50f2011-fab8-4164-af23-c62881ef8c95%2FresourceGroups%2FTestResourceGroup%2Fproviders%2FMicrosoft.MachineLearningServices%2Fworkspaces%2FTestWorkspace",
212 "expected_failure": false,
213 "expected_failure_reason": null
214 },
215 {
216 "description": "Parse test for PURL type: mlflow",
217 "test_group": "base",
218 "test_type": "parse",
219 "input": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a&repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow",
220 "expected_output": {
221 "type": "mlflow",
222 "namespace": null,
223 "name": "trafficsigns",
224 "version": "10",
225 "qualifiers": {
226 "model_uuid": "36233173b22f4c89b451f1228d700d49",
227 "repository_url": "https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow",
228 "run_id": "410a3121-2709-4f88-98dd-dba0ef056b0a"
229 },
230 "subpath": null
231 },
232 "expected_failure": false,
233 "expected_failure_reason": null
234 },
235 {
236 "description": "Roundtrip test for PURL type: mlflow",
237 "test_group": "base",
238 "test_type": "roundtrip",
239 "input": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a&repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow",
240 "expected_output": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&repository_url=https:%2F%2Fadb-5245952564735461.0.azuredatabricks.net%2Fapi%2F2.0%2Fmlflow&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a",
241 "expected_failure": false,
242 "expected_failure_reason": null
243 },
244 {
245 "description": "Build test for PURL type: mlflow",
246 "test_group": "base",
247 "test_type": "build",
248 "input": {
249 "type": "mlflow",
250 "namespace": null,
251 "name": "trafficsigns",
252 "version": "10",
253 "qualifiers": {
254 "model_uuid": "36233173b22f4c89b451f1228d700d49",
255 "repository_url": "https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow",
256 "run_id": "410a3121-2709-4f88-98dd-dba0ef056b0a"
257 },
258 "subpath": null
259 },
260 "expected_output": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&repository_url=https:%2F%2Fadb-5245952564735461.0.azuredatabricks.net%2Fapi%2F2.0%2Fmlflow&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a",
261 "expected_failure": false,
262 "expected_failure_reason": null
263 }
264 ]
265 }