Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add unit tests for Enclaves #9177

Open
wants to merge 1 commit into
base: tauquir/enclave-prototype
Choose a base branch
from

Conversation

itstauq
Copy link
Member

@itstauq itstauq commented Aug 15, 2024

Description

Add unit tests for Enclaves, with the goal of achieving 100% coverage for the following code paths:

  • EnclaveService.setup_enclave
  • EnclaveService.upload_assets
  • EnclaveService.execute_code
  • DatasiteEnclaveService.add
  • DatasiteEnclaveService.get_all
  • DatasiteEnclaveService.request_enclave
  • DatasiteEnclaveService.request_asset_upload
  • DatasiteEnclaveService.request_code_execution
  • enclave_output.py:VerifiableOutput
  • enclave.py:EnclaveInstance

How has this been tested?

  • Run pytest and generate coverage report using the following command:
    pytest tests/syft/service/enclave --cov=src/syft/service/enclave --cov-report html -n auto --dist loadgroup --durations=20 --disable-warnings
  • Access the coverage report by opening packages/syft/htmlcov/index.html in your browser.

Checklist

@itstauq itstauq added this to the 24Q3 - G2M2 Enclave Model milestone Aug 15, 2024
@itstauq itstauq self-assigned this Aug 15, 2024
@itstauq itstauq changed the title [WIP] Add unit tests for EnclaveService.setup_enclave [WIP] Add unit tests for Enclaves Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant