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

make above pytests reproducible by using a mock server that responds with those different failure categories #113

Open
Tracked by #61
kuefmz opened this issue Oct 25, 2024 · 5 comments
Milestone

Comments

@kuefmz
Copy link
Collaborator

kuefmz commented Oct 25, 2024

No description provided.

@Akshat1000Sharma
Copy link

can you please give details about this issue

@JJ-Author
Copy link
Contributor

the task is to create a web server or environment that emulates everything that can get wrong when trying to access an ontology / web document
from connection error, time outs, http error codes, redirection loops and such.
start with the other issues you asked for first please.

@Akshat1000Sharma
Copy link

Thanks for replying, i will be sure to finish the other issues first before getting back on this

@deepak-dobbala
Copy link

I am a bit confused about what the issue is can you provide a description

@JJ-Author
Copy link
Contributor

  1. provide a deterministic http(s) hazard emulator
    so add a new component ( configure/extend existing approaches or potentially create a new one if that is easier) to the project that realizes a webserver that can simulate many kinds of "hazards" that can occur when trying to access an ontology ( or in general a web document) via HTTP and HTTPS
  • transport (tcp) connection errors
  • invalid tls certificaed or (expired, non-matching dns, etc.)
  • delaying repsonse sucht that client timed outs are triggered
  • returning all kinds of http error codes
  • creating redirection loops
  • returning wrong mimetypes
  • returning empty body or inaccurate bytesize compared to reported content size
  1. extend the pytests that additionally instead of just using the test IRI in
    non_archivo_test_IRIs.tsv and archivo_test_IRIs.tsv (which could change everytime )
    to controllable deterministic IRIs that go to the hazard component and create a consistent hazard over time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants