metaspace2020 / metaspace

Cloud engine and platform for metabolite annotation for imaging mass spectrometry
https://metaspace2020.eu/
Apache License 2.0
44 stars 9 forks source link

Fix tests after migration on AWS #1471

Closed sergii-mamedov closed 4 months ago

sergii-mamedov commented 5 months ago

We have one broken test. Need to add buckets for correct operation on the local environment.

__________________________ test_server_annotation_job __________________________
tests/annotation_lithops/test_annotation_job.py:145: in test_server_annotation_job
    job = ServerAnnotationJob(executor=executor, ds=ds, perf=perf)
sm/engine/annotation_lithops/annotation_job.py:292: in __init__
    self.imzml_cobj, self.ibd_cobj = _return_imzml_ibd_cobj(
sm/engine/annotation_lithops/annotation_job.py:109: in _return_imzml_ibd_cobj
    response = s3_client.list_objects_v2(Bucket=bucket, Prefix=prefix)
/usr/local/lib/python3.8/dist-packages/botocore/client.py:535: in _api_call
    return self._make_api_call(operation_name, kwargs)
/usr/local/lib/python3.8/dist-packages/botocore/client.py:980: in _make_api_call
    raise error_class(parsed_response, operation_name)
E   botocore.errorfactory.NoSuchBucket: An error occurred (NoSuchBucket) when calling the ListObjectsV2 operation: The specified bucket does not exist

Additions info here: https://github.com/metaspace2020/metaspace/pull/1442#issuecomment-1871926021