Fix tests for tag removal and version behavior
- Fix upload response to return actual version (not requested version) when artifact already has a version in the package - Update ref_count tests to use multiple packages (one version per artifact per package design constraint) - Remove allow_public_internet references from upstream caching tests - Update consistency check test to not assert global system health - Add versions field to artifact schemas - Fix dependencies resolution to handle removed tag constraint
This commit is contained in:
@@ -405,7 +405,6 @@ class TestDependencyQueryEndpoints:
|
||||
for dep in data["dependents"]:
|
||||
if dep["project"] == project_name:
|
||||
found = True
|
||||
assert dep["constraint_type"] == "version"
|
||||
assert dep["constraint_value"] == "1.0.0"
|
||||
break
|
||||
assert found, "Our package should be in the dependents list"
|
||||
@@ -690,11 +689,15 @@ class TestDependencyResolution:
|
||||
# OR succeed at upload but fail at resolution
|
||||
# Depending on implementation choice
|
||||
if response.status_code == 200:
|
||||
# Resolution should fail
|
||||
# Resolution should return missing dependencies
|
||||
response = integration_client.get(
|
||||
f"/api/v1/project/{project_name}/{package_name}/+/missing-dep-{unique_test_id}/resolve"
|
||||
)
|
||||
assert response.status_code == 404
|
||||
# Expect 200 with missing dependencies listed
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
# The missing dependency should be in the 'missing' list
|
||||
assert len(data.get("missing", [])) >= 1
|
||||
|
||||
|
||||
class TestCircularDependencyDetection:
|
||||
|
||||
Reference in New Issue
Block a user