Skip to content

Commit 7e01a54

Browse files
committed
Update tests
Signed-off-by: Tushar Goel <[email protected]>
1 parent 455f432 commit 7e01a54

File tree

2 files changed

+16
-56
lines changed

2 files changed

+16
-56
lines changed

tests/types/alpm-test.json

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -118,62 +118,6 @@
118118
"expected_failure": false,
119119
"expected_failure_reason": null
120120
},
121-
{
122-
"description": "Basic alpm package",
123-
"test_group": "validation",
124-
"input": "pkg:alpm/arch/[email protected]",
125-
"expected_failure": false,
126-
"expected_failure_reason": null
127-
},
128-
{
129-
"description": "Basic package with version and arch",
130-
"test_group": "validation",
131-
"input": "pkg:alpm/arch/[email protected]?arch=x86_64",
132-
"expected_failure": false,
133-
"expected_failure_reason": null
134-
},
135-
{
136-
"description": "Basic package without version",
137-
"test_group": "validation",
138-
"input": "pkg:alpm/arch/pacman?arch=x86_64",
139-
"expected_failure": false,
140-
"expected_failure_reason": null
141-
},
142-
{
143-
"description": "Valid MSYS2 namespace (lowercased vendor requirement)",
144-
"test_group": "validation",
145-
"input": "pkg:alpm/msys2/[email protected]?arch=any",
146-
"expected_failure": false,
147-
"expected_failure_reason": null
148-
},
149-
{
150-
"description": "Missing namespace (vendor is required)",
151-
"test_group": "validation",
152-
"input": "pkg:alpm/[email protected]?arch=x86_64",
153-
"expected_failure": false,
154-
"expected_failure_reason": "Missing namespace (vendor is required)"
155-
},
156-
{
157-
"description": "Namespace not lowercased",
158-
"test_group": "validation",
159-
"input": "pkg:alpm/Arch/[email protected]?arch=x86_64",
160-
"expected_failure": false,
161-
"expected_failure_reason": "Namespace not lowercased"
162-
},
163-
{
164-
"description": "Package name not lowercased",
165-
"test_group": "validation",
166-
"input": "pkg:alpm/arch/[email protected]?arch=x86_64",
167-
"expected_failure": false,
168-
"expected_failure_reason": "Namespace not lowercased"
169-
},
170-
{
171-
"description": "Unknown qualifier key (only arch is allowed)",
172-
"test_group": "validation",
173-
"input": "pkg:alpm/arch/[email protected]?cpu=x86_64",
174-
"expected_failure": false,
175-
"expected_failure_reason": "Unknown qualifier key"
176-
},
177121
{
178122
"description": "Build test for <class 'type'> PURL",
179123
"test_group": "base",

tests/types/luarocks-test.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,22 @@
127127
"expected_output": "pkg:luarocks/username/[email protected]?repository_url=https://example.com/private_rocks_server/",
128128
"expected_failure": false,
129129
"expected_failure_reason": null
130+
},
131+
{
132+
"description": "validation test for <class 'type'> PURL",
133+
"test_group": "base",
134+
"test_type": "validation",
135+
"input": {
136+
"type": "luarocks",
137+
"namespace": "username",
138+
"name": "packagename",
139+
"version": "0.1.0-1",
140+
"qualifiers": {
141+
"repository_url": "https://example.com/private_rocks_server/"
142+
},
143+
"subpath": null
144+
},
145+
"expected_messages": null
130146
}
131147
]
132148
}

0 commit comments

Comments
 (0)