Skip to content

Test data is missing #117

@Hellseher

Description

@Hellseher

Hi,

I try to include velociraptor-python to Guix Astro collection, the mentioned test file cosmo_0000.properties is not available in https://virgodb.cosma.dur.ac.uk/swift-webstorage/IOExamples/

@requires("cosmo_0000.properties")
def test_basic_load_catalogue_no_crash(
filename="test_data/cosmo_0000.properties",
):
catalogue = load(filename)
return

webstorage_location = "http://virgodb.cosma.dur.ac.uk/swift-webstorage/IOExamples/"
test_data_location = "test_data/"
def requires(filename):
"""
Use this as a decorator around tests that require data.
"""
# First check if the test data directory exists
if not os.path.exists(test_data_location):
os.mkdir(test_data_location)
file_location = f"{test_data_location}{filename}"
if os.path.exists(file_location):
ret = 0
else:
# Download it!
ret = subprocess.call(
["wget", f"{webstorage_location}{filename}", "-O", file_location]
)

curl -L http://virgodb.cosma.dur.ac.uk/swift-webstorage/IOExamples/cosmo_0000.properties
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>

Where I can find it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions